【指标公式源码下载】通达信无滞后的KDJ指标公式
整合版KDJ通达信指标公式源码
整合版KDJ通达信指标公式源码KDJ通达信指标是一种常用的股票指标,用于判断价格趋势的强弱和超买超卖状态。
该指标主要由三条线组成,分别是K线、D线和J线。
K 线和D线都是通过计算价格的快慢移动平均线得出的,而J线是由K线和D线的差值计算得出的。
以下是整合版的KDJ通达信指标的公式源码:```c//获取KDJ指标的K值float getKValue(float* close, int n, int m)float kValue = 50;float highest = getMaxValue(close, n);float lowest = getMinValue(close, n);if(highest != lowest)kValue = 100 * (close[n] - lowest) / (highest - lowest);}return simpleMA(kValue, m);//获取KDJ指标的D值float getDValue(float* close, int n, int m, int t)return simpleMA(getKValue(close, n, m), t);//获取KDJ指标的J值float getJValue(float* close, int n, int m, int t) float kValue = getKValue(close, n, m);float dValue = getDValue(close, n, m, t);return 3 * kValue - 2 * dValue;//简单移动平均线的计算函数float simpleMA(float value, int n)float ma = value;//计算n日的简单移动平均线for(int i = n; i > 0; i--)ma += value[i];}return ma / n;//获取一组数据中的最大值float getMaxValue(float* data, int n)float maxValue = data[n];for(int i = n; i > 0; i--)if(data[i] > maxValue)maxValue = data[i];}}return maxValue;//获取一组数据中的最小值float getMinValue(float* data, int n)float minValue = data[n];for(int i = n; i > 0; i--)if(data[i] < minValue)minValue = data[i];}}return minValue;```以上是整合版KDJ通达信指标的公式源码。
【指标公式源码下载】通达信麟龙KDJ多周期指标公式
通达信麟龙KDJ多周期指标公式N:=5;M1:=3;M2:=3;ZG:=MA(HIGH,5);ZD:=MA(LOW,5);YG:=MA(HIGH,20);YD:=MA(LOW,20);ZJ:=MA(CLOSE,5);YJ:=MA(CLOSE,20);RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;日K:SMA(RSV,M1,1),COLORFF00FF,LINETHICK1;日D:SMA(日K,M2,1),COLORFFFFFF,LINETHICK1;J:3*日D-2*日K,COLOR00FFFF,LINETHICK1;MID:=MA(日K,10);CMSS:=1.03*SQRT(MA(POW((日K-MID),2),10));UPPER:MID+CMSS,LINETHICK1,COLORFFFF00;LOWER:MID-CMSS,LINETHICK1,COLOR00FF00;RSV3:=(ZJ-LLV(ZD,N*5))/(HHV(ZG,N*5)-LLV(ZD,N*5))*100;周K:SMA(RSV3,M1*5,1),LINETHICK0;周D:EMA(周K,M2*5),LINETHICK0;周J:=3*周D-2*周K,LINETHICK0;RSV2:=(YJ-LLV(YD,N*20))/(HHV(YG,N*20)-LLV(YD,N*20))*100;月K:SMA(RSV2,M1*20,1),LINETHICK0;月D:SMA(月K,M2*20,1),LINETHICK0;月J:=3*月D-2*月K,LINETHICK0;STICKLINE(周K>=REF(周K,1),周K,周D,4,0),COLOR0000FF;STICKLINE(周K<REF(周K,1),周K,周D,4,0),COLOR00FF00;STICKLINE(月K>=REF(月K,1),月K,月D,1,0),COLOR00FFFF;STICKLINE(月K<REF(月K,1),月K,月D,1,0),COLORFFFF00;大底:IF(REF(COUNT(月K<=REF(月K,1),2)=2,1) AND REF(月K<=5,1) AND月K>REF(月K,1),80,10);底:IF(REF(COUNT(月K<=REF(月K,1),2)=2,1) AND REF(月K<=10,1) AND REF(月K>=5,1)AND REF(COUNT(周K<=REF(周K,1),2)=2,1) AND REF(周K<=10,1) AND周K>REF(周K,1),80,10);大顶:IF(REF(COUNT(月K>=REF(月K,1),2)=2,1) AND REF(月K>=95,1) AND月K<REF(月K,1),20,90);顶:IF(REF(COUNT(月K>=REF(月K,1),2)=2,1) AND REF(月K>=90,1) AND REF(月K<=95,1)AND REF(COUNT(周K>=REF(周K,1),2)=2,1) AND REF(周K>=90,1) AND周K<REF(周K,1),20,90);DRAWTEXT(月K<=10 AND COUNT(月K<=REF(月K,1),2)=2 AND周K<=10 AND COUNT(周K<=REF(周K,1),2)=2 AND 日K<=10 ANDCOUNT(日K<=REF(日K,1),2)=2,50,'长线超跌');DRAWTEXT(月K>=90 AND COUNT(月K>=REF(月K,1),2)=2 AND周K>=90 AND COUNT(周K>=REF(周K,1),2)=2 AND 日K>=90 ANDCOUNT(日K>=REF(日K,1),2)=2,50,'长线超涨');DRAWTEXT(REF(COUNT(月K<=REF(月K,1),2)=2,1) AND REF(月K<=10,1)AND REF(COUNT(周K<=REF(周K,1),2)=2,1) AND REF(周K<=10,1) ANDREF(COUNT(日K<=REF(日K,1),2)=2,1) AND REF(日K<=10,1) AND日K>REF(日K,1),80,'超跌买入');DRAWTEXT(REF(COUNT(月K>=REF(月K,1),2)=2,1) AND REF(月K>=90,1)AND REF(COUNT(周K>=REF(周K,1),2)=2,1) AND REF(周K>=90,1) ANDREF(COUNT(日K>=REF(日K,1),2)=2,1) AND REF(日K>=90,1) AND日K<REF(日K,1),20,'超涨卖出');DRAWTEXT(REF(月K>10,1)AND REF(COUNT(周K<=REF(周K,1),2)=2,1) AND REF(周K<=10,1) ANDREF(COUNT(日K<=REF(日K,1),2)=2,1) AND REF(日K<=10,1) AND日K>REF(日K,1),80,'超跌买');DRAWTEXT(REF(月K<90,1)AND REF(COUNT(周K>=REF(周K,1),2)=2,1) AND REF(周K>=90,1) ANDREF(COUNT(日K>=REF(日K,1),2)=2,1) AND REF(日K>=90,1) AND日K<REF(日K,1),20,'超涨卖');DRAWTEXT(月K>10 AND周K<=10 AND COUNT(周K<=REF(周K,1),2)=2 AND 日K<=10 ANDCOUNT(日K<=REF(日K,1),2)=2,50,'中线超跌');DRAWTEXT(月K<90 AND 周K>=90 AND COUNT(周K>=REF(周K,1),2)=2 AND日K>=90 ANDCOUNT(日K>=REF(日K,1),2)=2,50,'中线超涨');。
通达信有价值的经典指标公式
通达信有价值的经典指标公式以下是通达信有价值的经典指标公式(无源码的请下载附件导入)1 KDJ提前金叉N:=5;M1:=5;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,5,1);D:=SMA(K,M1,5);J:=3*K-2*D;VARB2:=(RSV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH);低买:=IF(黄金 AND RSV高卖:=IF(黄金 AND RSV>VARB2,80,120);上涨分界:=25;选股:(CROSS(上涨分界,低买));2 山沟涨停选股WA2:=(HHV(H,50)-L)/C>0.5;B2:=(HHV(H,8)-L)/C>0.25;A:=A2 AND B2;XG:COUNT(A,5)>=1 AND C/REF(C,1)>=1.095;3 抓牛启动点A:=LLV(HIGH,240);A2:=REF(LLV(CLOSE,480),1);A3:=REF(HHV(CLOSE,480),1);A4:=EMA(EMA(CLOSE,2)-EMA(CLOSE,150),100);A5:=2*(EMA(CLOSE,2)-EMA(CLOSE,150)-A4);A6:=POW(A5,3)*0.1+POW(A5,1);A7:=IF(A5>0.1,A6,0)*5;A8:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;CROSS(A8,A) AND CROSS(A8,A2) AND CROSS(A8,A3) AND CROSS(A7,A) AND CROSS(A7,A2) AND CROSS(A7,A3);4 低开长阳M:=4;N:=7;低开长阳:OPEN<= 1-M/100 AND CLOSE/OPEN>=1+N/100,COLORRED;DRAWICON(低开长阳,1.1,4);5 超级组合顶底N:=5;M1:=5;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5,1);D:=SMA(K,M1,5);J:=3*K-2*D;VARB2:=(RSV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH);低买:=IF(黄金 AND RSV高卖:=IF(黄金 AND RSV>VARB2,80,120);上涨分界:=25;选股:(CROSS(上涨分界,低买));VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED;STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00;底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓,动力线),20),动力线+0.02,2);DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖,动力线),20),动力线+0.02,2);界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:=动力线,COLORA8A8A8;{希望之星买点}A3:=ABS(REF(C,2)-REF(O,2))/REF(O,2)<0.012;{前天星形}A2:=(REF(O,1)-REF(C,1))/REF(O,1)<0.008;{昨天星形}B1:=IF(REF(C,2)>REF(O,2),REF(O,2),REF(C,2));B2:=IF(REF(C,1)B3:=IF(C>O,O,C);B4:=B1>B2 AND B3>B2 AND REF(C,1)A1:=ABS(C-O)/O<0.012;{今天星形}星K:A3 AND A2 AND A1 AND B4;{准备上买点}VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区:=VARO7<10;TJ:=COUNT(建仓区,3);VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);上升:=CROSS(VAR1,8);准备上:(建仓区 OR REF(建仓区,0.5)) AND 上升;{出手买点}出手:FILTER((CROSS((EMA(CLOSE,2)-EMA(CLOSE,10)),EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2))AND EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)<0 AND CROSS(C,MA(C,20))),90);{强势买点}D1:="WR.WR1"<5;D2:=CROSS("KDJ.K","KDJ.D") AND "KDJ.K"<50;D3:=CROSS("MACD.DIF","MACD.DEA");D4:="I">-100 AND "I"<-90;D5:=CROSS("RSI.RSI1","RSI.RSI2")AND "RSI.RSI1"<50;S1:=20;M2:=40;L1:=60;AAA:=CLOSE>OPEN;BBB:=AAA&&CLOSE>MA(CLOSE,S1)&&CLOSE>MA(CLOSE, M2)&&CLOSE>MA(CLOSE,L1);CCC:=BBB&&OPENXG1:=CCC&&(CLOSE-OPEN)>0.0618*CLOSE;AA1:=D1 AND D2;AA2:=D2 AND D3;AA3:=D1 AND D3;XG2:=AA1 OR AA2 OR AA3;强势:IF(XG1 AND XG2,1,0),COLORRED;{底部买点}WW:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);MM:=DMA(CLOSE,WW);通道4:= (1-7/100)*MM;VAR4:=EXPMA(CLOSE,9);LDN:=EXPMA(VAR4*0.86,5);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));TTRR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);PDI:=DMP*100/TTRR;MDI:=DMM*100/TTRR;ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);买底: C<=通道4 AND C<=LDN AND CCI<-100AND ADX>=60 AND MDI >= PDI AND CLOSE>OPEN;6 侯氏私募选股A01:=DYNAINFO(7);A02:=MA(((AMOUNT / VOL) / 100),(VOL / CAPITAL));A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=(DMA(A06,(VOL / CAPITAL)) * 100);A08:=IF((A02 > A01),(100 - A07),A07);A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);STICKLINE((A09 > 0),0,A09,5,0),COLORFF00FF;黄金线选股:IF(((CROSS(A09,0.009) AND (OPEN && LOW)) AND (CLOSE && LOW)),20,0),COLORFF00FF;私募黄金线:A09,LINETHICK2,COLOR00FFFF;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);MSD:EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORWHITE;风险区:80,COLORFF85FF;安全区:20,COLORYELLOW;天线:100,COLORFFFF00,LINETHICK2;地线:=0,LINETHICK2 COLOR6699FF;强弱线:50,COLORGREEN,POINTDOT;VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=VAR2/VAR1*100-70;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=SMA(VAR3/VAR1*100,3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF(VAR9>100,VAR9-100,0);VAR11:=HHV(HIGH,34);VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);趋势值:VAR13,COLORRED;STICKLINE(VAR12-VAR13>0,VAR12,VAR13,8,0),COLORRED;STICKLINE(VAR12-VAR13<0,VAR12,VAR13,8,0),COLOR00FF0F;VARK1:=EMA(HHV(HIGH,500),21);VARK2:=EMA(HHV(HIGH,250),21);VARK3:=EMA(HHV(HIGH,90),21);VARK4:=EMA(LLV(LOW,500),21);VARK5:=EMA(LLV(LOW,250),21);VARK:=EMA(LLV(LOW,90),21);VARK7:=EMA((VARK4*0.96+VARK5*0.96+VARK*0.96+VARK 1*0.558+VARK2*0.558+VARK3*0.558)/6,21);VARK8:=EMA((VARK4*1.25+VARK5*1.23+VARK*1.2+VARK1* 0.55+VARK2*0.55+VARK3*0.65)/6,21);VARK9:=EMA((VARK4*1.3+VARK5*1.3+VARK*1.3+VARK1*0. 68+VARK2*0.68+VARK3*0.68)/6,21);VARKA:=EMA((VARK7*3+VARK8*2+VARK9)/6*1.738,21);VARKB:=REF(LOW,1);VARKC:=SMA(ABS(LOW-VARKB),3,1)/SMA(MAX(LOW-VARKB,0),3,1)*100;VARKD:=EMA(IF(CLOSE*1.35<=VARKA,VARKC*10,VARKC/10 ),3);VARKE:=LLV(LOW,30);VARKF:=HHV(VARKD,30);VARK10:=IF(MA(CLOSE,58),1,0);火焰山: EMA(IF(LOW<=VARKE,(VARKD+VARKF*2)/2,0),3)/618*VARK10;火焰: STICKLINE(火焰山>0,0,火焰山,4,1);今量: 火焰山;STICKLINE(火焰山>0,0,今量*1.2,8,0) COLOR0000FF; STICKLINE(火焰山>0,0,今量*0.8,8,0) COLOR0066FF; STICKLINE(火焰山>0,0,今量*0.6,8,0) COLOR0099FF; STICKLINE(火焰山>0,0,今量*0.4,8,0) COLOR00CCFF; STICKLINE(火焰山>0,0,今量*0.2,8,0) COLOR00FFFF;。
整合版KDJ通达信指标公式源码
非常好用,多周期K D J 同图!STICKLINE(C>0,-20,5,4,0),COLORBLACK;F1:=ZIG(3,15);F2:=IF((F1>REF(F1,1)),100,80);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,3,1);D:SMA(K,3,1);J:3*K-2*D,COLORRED;MA势:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100;势:=EMA(MA势,5),COLORLIRED;趋势:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1);ZZ:=趋势>REF(趋势,1);K1:=DVOL/1000000;K2:=DCLOSE;V1:=EMA(K1,5);V2:=EMA(K2,5);价异动:=K2>REF(V2,1)*1.06;量异动:=K1>REF(V1,1)*1.6&&ZZ;停牌:=DYNAINFO(17)>0;M1:=SUM(价异动,2)>0 AND 停牌;M2:=SUM(量异动,2)>0 AND REF(趋势,1)<89;鸣:(F2=100 AND C>REF(C,1) AND FILTER(M1 AND M2,3))*120,COLORRED,LINETHICK3; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;低2:=IF(CURRBARSCOUNT<=60, CONST(IF(ISLASTBAR=1,LLV(L,BARSLAST(CURRBARSCOUNT=60)),1)),DRAWNULL);TX:=BARSLAST(C>REF(C,1)*1.095 AND C=H);T2L:=BARSLAST(C<REF(C,1)*1.095 AND C>REF(C,1)*1.08);T3L:=BARSLAST(C<REF(C,1)*1.08 AND C>REF(C,1)*1.07);T4L:=BARSLAST(C<REF(C,1)*1.07 AND C>REF(C,1)*1.06);T5L:=BARSLAST(C<REF(C,1)*1.06 AND C>REF(C,1)*1.05);TJ1X:=COUNT(TX=0,100)=0;TJ2:=COUNT(T2L=0,100)=0;TJ3:=COUNT(T3L=0,100)=0;TJ4:=COUNT(T4L=0,100)=0;TJ5:=COUNT(T5L=0,100)=0;TJA:=C>REF(C,1)*1.05;AA:=REF(TX,1)>100 AND REF(T2L,1)>100 AND REF(T3L,1)>100 AND REF(T4L,1)>100 AND REF(T5L,1)>80 AND TJA;HHM:=HHV(MACD.MACD*100,200);LLM:=LLV(MACD.MACD*100,200);M5:=MA(C,5);M10:=MA(C,10);M20:=MA(C,20);M60:=MA(C,60);D3:=MIN(MIN(M5,M10),M20)>M60;XGT:=BARSLAST(AA AND HHM<60 AND LLM>-55);D6:=BARSSINCEN(MIN(MIN(M5,M10),M20)>M60,XGT+1);XGX:=CROSS((XGT=0 AND D3) OR D6=0,0.5);TJX:=COUNT(XGX,30)=2 AND XGX;SR11:=REF(HIGH,10)=HHV(HIGH,2*10+1);SR21:=FILTER(SR11,10);SR31:=BACKSET(SR21,10+1);HDH:=FILTER(SR31,10);前高G:=REF(H,BARSLAST(HDH));倍量G:=VOL/REF(VOL,1)>=1.9;突破前高G:=CROSS(C,前高G);YG:= 倍量G AND 突破前高G;SJG:=BARSLAST(YG);H300:=HHVBARS(DIF,300);AL:=BOLL.UB;TQ:=BARSLAST(CROSS(AL>=REF(AL,1),0.5));E25:=EXPMA(C,25);ZF:=EVERY(RANGE(C/REF(C,1),0.97,1.05),TQ+1);ZFF:=(HHV(H,TQ+1)-LLV(L,TQ+1))/LLV(L,TQ+1)*100;TJQ:=EVERY(MAX(C,O)/AL<1.02 ,TQ+1);XL:=(ATAN((E25/REF(E25,TQ)-1)*100)*180/3.1415926);TJ1Q:=CROSS(DIF>=REF(DIF,H300),0.5) AND ZFF<17 AND ZF AND TJQ;起程:=TJ1Q AND XL>75;A1F:=REF(C,1);A3F:=(DCLOSE-A1F)/A1F*100;AA1F:=(A3F-REF(A3F,1));选股1:=CROSS(AA1F,9.8);A11F:=REF(V,1);A13F:=DVOL/A11F;AA3F:=(A13F-REF(A13F,1));选股2:=CROSS(AA3F,500);潜伏:=选股1 AND 选股2;爆发点:=(DCLOSE-REF(C,1))/REF(C,1)*100;XB:=CROSS(爆发点,20);TJ1L:=REF(CROSS(MA(C,5),C),1) AND CROSS(C,MA(C,5));TJ2L:=REF(CROSS(MA(C,10),C),1) AND CROSS(C,MA(C,10));TJ3L:=REF(CROSS(MA(C,20),C),1) AND CROSS(C,MA(C,20));TJ4L:=TJ1L OR TJ2L OR TJ3L;TJ5L:=REF(C,2)/REF(C,1)>=1.045 AND REF(C,1)<REF(O,1) AND C/REF(C,1)>1.09 AND C=H AND TJ4L;A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8* REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210;中线:=EMA(X,13);KKA:=EMA(C,5);KKB:=EMA(KKA,8);KKC:=EMA(KKB,13);长线1:=EMA(KKC,50);KAAA3:=REF(C,1)<REF(中线,1) AND C>中线;KBBB3:=C/REF(C,1)>1+0.01*9;KCCC3:=中线/长线1<1+0.01*20;大牛:=KAAA3 AND KBBB3 AND KCCC3 AND TJ5L;VARAA:=LLV(LOW,5);VARBA:=HHV(HIGH,5);确:=EMA((CLOSE-VARAA)/(VARBA-VARAA)*100,4);MA500:=MA(CLOSE,500);MA250:=MA(CLOSE,250);MA120:=MA(CLOSE,120);MA30:=MA(CLOSE,33);MA60:=MA(CLOSE,55);涨停收盘:=(C-REF(C,1))*100/REF(C,1)>=4 AND H-C<0.02;HD30:=FILTER(BACKSET(FILTER(REF(H,30)=HHV(H,2*30+1),30),30+1),30);LD30:=FILTER(BACKSET(FILTER(REF(H,30)=LLV(H,2*30+1),30),30+1),30);AX30:=REF(H,BARSLAST(HD30));T300:=BARSLAST(HD30)<BARSLAST(LD30) AND NOT(HD30);顶30:=IF(T300,AX30,AX30);JZ:=(CROSS(C,顶30) AND DIF>=-0.21 AND DEA<=0.37 AND MA30>MA60 AND (CROSS(C,MA30)OR CROSS(C,MA120)OR CROSS(C,MA250)OR CROSS(C,MA500) OR LOW< MA30)) AND MA30- MA60<0.7 AND 涨停收盘AND ABS((顶30-MA30)/顶30*100)<10;信:IF(确>REF(确,1) AND DIF>DEA AND (JZ OR 大牛OR XB OR 潜伏OR 起程OR CURRBARSCOUNT=CONST(SJG)+2 OR TJX OR (CCI<=100 AND L<=低2)),120,0)STICK,LINETHICK5,COLORLIMAGENTA;卖警:=IF(PEAKBARS(3,15,1)=1,80,100),COLORGREEN;泥淖:=IF((F1> REF(F1,1)),100,80),COLORFF9900;Q_1:=C-REF(C,1);Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);Q_3:=CROSS(EMA(C,19),EMA(C,7));Q_4:=CROSS(EMA(C,7),EMA(C,19));Z1:=L=LLV(L,BARSLAST(Q_3)+1);Z2:=LLV(L,BARSLAST(Q_3)+1);Z3:=H=HHV(H,BARSLAST(Q_4)+1);Z4:=HHV(H,BARSLAST(Q_4)+1);上0:=DRAWLINE(Z1,Z2,Z3,Z4,0);Y1:=H=HHV(H,BARSLAST(Q_4)+1);Y2:=HHV(H,BARSLAST(Q_4)+1);Y3:=L=LLV(L,BARSLAST(Q_3)+1);Y4:=LLV(L,BARSLAST(Q_3)+1);下0:=DRAWLINE(Y1,Y2,Y3,Y4,0);TJ:=IF(上0<REF(上0,1) AND 下0=上0,1,0);未来空柱:=IF(REF(TJ,1)=0 AND TJ>=1,100,0);AVAR1:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;AVAR2:=(C-LLV(L,10))/(HHV(H,10)-LLV(L,10))*100;AVAR3:=(C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100;AVAR4:=DMA(SMA((AVAR1+AVAR2+AVAR3)/3,2,1),3);K0:=SMA(AVAR4,2,1),COLOR0000FF,LINETHICK2;M0:=SMA(K0,2,1),COLORFFFFFF;SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);SR2:=FILTER(SR1,10);SR3:=BACKSET(SR2,10+1);HD:=FILTER(SR3,10);前高:=REF(H,BARSLAST(HD));倍量:=VOL/REF(VOL,1)>=1.9;突破前高:=CROSS(C,前高);Y:= 倍量AND 突破前高;SJ:=BARSLAST(Y);DRAWTEXT(CURRBARSCOUNT=CONST(SJ)+2,45,'过左峰'),COLORYELLOW;B:=ZIG(3,10);G:=MA(B,2);W:=CROSS(G,B);DRAWTEXT(W=1,70,'卖' ),COLOR00FF00;VARA1:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARA2:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARA3:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARA4:=(((VARA1 + (2 * VARA2)) + (3 * VARA3)) / 6);VARA5:=MA(VARA4,3);底部反转:=CROSS(KDJ.J,0) AND (VARA5 <= (0 - 7));DRAWTEXT(F2=100 AND 底部反转,50,'反转预警'),COLORRED;值:=(EMA(((CLOSE-LLV(LOW,14))/(HHV(HIGH,35)-LLV(LOW,56)))*(4),4))*(25),COLORG REEN,LINETHICK2;DRAWTEXT(FILTER(CROSS(值,5),10), 40,'超低'),COLORYELLOW;DIFX:=(2*EMA(CLOSE, 12)-EMA(EMA(CLOSE,12),12))-(2*EMA(CLOSE,26)-EMA(EMA(CLOSE, 26),26));DEAX:=2*EMA(DIFX, 9) - EMA(EMA(DIFX, 9),9);FF:=C=LLV(C,180);{}GG:= DEAX> REF(DEAX,1) AND REF(DEAX> REF(DEAX,1),1)=1;LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;拐点出击:=(NOT(未来空柱=100) AND F2=100 AND LL AND GG)*DEAX;VAR1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);山底:=IF(CLOSE>SAR(4,6,20),SAR(4,6,20),DRAWNULL),CIRCLEDOT,COLORGREEN;山顶:=IF(CLOSE<SAR(4,6,20),SAR(4,6,20),DRAWNULL),CIRCLEDOT,COLORRED; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORWHITE;DIFF变红:=IF(DIFF>=REF(DIFF,1),DIFF,DRAWNULL),COLORLIRED;{DEA:=EMA(DIFF,9),COLORWHITE;}DEA变红:=IF(DEA>=REF(DEA,1),DEA,DRAWNULL),COLORLIMAGENTA;{MACD:=2*(DIFF-DEA),COLORSTICK;}NOTEXT上买下卖:=CLOSE-REF(CLOSE,49),COLORWHITE;NOTEXT红买绿卖:=MA(NOTEXT上买下卖,49),COLORGREEN;上买下卖:=IF(NOTEXT上买下卖>NOTEXT红买绿卖,NOTEXT上买下卖,DRAWNULL),LINETHICK2,COLORMAGENTA;红买绿卖:=IF(NOTEXT红买绿卖>=REF(NOTEXT红买绿卖,1) AND NOTEXT上买下卖>NOTEXT红买绿卖,NOTEXT红买绿卖,DRAWNULL),LINETHICK3,COLORRED;红买:=上买下卖AND 红买绿卖AND DEA变红,COLORRED,NODRAW;绿卖:=红买!=1,COLORGREEN,NODRAW;底:=SMA(VAR2,3,1),COLORGREEN;顶:=SMA(底,3,1),COLORRED;方向:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,30))/MA(CLOSE,30);方向向下:=(DMA((2*CLOSE+LOW+HIGH)/4,方向)),COLORGREEN;红灯停:=IF(CLOSE<SAR(4,6,20),SAR(4,6,20),DRAWNULL),CIRCLEDOT,COLORRED;向下:=方向向下AND 红灯停,COLORGREEN,NODRAW;空仓基因:=绿卖AND 向下,COLORGREEN,NODRAW;B2:=BARSLAST(REF(CROSS(顶,底),1));顶背离:=空仓基因AND REF(C,B2+1)<HHV(H,3) AND REF(底,B2+1)>底AND CROSS(顶,底) AND 底>80 AND MA(C,5)>MA(C,377) AND 山顶;DRAWTEXT(顶背离=1,85,'顶背'),COLORFFFF00;DRAWTEXT(FILTER(拐点出击,30), 30,'拐点→'),COLORWHITE;多空:118,COLOR0B0BFF,LINETHICK5;红: IF(K0>M0,118,DRAWNULL),COLORFF00FF,LINETHICK5;青: IF(K0<M0,118,DRAWNULL),COLOR00FF00,LINETHICK5;STICKLINE(CROSS(90,J),88,100,1,0),COLOR00FF00;DRAWTEXT(CROSS(90,J),100,'。
通达信指标公式源码 动态量价KDJ(副图指标 源码)
指标说明:“XCX量”上穿股价一般为可介入,另加入了买入信号。
(下载前面的,后面的复制源码时出错,不知如何删除,不好意思。
){动态量价KDJ}RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*REFDATE(LLV(L, 100),DATE)*6.8;K:=SMA(RSV,6,1);D:=SMA(K,3,1);J:=(3*K-2*D)/REFDATE(LLV(L,100),DATE)/5.3,COLORFF6600,LINETHICK2;分量:=CONST(LLV(V/CONST(HHV(V,180)),180));百量:=CONST(HHV(V/CONST(HHV(V,180)),180))-分量;基点量:=CONST(LLV(L,180));基量:=CONST(HHV(H,180))-基点量;CC比量:=(V/CONST(HHV(V,180))-分量)/百量;XCX量:(CC比量*基量+基点量)*J,COLORFFFFFF,LINETHICK3;【金顶】:(CROSS(SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*90,13))*-REFDATE(HHV(XCX量,180),DATE)/3+REFDATE(HHV(XCX量,180),DATE)/1.03,COLORFF6600,LINETHICK1,DOTLINE; STICKLINE(C>0,基点量,XCX量,2.6,0),COLOR0000AA;STICKLINE(C<O,基点量,XCX量,2.6,0),COLORFF0000;【手】: V/CONST(HHV(V,180))*REFDATE(HHV(XCX量,180),DATE),LINETHICK0;CB:=IF(CAPITAL>1,AMOUNT/【手】/100,(HIGH+LOW+2*CLOSE)/4); 空1:=IF((HIGH-LOW)>0 AND CLOSE>CB,((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CLOSE)/(HIGH-CB))*((HIGH-CB)/(HIGH-LOW)*【手】) ,0);多1:=IF((HIGH-LOW)>0 AND CLOSE>CB, 【手】-空1 ,0);多2:=IF((HIGH-LOW)>0 AND CLOSE<=CB,((CLOSE-LOW)/(CB-LOW))*((CLOSE-LOW)/(CB-LOW))*((CB-LOW)/(HIGH-LOW)*【手】) ,0);空2:=IF((HIGH-LOW)>0 AND CLOSE<=CB, 【手】-多2 ,0);多3:=IF((HIGH-LOW)=0 AND CLOSE>REF(CLOSE,1), 【手】,0);空3:=IF((HIGH-LOW)=0 AND CLOSE<=REF(CLOSE,1), 【手】,0); STICKLINE(CLOSE>REF(CLOSE,1),【手】,0,1.5,0) COLOR993399; STICKLINE(CLOSE>REF(CLOSE,1),【手】,0,0.2,0),COLORFF00FF; STICKLINE(CLOSE>REF(CLOSE,1),【手】,0,0,0),COLORFFBBFF; STICKLINE(CLOSE<=REF(CLOSE,1),【手】,0,1.5,0),COLOR666600; STICKLINE(CLOSE<=REF(CLOSE,1),【手】,0,0.2,0),COLOR339933; STICKLINE(CLOSE<=REF(CLOSE,1),【手】,0,0.1,0),COLOR33CC33;。
通达信变态kdj指标公式(二)
通达信变态kdj指标公式(二)通达信变态kdj指标公式什么是通达信变态kdj指标公式通达信变态kdj指标公式是一种技术分析指标,用于衡量价格走势的强弱和超买超卖情况。
它是基于KDJ指标的改进版本,通过引入了一个新的公式来提高指标的准确性和敏感性。
相关公式通达信变态kdj指标公式包括以下几个关键公式: 1. RSV公式:RSV = (收盘价 - 最低价) / (最高价 - 最低价) * 100 - RSV表示当日收盘价在过去一段时间内的位置关系,其取值范围在0到100之间。
2.K值公式:K = SMA(RSV, M1)–K表示K线的数值,通过对RSV进行简单移动平均计算得出,其中M1为K值的周期参数。
3.D值公式:D = SMA(K, M2)–D表示D线的数值,通过对K值进行简单移动平均计算得出,其中M2为D值的周期参数。
4.J值公式:J = 3 * K - 2 * D–J表示J线的数值,通过对K值和D值进行线性组合得出。
具体解释与示例下面通过一个例子来解释和演示通达信变态kdj指标公式的计算过程:假设有一只股票的最高价和最低价数据如下:最高价:40, 42, 45, 48, 50 最低价:38, 40, 42, 45, 47我们以5日为周期计算kdj指标,即M1和M2都设为5。
首先计算RSV值: - 第1天:/ * 100 = - 第2天:/ * 100 = - 第3天:/ * 100 = - 第4天:/ * 100 = - 第5天:/ * 100 = 然后计算K值: - 第1天:K = ( + + + + ) / 5 = - 第2天:K = ( + + + + ) / 5 = - 第3天:K = ( + + + + ) / 5 = - 第4天:K = ( + + + + ) / 5 = - 第5天:K = ( + + + + ) / 5 = 接着计算D值: - 第1天:D = ( + + + + ) / 5 = - 第2天:D = ( + + + + ) / 5 = - 第3天:D = ( + + + + ) / 5 = - 第4天:D = ( + + + + ) / 5 = - 第5天:D = ( + + + + ) / 5 = 最后计算J值: - 第1天:J = 3 * - 2 * = - 第2天:J = 3 * - 2 * = - 第3天:J = 3 * - 2 * = - 第4天:J = 3 * - 2 * = - 第5天:J = 3 * - 2 * =通过以上计算,我们得到了KDJ指标的数值序列,用于衡量价格走势的强弱和超买超卖情况。
【指标公式源码下载】通达信MACD+KDJ指标公式
通达信MACD+KDJ指标公式RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K0:=SMA(RSV,3,1);D0:=SMA(K0,3,1);J0:=3*K0-2*D0;DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORGREEN,NODRAW; DEA:EMA(DIFF,9),COLORLIRED,NODRAW;MACD:2*(DIFF-DEA),COLORMAGENTA,NODRAW;{RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;KK:=SMA(RSV1,3,1);DD:=SMA(KK,3,1);JJ:=3*KK-2*DD; }KX:=250;KH:=HHV(K0,KX);DH:=HHV(D0,KX);JH:=HHV(J0,KX);KL:=LLV(K0,KX);DL:=LLV(D0,KX);JL:=LLV(J0,KX);HKMAX:=MAX(KH,MAX(DH,JH));LKMIN:=MIN(KL,MIN(DL,JL));KHLB:=(HKMAX+LKMIN)/2;KHLC:=HKMAX-LKMIN;MHF:=HHV(DIFF,KX);MHD:=HHV(DEA,KX);MHM:=HHV(MACD,KX);MLF:=LLV(DIFF,KX);MLD:=LLV(DEA,KX);MLM:=LLV(MACD,KX);HMAX:=MAX(MHF,MAX(MHD,MHM));LMIN:=MIN(MLF,MIN(MLD,MLM));FHLB:=(HMAX-LMIN)/100;FHLC:=HMAX-LMIN;SH:(0-FHLB)*(KHLC/FHLC)+KHLB,COLOR00AAAA;{DIFFA:=(DIFF-FHLB)*(KHLC/FHLC)+KHLB;DEAA:=(DEA-FHLB)*(KHLC/FHLC)+KHLB;DRAWBAND(DIFFA,RGB(255,110,150),DEAA,RGB(100,255,150));} DRAWTEXT(ISLASTBAR=1,SH,' 0 轴'),COLOR00AAAA;K:K0,LINETHICK2,COLORFF6600;D:D0,LINETHICK2,COLOR99FF00;J:J0,LINETHICK2,COLORRED;MACDA:=(MACD-FHLB)*(KHLC/FHLC)+KHLB;CDA:=MACD<REF(MACD,1) AND MACD>0;CDB:=MACD>=REF(MACD,1) AND MACD>0;CDC:=MACD>REF(MACD,1) AND MACD<0;CDD:=MACD<=REF(MACD,1) AND MACD<0;STICKLINE(CDA,SH,MACDA,1.8,0),COLOR0066FF;{黄色段} STICKLINE(CDA,SH,MACDA,1.5,0),COLOR0077FF;STICKLINE(CDA,SH,MACDA,1.2,0),COLOR0088FF;STICKLINE(CDA,SH,MACDA,1.0,0),COLOR0099FF;STICKLINE(CDA,SH,MACDA,0.8,0),COLOR00AAFF;STICKLINE(CDA,SH,MACDA,0.5,0),COLOR00EEFF;STICKLINE(CDB,SH,MACDA,1.8,0),COLOR0000AA; {红色段} STICKLINE(CDB,SH,MACDA,1.5,0),COLOR0011BB;STICKLINE(CDB,SH,MACDA,1.2,0),COLOR0022CC;STICKLINE(CDB,SH,MACDA,1.0,0),COLOR0033DD;STICKLINE(CDB,SH,MACDA,0.8,0),COLOR0044EE;STICKLINE(CDB,SH,MACDA,0.5,0),COLOR0055FF;STICKLINE(CDC,SH,MACDA,1.8,0),COLORAA00BB;{向上粉红} STICKLINE(CDC,SH,MACDA,1.5,0),COLORBB11BB;STICKLINE(CDC,SH,MACDA,1.2,0),COLORCC22BB;STICKLINE(CDC,SH,MACDA,1.0,0),COLORDD33BB;STICKLINE(CDC,SH,MACDA,0.8,0),COLOREE44BB;STICKLINE(CDC,SH,MACDA,0.5,0),COLORFF55BB;STICKLINE(CDD,SH,MACDA,1.8,0),COLOR007700;{青色} STICKLINE(CDD,SH,MACDA,1.5,0),COLOR008811;STICKLINE(CDD,SH,MACDA,1.2,0),COLOR00AA22;STICKLINE(CDD,SH,MACDA,1.0,0),COLOR00BB33;STICKLINE(CDD,SH,MACDA,0.8,0),COLOR00DD44;STICKLINE(CDD,SH,MACDA,0.5,0),COLOR00DD55;{顶底信号}VAR51:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;VAR52:=SMA(VAR51,4,1);VAR53:=SMA(VAR52,6,1);VAR54:=VOL/CAPITAL*34;VAR55:=REF(VAR54,1);STICKLINE(VAR53<7 AND VAR52<11,-3,0,3,0),LINETHICK2,COLORYELLOW; STICKLINE(VAR53>89.5 AND VAR52>91,100,97,3,0),LINETHICK1,COLORFF8888; STICKLINE(VAR53>88.5 AND VAR52>94.6,100,95,5,0),COLORRED;。
通达信经典KDJ主图指标公式
通达信经典KDJ主图指标公式趋势线:MA(C,30),DOTLINE COLORFF00CC;IF(趋势线>=REF(趋势线,1),趋势线,DRAWNULL),DOTLINE,COLORYELLOW;回归斜率线A:EMA(SLOPE(C,21)*20+C,42);回归斜率线B:REF(回归斜率线A,2);IF(回归斜率线A>REF(回归斜率线A,1),回归斜率线A,DRAWNULL),COLORRED;IF(回归斜率线A<REF(回归斜率线A,1),回归斜率线A,DRAWNULL),COLORGREEN;IF(回归斜率线B>REF(回归斜率线B,1),回归斜率线B,DRAWNULL),COLORRED;IF(回归斜率线B<REF(回归斜率线B,1),回归斜率线B,DRAWNULL),COLORGREEN;经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));MAHL2:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}MAHL3:=IF(EMA(C,2)>回归斜率线 A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}{回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));}{C>昨C红K柱+C>O红K柱C>昨C红K柱C=昨C是跟白色24线C<昨C蓝K柱+C>O红K柱 C<昨C蓝K柱}{STICKLINE(CLOSE>REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED;STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00;}{STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;}STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;{STICKLINE(CLOSE<REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(C<REF(C,1) AND C>O,C,O,3,0),COLORFFCC00;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000;STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE(CLOSE<REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;}{经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;} DRAWICON(CROSS(经典K,经典D),L*0.96,26);{高亮红}回归斜率买:IF(CROSS(EMA(C,3),回归斜率线A),(L-(H-L)/3),DRAWNULL),POINTDOT,COLOR0000FF;{高亮红}回归斜率买_:DRAWICON(CROSS(EMA(C,3),回归斜率线A),L*0.98,1),{买};回归斜率卖:IF(CROSS(回归斜率线A,EMA(C,2)),(H+(H-L)/3),DRAWNULL),POINTDOT,COLOR00CF00;{中绿}卖:DRAWICON(CROSS(回归斜率线A,EMA(C,2)),H*1.03,2);经典KDJ卖:IF(CROSS(经典D,经典K),(H+(H-L)/2),DRAWNULL),CROSSDOT,LINETHICK3,COLOR00CF00;{中绿};RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,9,1);D:=SMA(K,9,1);J:=3*K-2*D;X2:=LLV(J,2)=LLV(J,8);{DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.99,'★买'),COLORYELLOW; }DRAWICON(CROSS(J,REF(J+0.01,1)) AND X2 AND J<20,LOW*0.99,23);VAR6:=REF(C,1);VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;DRAWTEXT(CROSS(84,VAR7),H*1.01,'逃顶'),COLORYELLOW ;AA:=(REF(H,1)-MAX(REF(C,1),REF(O,1)))/(REF(H,1)-REF(L,1))>0.6 AND (MIN(O,C)-L)/(H-L)>0.6 AND VOL<REF(VOL,1);DRAWTEXT(AA,L*0.99,'揉搓'),COLORRED;C3:=REF(C,1);跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,3,0),COLORBLUE;STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;{DRAWTEXT(跌停,H+0.1,'跌停'),COLORGREEN;}涨停:=IF(REF(C,1)*1.095-C<0.01 ,1,0);STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;{DRAWTEXT(涨停,L-0.1,'板'),COLORYELLOW;}M1:=EMA(EMA(C,21),3);M2:=EMA(EMA(C,34),3);TT2:=CROSS(C,M1)AND CROSS(C,M2);DRAWTEXT(TT2,L*0.96,'阳');。