短线KDJ通达信指标公式源码
通达信指标公式源码SKDJ顶底副图
{主力筹码2}CVAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;CVAR9:=SMA(CVAR8,13,8);{ M}风险:CEILING(SMA(CVAR9,13,8)),LINETHICK3,COLORRED;涨跌:=MA(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),5),LINETHICK3,COLORYEL LOW;DRAWTEXT(CROSS(风险,涨跌) && 风险<20,风险,'预'),COLORYELLOW; DRAWICON(风险>= REF(风险,1) && REF(风险,2) > REF(风险,1),风险,1); DRAWICON(风险<= REF(风险,1) && REF(风险,1) > REF(风险,2),风险,2); {SKDJ}SKDJN:=9;SKDJM:=3;SKDJ_LOWV:=LLV(LOW,SKDJN);SKDJ_HIGHV:=HHV(HIGH,SKDJN);SKDJ_RSV:=EMA((CLOSE-SKDJ_LOWV)/(SKDJ_HIGHV-SKDJ_LOWV)*100,SKD JM);K0:EMA(SKDJ_RSV,SKDJM),COLORWHITE;D0:MA(K0,SKDJM),COLORYELLOW;乖离率:K0/D0;DRAWICON(CROSS(D0,K0),(D0+K0)/2,37);DRAWICON(CROSS(K0,D0),(D0+K0)/2,1);{背离}A1:=BARSLAST(REF(CROSS(K0,D0),1));底背离:REF(CLOSE,A1+1)>CLOSE AND K0>REF(K0,A1+1) ANDCROSS(K0,D0);DRAWLINE(A1=0,D0,底背离,D0,0),COLORRED,DOTLINE;A2:=BARSLAST(REF(CROSS(D0,K0),1));顶背离:REF(CLOSE,A2+1)<CLOSE AND REF(D0,A2+1)>D0 ANDCROSS(D0,K0);DRAWLINE(A2=0,D0,顶背离,D0,0),COLORGREEN,DOTLINE;DRAWTEXT(底背离>0,D0-5,'底背离'),COLORRED;DRAWTEXT(顶背离>0,D0-5,'顶背离'),COLORGREEN;K60:=K0#MIN60;D60:=D0#MIN60;XG:IF((CROSS(K60,D60)) || (K60>REF(K60,1)>REF(K60,2) && K60/D60 <=1) || (K60>REF(K60,1) && REF(K60,1)<=REF(K60,2)) ,15,0),COLORRED;{好} DBA:IF((CROSS(D60,K60)) || (K60>REF(K60,1)>REF(K60,2) && K60/D60 >=1) || (K60<REF(K60,1) && REF(K60,1)>=REF(K60,2)) ,90,100),COLORYELLOW; DBS:IF((风险<= REF(风险,1) && REF(风险,1) > REF(风险,2)) || 风险>95,85,100),COLORGREEN;预警:IF((K0/D0 > REF(K0,1)/REF(D0,1)),10,0),COLORYELLOW;{(K0>=REF(K0,1) || K0 < REF(K0,1)) &&REF(K0,1) < REF(K0,2)};{(K0/D0 < REF(K0,1)/REF(D0,1)) || (K0/D0 > REF(K0,1)/REF(D0,1) &&REF(K0,1)/REF(D0,1) > REF(K0,2)/REF(D0,2)) || (CROSS(K0,D0) &&REF(K0,1)/REF(D0,1) > REF(K0,2)/REF(D0,2))};。
kdj金叉的通达信选股公式
kdj金叉的通达信选股公式
KDJ 金叉是一种技术分析指标,用于判断股票价格走势的短期趋势。
以下是一个 KDJ 金叉的通达信选股公式:
```公式
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;
CROSS(K,D);
```
在上述公式中,`RSV`表示未成熟随机值,`K`表示快速线,`D`表示慢速线,`J`表示超快线。
该公式的含义是:当 K 线上穿 D 线时,即 KDJ 金叉形成,发出买入信号。
需要注意的是,以上公式仅供参考,不保证盈利。
在实际应用中,还需要结合其他技术指标、基本面分析等因素进行综合判断。
另外,股票市场具有较高的风险,投资需谨慎。
整合版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,'。
最强抄底通达信指标公式源码
最强抄底通达信指标公式源码抄底是股市中一种常见的交易策略,通达信是一款广泛使用的股市分析软件。
以下是一些在通达信中常用的指标公式源码,用于抄底策略。
1.均线指标源码:```MA(CLOSE,N):=AVE(CLOSE,N);```该指标计算n周期内的收盘价平均值。
2.RSI指标源码:```RSI(CLOSE,N):=BEGINLC:=REF(CLOSE,1);ROC:=CLOSE-LC;UP:=SUM(MAX(ROC,0),N);DOWN:=ABS(SUM(MIN(ROC,0),N));RSI:=UP/(UP+DOWN)*100;RSI;END;```该指标计算n周期内的相对强弱指数。
3.MACD指标源码:```EMAFast:=EMA(CLOSE, 12);EMASlow:=EMA(CLOSE, 26);DIF:=EMAFast - EMASlow;DEA:=EMA(DIF,9);MACD:(DIF-DEA)*2;```该指标由两条移动平均线和一个差离值构成,用于衡量买卖力量。
4.KDJ指标源码:```RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1);D:=SMA(K,M2,1);J:=3*K-2*D;```该指标由三条曲线构成,用于衡量股价走势的超买超卖情况。
5.威廉指标源码:```WMS:=100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N));```该指标用于衡量股价处于过买或过卖的程度。
这些是通达信中一些常见的指标公式源码,可用于抄底策略。
当然,抄底不只依赖于指标,还需要结合其他股市因素进行分析和判断。
通达信指标公式源码 短线无敌指标(源码)
JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2)); VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2)); VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1); VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1)COLOR0000FF,NODRAW;青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW; 进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORFF0000,NODRAW;短买:VAR19,COLOR33AACC,NODRAW;品红离场:VAR1A,COLORFF99FF,NODRAW;急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW; 上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(Y TSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*R EF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YT SL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLOR0000FF;牵牛线:MA(CLOSE,26),COLORFF00FF;等待:=IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF; IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00;IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF; IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933; STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;CO:=(C-O);STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(短买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(短买,O,O+CO/3,2,0),COLOR338888;STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE;DRAWTEXT(短买,REF(CLOSE,1),'←短买'),COLOR33FFCC;STICKLINE(品红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(品红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE; DRAWTEXT(品红离场,REF(CLOSE,1)+0.1,'←离场'),COLORFF99FF;。
通达信KDJ完美指标公式
通达信KDJ完美指标公式通达信中的KDJ指标是由George C. Lane于1950年代开发的一种技术分析指标,该指标主要用于判断股票或其他金融品的超买超卖情况。
它基于随机指数的概念,通过计算最高价、最低价和收盘价之间的关系,从而为投资者提供购买和卖出的时机。
KDJ指标的计算公式如下:1.K值=(当日最高价-最低价)/(最高价-最低价)*1002.D值=K值的3日简单移动平均3.J值=3K值-2D值KDJ指标的计算过程相对简单,主要涉及到K值、D值和J值的计算,下面将重点对这三个值进行详细分析。
首先是K值的计算,K值是通过最高价和最低价之间的比例来计算的。
具体计算公式为:(当日最高价-最低价)/(最高价-最低价)*100。
K值的取值范围在0到100之间,一般来说,当K值超过80时,市场被认为是超买状态,投资者应该考虑卖出股票;而当K值低于20时,市场被认为是超卖状态,投资者应该考虑买入股票。
接下来是D值的计算,D值是K值的3日简单移动平均。
简单移动平均是指,将过去3日的K值相加后除以3,计算出来的结果即为D值。
可以说,D值是K值的平均值,它可以更好地反映股票价格的长期趋势。
当D值超过80时,市场被认为是超买状态,投资者应该考虑卖出股票;而当D值低于20时,市场被认为是超卖状态,投资者应该考虑买入股票。
最后是J值的计算,J值是通过3K值减去2D值得到的。
J值的计算公式为:3K值-2D值。
需要注意的是,J值是K值和D值的加权平均,它可以更好地判断股票价格的超买超卖情况。
当J值超过100时,市场被认为是超买状态,投资者应该考虑卖出股票;而当J值低于0时,市场被认为是超卖状态,投资者应该考虑买入股票。
总之,KDJ指标是一种较为常用的技术分析指标,通过计算最高价、最低价和收盘价之间的关系,可以帮助投资者判断股票或其他金融品的超买超卖情况。
在实际应用中,投资者可以根据K值、D值和J值的数值来制定买入和卖出的策略,从而提高投资的准确性和盈利能力。
通达信指标公式源码软件日周月KDJ指标公式
N:=9; P1:=3; P2:=3;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,P1,1);D:SMA(K,P2,1);J:3*K-2*D;{KDJ日周月金叉死叉}周K:="KDJ.K#WEEK"(9,3,3);周D:="KDJ.D#WEEK"(9,3,3);周J:="KDJ.J#WEEK"(9,3,3);月K:="KDJ.K#MONTH"(9,3,3);月D:="KDJ.D#MONTH"(9,3,3);月J:="KDJ.J#MONTH"(9,3,3);月金叉:=CROSS(月K,月D);周金叉:=CROSS(周K,周D);日金叉:=FILTER(CROSS(K,D) AND K<20,4);DRAWTEXT(月金叉,月D-2,'★'),COLOR0022EE;DRAWTEXT(月金叉,月D-2,'KD月金叉'),COLORYELLOW;DRAWTEXT(周金叉,周D,'★'),COLOR0022EE;DRAWTEXT(周金叉,周D,' KD周金叉'),COLORGREEN;DRAWICON(日金叉,K,1);DRAWTEXT(日金叉,D-6,'低位金叉'),COLOR00CCCC;DRAWTEXT(CROSS(周D,周K),周D*1.2,'KD周死叉'),COLOR00DDBB; DRAWTEXT(CROSS(月D,月K),月D,'KD月死叉'),COLORFFFFFF;KDB:=BARSLAST(REF(CROSS(K,D),1));KDDB:=REF(CLOSE,KDB+1)>CLOSE AND REF(K,KDB+1)<K AND CROSS(K,D); K底背:=IF(FILTER(KDDB>0,5),1,0);DRAWTEXT(K底背=1,D*0.98,'底背离'),COLORDDDDDD;KDD:=BARSLAST(REF(CROSS(D,K),1));K顶背:=REF(CLOSE,KDD+1)<CLOSE AND REF(K,KDD+1)>K AND CROSS(D,K); DRAWTEXT(FILTER(K顶背>0,5),D+8,'顶背离'),COLORFFAA22;IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;DRAWICON(CROSS(J,1),J,1);DRAWICON(K>80 AND D>80 AND CROSS(D,K),D,2);。
【指标公式源码下载】通达信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 副图源码
源码:VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100; VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);VAR4:=LLV(LOW,38);VAR5:=HHV(VAR3,38);VAR6:=IF(LLV(LOW,90),1,0);VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6; VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;VAR9:=SMA(VAR8,13,8);底线:0,COLOR00FFFF;主力吸货:VAR7,COLOR0000FF;吸筹1:STICKLINE(VAR7,0,VAR7,6,0),COLOR0000FF;吸筹2:STICKLINE(VAR7,0,VAR7,5,0),COLOR6600FF;吸筹3:STICKLINE(VAR7,0,VAR7,4,0),COLORBB00FF;吸筹4:STICKLINE(VAR7,0,VAR7,3,0),COLORFF00FF;吸筹5:STICKLINE(VAR7,0,VAR7,2,0),COLORFF33FF;吸筹6:STICKLINE(VAR7,0,VAR7,1,0),COLORFF66FF;吸筹7:STICKLINE(VAR7,0,VAR7,0,0),COLORFF99FF;BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);抄底:IF(乖离<-12 AND 乖离>=-18,-4,0), COLORCYAN,LINETHICK1; STICKLINE(乖离<-12 AND 乖离>=-18,2,0,6,0) , COLORCYAN;抄底二:IF(乖离<-18,3,0),COLORFF35FF,LINETHICK1;STICKLINE(乖离<-18,3,0,6,0),COLORFF35FF;抄底三:IF(乖离<-6,5,0),COLORRED,LINETHICK1;STICKLINE(乖离<-6,5,3,2,1),COLORRED;抄底四:IF(乖离<-4.5,0,0),COLOR00FFFF,LINETHICK1;STICKLINE(乖离<-4.5,0,1,3,1),COLOR00FFFF;VARA1:=DMA(CLOSE,VOL/MA(VOL,4)/4);VARA2:=DMA(CLOSE,VOL/MA(VOL,31)/31);VARA3:=(CLOSE-VARA1)/VARA1*100<-10;VARA4:=(VARA1-VARA2)/VARA2*100<-16;VARA5:=(CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100<-23;VARA6:=SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1)/SMA(ABS(CLOSE-REF(CLOS E,1)),3,1)*100>16;VARA7:=100*(HHV(HIGH,27)-CLOSE)/(HHV(HIGH,27)-LLV(LOW,27)); VARA8:=INDEXC;VARA9:=MA(VARA8,6);VARA:=MA(VARA8,24);VARB:=MA(VARA8,32);VARC:=VARB>VARA9*1.11 AND VARA>VARA9*1.095;SSS:=(VARA3 AND VARA4 AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 OR VARA5 AND VARA6 AND CROSS(VARA7,79) OR VARC ANDCLOSE/COST(8)<=0.8)*100;抄底王:SSS>0,COLORWHITE,LINETHICK1;STICKLINE(SSS>0,0,6,6,0),COLORWHITE;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,3,1),COLORWHITE;D:SMA(K,3,1),COLORYELLOW;J:3*K-2*D,COLORMAGENTA;底: 20,LINETHICK1 ,POINTDOT, COLOR77AA1A;入顶: 80,LINETHICK2 ,POINTDOT , COLOR9966FF;大顶: 100,LINETHICK2 ,POINTDOT ,COLOR22A6E6;顶轴:105, POINTDOT,LINETHICK2;上轴:90, POINTDOT,LINETHICK2;下轴:10, POINTDOT,LINETHICK2;底轴:0, POINTDOT,LINETHICK2;抢钱轴:-10, POINTDOT,LINETHICK2;DRAWTEXT(CROSS(J,顶轴) ,100,'大出'), COLORYELLOW;DRAWTEXT(CROSS(J,上轴) ,90,'小出'), COLOR99FFCC;DRAWTEXT(CROSS(下轴,J) ,10,'小进'), COLORBLUE;DRAWTEXT(CROSS(底轴,J) ,0,'大进'), COLORRED;DRAWTEXT(CROSS(抢钱轴,J) ,-5,'狂进'), COLORWHITE;A01:=DYNAINFO(5); IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK1;IF(D<REF(D,1),D,DRAWNULL),COLORCYAN,LINETHICK1;IF(J<REF(J,1),J,DRAWNULL),COLORFFFF00,LINETHICK1;IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK1;IF(D>REF(D,1),D,DRAWNULL),COLORYELLOW,LINETHICK1;IF(J>REF(J,1),J,DRAWNULL),COLORFF00FF,LINETHICK1;小底:REF(IF((MA(C,5)-C)/C>0.04 AND(MA(C,10)-MA(C,5))/MA(C,5)>0.04,5,0),1),COLORYELLOW;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100 ;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100;D1:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+1 00;大底:=(A<15 AND REF(A,1)<15 AND D1<18 AND B>REF(B,1) AND CROSS(B,A) AND B>D1AND (REF(B,1)<5 OR REF(B,2)<5 ) AND (D1>=A OR REF( B,1)<1 )); STICKLINE( 大底,0,10,11,0 ),COLORRED;DRAWTEXT(大底,11,'大底')COLORFF00FF;VARFN:=LOW*0.9;VAR11N:=EMA(VARFN,30);VAR12N:=CLOSE-REF(CLOSE,1);VAR13N:=MAX(VAR12N,0);VAR14N:=ABS(VAR12N);VAR15N:=SMA(VAR13N,7,1)/SMA(VAR14N,7,1)*100;VAR16N:=SMA(VAR13N,13,1)/SMA(VAR14N,13,1)*100;VAR17N:=BARSCOUNT(CLOSE);VAR18N:=SMA(MAX(VAR12N,0),6,1)/SMA(ABS(VAR12N),6,1)*100;VAR19N:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+10 0;VAR1AN:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1BN:=SMA((SMA(VAR1AN,4,1)-50)*2,3,1);VAR1CN:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*10 0;VAR1DN:=SMA(VAR1CN,4,1);VAR1EN:=SMA(VAR1DN,3,1);VAR1FN:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20N:=VAR18N<=25 AND VAR19N<-95 AND VAR1FN>20 ANDVAR1BN<-30 AND VAR1EN<30AND VAR11N-CLOSE>=-0.25 AND VAR15N<22 AND VAR16N<28 ANDVAR17N>50;STICKLINE(VAR20N,0,70,1,0),COLORBLUE,LINETHICK3 ;DRAWTEXT(VAR20N,80,'★青龙出海!'),COLORBLUE; HP:=HHV(H,9);LP:=LLV(L,9);R:=(C-LP)/(HP-LP)*100;M:=MA(R,40);S:=STD(R,40);高:=M+2*S;中:=M;低:=M-2*S;【高】: 高,COLOR0099FF;【中】: 中,POINTDOT,COLORWHITE;【低】: 低,COLOR00FF00;。