合并必涨通达信指标公式源码

合集下载

【股票指标公式下载】-【通达信】合成主图(暴涨)

【股票指标公式下载】-【通达信】合成主图(暴涨)

【通达信】合成主图(暴涨)-指标公式源码N:(MA(L,1))*0.97;M:(MA(L,3)*0.97)*0.97;VAR2:=((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:=((REF(VARC,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));STICKLINE((((((((((((VAR2 OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) OR VARC) ORVARD),CLOSE,REF(CLOSE,1),3,1),COLORRED;VARE:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));VARF:=((REF(VARE,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR10:=((REF(VARF,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR11:=((REF(VAR10,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR12:=((REF(VAR11,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR13:=((REF(VAR12,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR14:=((REF(VAR13,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR15:=((REF(VAR14,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR16:=((REF(VAR15,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR17:=((REF(VAR16,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));VAR18:=((REF(VAR17,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2)));VAR19:=((REF(VAR18,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2)));STICKLINE((((((((((((VARE OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) ORVAR19),CLOSE,REF(CLOSE,1),3,1),COLORGREEN;VAR1A:=(REF((((((((((((VARE OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18) OR VAR19),1) AND VAR2);STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),5,0)COLORYELLOW,LINETHICK2; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0)COLORRED;AA:=(REF((((((((((((VAR2 OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) OR VARC) OR VARD),1) AND VARE); STICKLINE(AA,REF(CLOSE,1),REF(CLOSE,2),5,1)COLORYELLOW;STICKLINE(AA,REF(CLOSE,1),REF(CLOSE,2),3,0)COLORBLUE;{蓝压顶}HH2:=MA(CLOSE,14);HH3:=MEMA(CLOSE,4);AA1:=AMOUNT/VOL;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=VOL<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,L*0.99,'涨'),COLORRED;ZF:=(C/REF(C,1)-1)*100;AAA:=SUM(ZF,3);暴涨:=IF(AAA>=18,18,0);DRAWTEXT(COUNT(AAA<-6,3)=2 AND CROSS(AAA,-6),L,'暴'),COLORWHITE;【通达信】合成主图(暴涨)-指标公式效果图(文档来源:若水财经社区)。

多合一通达信指标公式源码

多合一通达信指标公式源码

多款不错的选股预警指标综合为一个附图,源码放松参数设置参数最小最大缺省NNN 0 200 50N1 1 1000 104N2 1 100 99================================================={收复江山}{思路就是股价收复昨日大阴线或者长上影线时预警。

该公式导入通达信即可在盘中选股。

其中有两个参数N1和N2可自己设置,N1代表昨天上影线或者大阴线的长度,默认4个点的长度;N2代表当前股价收复昨天最高价多少的时候预警,默认当股价距离昨天最高价1个点的时候预警进行观察。

预警后何时买入:预警后观察该股是否放量,在该股马上要冲过昨日最高点的时候全仓买进等板。

要求昨日的K线位置不要处在连续大涨之后,最好刚刚跳空突破的时候。

}A:=REF(H,1)>=REF(C,1)*N1/100;B:=C>=REF(H,1)*N2/100 AND DYNAINFO(8)>0;R:=C=H;收复江山:R AND A AND B,COLOR4D4DFF;STICKLINE(收复江山,0.5,0.1,1,0),COLOR4D4DFF;DRAWTEXT(收复江山>0,0.05,'收复江山'),COLOR00FFFF;{宝宝涨停}ST:=IF(NAMELIKE('S'),0,1);XXG:=IF(NAMELIKE('*'),0,1);TP:=DYNAINFO(4)>0;XIAO:=FINANCE(7)<=6000000000;YZ:=C/REF(C,1)>1.0975 AND H=O;LTGB:=ST AND XXG AND TP AND XIAO AND NOT(YZ);XA_1:=IF(CLOSE>OPEN ANDHIGH>REF(CLOSE,1),ATAN((HIGH-REF(CLOSE,1))/REF(CLOSE,1)),0); XA_2:=IF(CLOSE>OPEN ANDHIGH<REF(CLOSE,1),-ATAN((REF(CLOSE,1)-HIGH)/REF(CLOSE,1)),0); XA_3:=IF(CLOSE>OPEN AND HIGH=REF(CLOSE,1),0,0);XA_4:=IF(CLOSE<OPEN ANDHIGH>REF(CLOSE,1),ATAN((HIGH-REF(CLOSE,1))/REF(CLOSE,1)),0); XA_5:=IF(CLOSE<OPEN ANDHIGH<REF(CLOSE,1),-ATAN((REF(CLOSE,1)-HIGH)/REF(CLOSE,1)),0); XA_6:=IF(CLOSE<OPEN AND HIGH=REF(CLOSE,1),0,0);XA_7:=XA_1+XA_2+XA_3+XA_4+XA_5+XA_6;XA_8:=MA(XA_7,9);XA_9:=MA(XA_7,5);XA_10:=MA(XA_7,3);XA_11:=IF(CLOSE>OPEN ANDLOW>REF(CLOSE,1),ATAN((LOW-REF(CLOSE,1))/REF(CLOSE,1)),0); XA_12:=IF(CLOSE>OPEN ANDLOW<REF(CLOSE,1),-(ATAN(REF(CLOSE,1)-LOW)/REF(CLOSE,1)),0); XA_13:=IF(CLOSE>OPEN AND LOW=REF(CLOSE,1),0,0);XA_14:=IF(CLOSE<OPEN ANDLOW>REF(CLOSE,1),ATAN((LOW-REF(CLOSE,1))/REF(CLOSE,1)),0); XA_15:=IF(CLOSE<OPEN ANDLOW<REF(CLOSE,1),-ATAN((REF(CLOSE,1)-LOW)/REF(CLOSE,1)),0); XA_16:=IF(CLOSE<OPEN AND LOW=REF(CLOSE,1),0,0);XA_17:=XA_11+XA_12+XA_13+XA_14+XA_15+XA_16;XA_18:=MA(XA_17,9);XA_19:=MA(XA_17,5);XA_20:=MA(XA_17,3);XA_21:=ATAN(XA_8/0.09);XA_22:=ATAN(XA_9/0.05);XA_23:=ATAN(XA_10/0.03);XA_24:=ATAN((-XA_18)/0.09);XA_25:=ATAN((-XA_19)/0.05);XA_26:=ATAN((-XA_20)/0.03);XA_27:=C/REF(C,1)>1.028 AND C=H ANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));XG1:=FILTER(XA_27,28);XGG:=(XA_23+XA_22+XA_21)/3/6.28*360;XG2:=XGG-REF(XGG,1)>0;AA05:=EMA(C,5);HJ:=ATAN((HIGH-REF(HIGH,1))/REF(HIGH,1)/0.1)/6.28*360;LJ:=ATAN((LOW-REF(LOW,1))/REF(LOW,1)/0.1)/6.28*360;CJ:=ATAN((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)/0.1)/6.28*360;OJ:=ATAN((OPEN-REF(OPEN,1))/REF(OPEN,1)/0.1)/6.28*360;AM:=MIN(MIN(MIN(CJ,OJ),HJ),LJ);BM:=MAX(MAX(MAX(CJ,OJ),HJ),LJ);A11:=MIN(CJ,OJ);B11:=MAX(CJ,OJ);T:=IF(B11>0 AND A11>0,B11,0);D:=IF(B11<0 AND A11<0,A11,0);J1:=IF(B11>0 AND A11<0,B11,0);J2:=IF(B11>0 AND A11<0,A11,0);TM:=MA(T+J1,1);DM:=MA(D+J2,1);JX:=TM+DM;T1:=FINDHIGH(BM,1,3,1);T2:=FINDHIGH(BM,1,3,2);Y:=BARSCOUNT(T1)<BARSCOUNT(T2);W1:=IF(Y,T1,0);W2:=IF(Y,T2,0);N1:=W1-W2;XG66:=MA(REF(T1+N1,1),5);XG6:=XG66-REF(XG66,1)>0;WURI:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;AA30:=EMA(C,30);HDBB:=HIGH-REF(HIGH,1);BBR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-L OW)),15);LDBB:=REF(LOW,1)-LOW;BBP:=EXPMEMA(IF(HDBB>0&&HDBB>LDBB,HDBB,0),15);XG77:=BBP*100/BBR;XG7:=XG77-REF(XG77,1)>0;SANRI:=(C-AA30)/AA30*100;MR:=COUNT(CROSS(WURI,0),3)>=1 AND SANRI>REF(SANRI,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>2 AND REF(C,1)<AA30;XG5:=FILTER(MR,10);宝宝涨停:XG1 AND XG2 AND XGG>30 AND LTGB AND XG6 AND XG7,COLORFF1CAE; {乾坤骑牛}TJ1:=O=L AND C>O AND O/REF(C,1)<0.95;TJ2:=MA(C,5)<MA(C,10) AND L<MA(C,5) AND H/O>1.1;TJ3:=H/C>1.07 AND V>REF(HHV(V,800),1);TJ4:=TJ1 AND TJ2 AND TJ3;TJ5:=REF(TJ4,1) AND C>REF(C,1) AND NOT(O=C AND C/REF(C,1)>1.098);TJ6:=REF(C,1)>REF(O,1) AND REF(H,1)/REF(C,1)>1.01;TJ7:=REF(C,1)/REF(C,2)>0.94 AND O<REF(O,1) AND C/REF(C,1)>1.005;TJ8:=REF(C,1)/REF(C,5)<1.2 AND REF(O,1)/REF(L,1)<1.0045 ANDREF(C,1)/REF(O,1)>1.015;TJ9:=TJ6 AND TJ7 AND TJ8;TJ10:=REF(C,1)>REF(C,2) AND C/REF(C,1)<1.03 AND REF(C,1)/REF(O,1)>1.05;TJ11:=O<(REF(C,1)+REF(O,1))/2 AND C>O AND C>REF(C,1);TJ12:=TJ10 AND TJ11;TJ13:=REF(COUNT(TJ12,2)>0,1) AND C/REF(C,1)>1.05 AND O<MA(C,5);TJ14:=O<MA(C,10) AND C>MA(C,5) AND C>MA(C,10) AND MA(C,5)/MA(C,10)<0.98;TJ15:=TJ13 AND TJ14;乾坤骑牛:TJ5 OR TJ9 OR TJ15,COLORFF1CAE;{WR钝化}WR钝化:EVERY(RSI.RSI2<25,3) AND EVERY(WR>80,5),COLOR007FFF;{买点0}N:=20;NM1:=7;NM2:=69;AW:=IF((DATE<=9990314),1,0);M3:=EMA(CLOSE,3);M8:=EMA(CLOSE,8);M13:=EMA(M8,13);M62:=MA(M8,55);A1:=EMA(M13,62);M81:=EMA(M62,81);M144:=EMA(A1,144);M250:=EMA(A1,250);A2:=(CLOSE+HIGH+LOW)/(3);A3:=(EMA(A2,10))*(A);A4:=(REF(A3,1))*(A);A5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(AW);A6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(AW);A7:=REF(CLOSE,1);A8:=((SMA(MAX(CLOSE-A7,0),NM1,1))/(SMA(ABS(CLOSE-A7),NM1,1)))*(100);A9:=CROSS(NM2,A8);A10:=(FILTER(A9,4))*(A);BB:=((2)*(CLOSE)+HIGH+LOW)/(4);BC:=LLV(LOW,34);BD:=HHV(HIGH,34);BE:=(EMA(((BB-A1)/(A5-A1))*(100),7))*(A);BF:=(EMA((0.667)*(REF(BE,1))+(0.333)*(BE),5))*(A);BMM:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(A);MA1:=MA(C,5);MA2:=MA(C,10);MA3:=MA(C,30);V1:=CROSS(MA1,MA2),;V2:=MA3>REF(MA3,1); XG:=V1 AND V2 AND CROSS(C,MA(C,30));RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);DMM:=SMA(K,3,1);J:=3*K-2*DMM;AA:=CROSS(K,DMM);一字板:=NOT(C>=REF(C,1)*1.097 AND C=O AND H=L);停牌:=DYNAINFO(4)>0;XGGM:=一字板AND 停牌;涨停:(CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)) AND XG AND AA AND 一字板,LINETHICK2,COLOR0000FF;{抄底买入}庄筹估算:=EMA(WINNER(C)*70,5);散筹估算:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5);CCC:=FILTER( (CROSS(5,庄筹估算) AND 散筹估算<20 )*60,10 );抄底买入:CCC,COLORYELLOW,COLORBLUE;{趋势顶底}AK:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);BK:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));DKK:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);短期线:=BK+100;中期线:=DKK+100;趋势顶底:中期线-短期线>NNN,COLOR7FFF00 ;{溪钰残殇抄底}XAZ_1:=MA(KDJ.K#MONTH(9,3,3),21);XAZ_2:=MA(KDJ.D#MONTH(9,3,3),21);XAZ_3:=MA(KDJ.J#MONTH(9,3,3),21);XAZ_4:=MA(KDJ.K#WEEK(9,3,3),5);XAZ_5:=MA(KDJ.D#WEEK(9,3,3),5);XAZ_6:=MA(KDJ.J#WEEK(9,3,3),5);XAZ_7:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;XAZ_8:=SMA(XAZ_7,3,1);XAZ_9:=SMA(XAZ_8,3,1);XAZ_10:=3*XAZ_8-2*XAZ_9;溪钰残殇抄底:XAZ_3>REF(XAZ_3,1) AND XAZ_6>REF(XAZ_6,1) ANDXAZ_10>REF(XAZ_10,1) AND XAZ_10<40 COLORFFCC00;{涨停捉妖}XAX_1:=EMA(EMA(EMA(HIGH,13),13),13);XAX_2:=EMA(EMA(EMA(LOW,13),13),13);XAX_3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;XAX_4:=XAX_3>9.85 AND HIGH<XAX_1*1.25;涨停捉妖:FILTER(XAX_4,5);{抓妖幅图}DIFQ:=EMA(CLOSE,12) - EMA(CLOSE,27);DEAQ:=EMA(DIFQ,9);MACDQ:=2*(DIFQ-DEAQ);CCI线:=CCI(84);分割线:=100.00;妖股启动:=CROSS(CCI线,分割线) AND MACDQ>0 AND MACDQ>=REF(MACDQ,1) AND REF(MACDQ,1)<REF(MACDQ,2) AND C>=REF(C,1)*1.05;STICKLINE(妖股启动,1,4,2,0),COLORYELLOW;{DRAWTEXT(妖股启动,3.5,'妖股启动'),COLORMAGENTA;}月DIFQ:="MACD.DIF#MONTH";月DEAQ:="MACD.DEA#MONTH";周DIFQ:="MACD.DIF#WEEK";周DEAQ:="MACD.DEA#WEEK";日DIFQ:="MACD.DIF";日DEAQ:="MACD.DEA";日金叉:=CROSS(日DIFQ,日DEAQ);周金叉:=CROSS(周DIFQ,周DEAQ);月金叉:=CROSS(月DIFQ,月DEAQ);金叉共振:=IF(CROSS(周DIFQ,周DEAQ),MACDQ,0) AND C>REF(C,1)*1.078;共振:IF((日DIFQ>日DEAQ AND 周DIFQ>周DEAQ AND 月金叉) OR ( 周DIFQ>周DEAQ AND 月DIFQ>月DEAQ AND 日金叉)OR (月DIFQ>月DEAQ AND 日DIFQ>日DEAQ AND 周金叉) OR (日金叉AND 周金叉AND 月金叉),MACDQ+0.2,0) AND C>REF(C,1)*1.078;STICKLINE(共振,1,3,2,0),COLORRED;STICKLINE(金叉共振,0,2,3,0),COLORCC3299;{DRAWTEXT(共振,2.5,'何氏抓妖'),COLORYELLOW;}{时间}QN1:=STRCAT(CON2STR(YEAR,0),' 年');Y1:=STRCAT(CON2STR(MONTH,0),' 月');QR:=STRCAT(CON2STR(DAY,0),' 日');SJ:=STRCAT(STRCAT(QN1,Y1), QR);DRAWTEXT_FIX(C>0,0.88,0,0,SJ),COLORYELLOW;{七号}EE:=MACDQ-REF(MACDQ,1)>0.05 AND COUNT(C/REF(C,1)>1.09,16)<2 ANDC=HHV(H,60) ANDC/REF(C,1)>1.07 AND NOT(H=L) AND COUNT(C>O,6)<=4 AND C/REF(C,9)<1.2; STICKLINE(EE AND C/REF(C,1)>1.05,1,2,4,0),COLORDB7093;{DRAWTEXT(EE AND C/REF(C,1)>1.05,1.5,'打板启动'),COLORRED;}VOLUME:=VOL;QMA1:=MA(VOLUME,5);启动:= (QMA1+QMA1)>VOLUME;买入:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 ANDCLOSE>=HHV(HIGH,10)AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85) AND C>O;选股:=(C>REF(HHV(H,3),1) AND (C-REF(C,1))/REF(C,1)>0.07) AND 启动AND 买入; STICKLINE(选股AND C/REF(C,1)>1.05,0,1,5,0),COLORYELLOW;{DRAWTEXT(选股,0.5,'蹬蹬启动'),COLORMAGENTA;};。

通达信极品公式三合一主图源码

通达信极品公式三合一主图源码

通达信极品公式三合一主图源码通达信极品公式三合一主图源码享一高人的极品公式。

用法:柱状线:出现灰色柱子代表即将调整。

底部柱状线出现浅紫色代表可以进场。

MACD:这个macd比传统的超前,MACD分为红蓝两色。

庄家抬轿柱子:简单的说出现高度控盘是我们可以放心持股。

这三个指标融合在一起最主要的还是看柱状线,柱状线原理是量价关系,柱状线出现灰色最好减仓。

觉得好用的给我点果果吧{公式在线提供:}C/C++ Code复制内容到剪贴板1.JH:=VOL*CLOSE;2.JHO:=SUM(JH,2)/SUM(VOL,2);3.JH0:=EMA(JHO,10);4.AAA:=(JHO-JH0)*20/JHO;5.超:=STICKLINE(AAA>0 AND AAA>=REF(AAA,1),0,AAA,3,0 ),COLORLIRED;6.级:=STICKLINE(AAA>0 AND AAA<REF(AAA,1),0,AAA,3,1), COLORLIRED;7.好:=STICKLINE(AAA<0 AND AAA>=REF(AAA,1),0,AAA,3,1 ),COLORGREEN;8.的:=STICKLINE(AAA<0 AND AAA<REF(AAA,1),0,AAA,3,0), COLORGREEN;9.公:=EMA(IF(AAA>0 AND AAA<REF(AAA,1),0,AAA),3);10.式:=CROSS(REF(公,1),公) AND 公>0;11.谢:=EMA(IF(AAA<0 AND AAA<REF(AAA,1),0,AAA),3);12.了:=CROSS(REF(谢,1),谢) AND 谢<0;13.必买:=CROSS(C,DRAWLINE(HIGH>=HHV(HIGH,30),HIGH,LOW<=L LV(LOW,10),HHV(HIGH,6),1));14.WY1001:=(2*CLOSE+HIGH+LOW)/4;15.WY1002:=EMA(WY1001,4);16.WY1003:=EMA(WY1002,4);17.WY1004:=EMA(WY1003,4);18.X:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*2000;19.X1:=IF(X<REF(X,1),X,DRAWNULL),COLORWHITE,LINET HICK2;20.XO:=MA(X,2),COLOR9932CD;21.SI:=REF(X,1);22.STICKLINE(X>SI,X,SI,2.3,0),COLOR0000FF;23.STICKLINE(X>SI,X,SI,0.3,0),COLORCC66FF;24.STICKLINE(X<SI,X,SI,2.3,0),COLOR00BB00;25.STICKLINE(X<SI,X,SI,0.3,0),COLOR00FF00;26.STICKLINE(式,X,SI,2.15,0),COLOR545454;27.STICKLINE(了,X,SI,2.15,0),COLORDB7093;28.29.VAR1:=EMA(EMA(CLOSE,9),9);30.控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;31.STICKLINE(控盘<0,控盘,0,3,0),COLORWHITE;32.AA1:=CROSS(控盘,0);33.无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;34.轻度控盘:STICKLINE(控盘<0 AND 0.9*控盘>REF(控盘,1),控盘,0,3,0),COLORYELLOW;35.轻度出货:STICKLINE(控盘<0 AND 1.1*控盘<REF(控盘,1),控盘,0,3,0),COLORFFFF79;36.开始控盘:=IF(AA1,5,0),LINETHICK1,COLORYELLOW;37.38.有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW;39.STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,3,0),COLORRED;40.41.VAR2:=100*WINNER(CLOSE*0.95);42.高度控盘:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;43.STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,3,0),COLORFF00FF;44.主力出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW;45.STICKLINE(控盘<1.2*REF(控盘,1) AND 控盘>0,控盘,0,3,0),COLOR00FF00;46.DIF1:=EMA(DCLOSE,12)-EMA(DCLOSE,26);47.DEA1:=EMA(DIF1,9);48.{柱状线}49.MACD1:=(DIF1-DEA1)*2*60;50.MACD上:IF(MACD1>REF(MACD1,1),MACD1,DRAWNULL),51.STICK,COLORRED,LINETHICK1;52.MACD下:IF(MACD1<REF(MACD1,1),MACD1,DRAWNULL),53.STICK,COLORFF9900,LINETHICK1;54.{买点提示}55.A1:=BARSLAST(REF(CROSS(DIF1,DEA1),1));56.BL:=REF(CLOSE,A1+1)>CLOSE AND DIF1>REF(DIF1,A1 +1) AND CROSS(DIF1,DEA1);57.{STICKLINE(BL,0,1,2,0),COLOR00FF00;}58.买点:DRAWICON(BL,DEA1,23);59.A2:=BARSLAST(REF(CROSS(DEA1,DIF1),1));60.DBL:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF1,A2+1) >DIF1 AND CROSS(DEA1,DIF1);61.买点1:DRAWICON(DBL,DEA1,12);62.低位金叉:=CROSS(DIF1,DEA1) AND DIF1<-0.1;63.DRAWTEXT(低位金叉,-0.36,' 低位金叉');64.JCCOUNT:=COUNT(CROSS(DIF1,DEA1),BARSLAST(DEA 1>=0));65.二次金叉:=CROSS(DIF1,DEA1) AND DEA1<0 AND COUNT(JCCOUNT=2 ,21)=1;66.DRAWICON(二次金叉,DEA1*1.04,13) ;67.DRAWTEXT(二次金叉,-0.22,' 二次金叉'),COLORFF00FF;68.A10:=BARSLAST(REF(CROSS(DIF1,DEA1),1));69.底背离:=REF(CLOSE,A10+1)>CLOSE AND DIF1>REF(DIF1,A10+1) AND CROSS(DIF1,DEA1);70.DRAWLINE(A10=0,DEA1,底背离,DEA1,0),COLORRED,LINETHICK2;71.DRAWTEXT(底背离,-0.50,' 底背离'),COLOR00FF00;72.A20:=BARSLAST(REF(CROSS(DEA1,DIF1),1));73.顶背离:=REF(CLOSE,A20+1)<CLOSE AND REF(DIF1,A20+1)>DIF1 AND CROSS(DEA1,DIF1);74.DRAWLINE(A20=0,DEA1,顶背离,DEA1,0),COLORWHITE,LINETHICK2;75.{STICKLINE(底背离,X,SI,1,0),COLORYELLOW;}76.STICKLINE(低位金叉,X,SI,1,0),COLORWHITE;77.STICKLINE(必买,X,(X+SI)/2,2.3,0),COLORFF9900;78.STICKLINE(必买,X,(X+SI)/2,0.1,0),COLORWHITE;79.STICKLINE(低位金叉 AND 底背离,X,(X+SI)/2,2.3,0),COLORYELLOW;80.STICKLINE(低位金叉 AND 底背离,X,(X+SI)/2,0.1,0),COLORCC66FF;81.STICKLINE(二次金叉,X,SI,2.0,0),COLORYELLOW;82.{主力进场}83.VAR12:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);84.VAR13:=SMA(ABS(LOW-VAR12),13,1)/SMA(MAX(LOW-VAR12,0),10,1);85.VAR14:=EMA(VAR13,10);86.VAR15:=LLV(LOW,33);87.VAR16:=EMA(IF(LOW<=VAR15,VAR14,0),3);88.主力进场:=IF(VAR16>REF(VAR16,1),VAR16,0),COLORRED,NODRAW;89.STICKLINE(主力进场,X,SI,0.1,0),COLORRED;90.RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;91.K:=SMA(RSV,3,1),COLORWHITE;92.D:=SMA(K,3,1),COLORYELLOW;93.J:=3*K-2*D,COLORFF00FF;94.X3:=LLV(J,2)=LLV(J,8);95.A:=250;96.JH1:=HHV(MAX(K,MAX(D,J)),A);97.DH:=HHV(MAX(DIF1,DEA1),A);98.SH:=INTPART(JH1/DH)/2;99.DIFF50:=SH*DIF1+50,COLORFFFF00;100.DEA50:=SH*DEA1+50,COLORBLUE;101.诱空:=IF(1.5*(DIFF50-DEA50)>0 AND REF(1.5*(DIFF50-DEA50),1)< REF(1.5*(DIFF50-DEA50),2) AND 1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);102.低位:=CROSS(J,REF(J+0.01,1)) AND X3 AND J<19;103.MTM:=C-REF(C,1);104.DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);105.值:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND C ROSS(DX,MA(DX,2));106.DRAWTEXT(FILTER(诱空,3) AND 诱空,X,'洗盘'),COLOR00FF00;。

多合一通达信指标公式源码.doc

多合一通达信指标公式源码.doc

多款不错的选股预警指标综合为一个附图,源码放松参数设置参数最小最大缺省NNN 0 200 50Nl 1 1000 104N2 1 100 99{收复江山}{思路就是股价收复昨口大阴线或者长上影线时预警。

该公式导入通达信即可在盘中选股。

其中有两个参数N1和N2可自己设置,N1代表昨天上影线或者大阴线的长度,默认4个点的长度;N2代表当前股价收复昨天最高价多少的时候预警,默认当股价距离昨天最高价1个点的时候预警进行观察。

预警后何时买入:预警后观察该股是否放量,在该股马上要冲过昨日最高点的时候全仓买进等板。

要求昨日的K 线位置不要处在连续大涨之后,最好刚刚跳空突破的时候。

}A: = REF(H,l)>=REF(C,l)*Nl/100;B:=C> = REF(H,l)*N2/100 AND DYNAINFO(8)>0;R:=C=H;收复江山:R AND A AND B,COLOR4D4DFF;STICKLINE(收复江山,0.5,0.1,1Q),COLOR4D4DFF;DRAWTEXT(i| 攵复江山>0,0.05;收复江山'),COLOROOFFFF;{宝宝涨停}ST:=IF(NAMELIKE('S')Z O Z1);XXG:=IF(NAMELIKE(*),O,1);TP:=DYNAINFO(4)>0;XIAO:=FINANCE(7)<=6000000000;YZ:=C/REF(C z l)>1.0975 AND H=0;LTGB:=ST AND XXG AND TP AND XIAO AND NOT(YZ);XA_1:=IF(CLOSE>OPEN ANDHIGH>REF(CLOSE,1),ATAN((HIGH・REF(CLOSE,1))/REF(CLOSE,1)),0); XA_2:=IF(CLOSE>OPEN ANDHIGHvREF(CLOSE,l),・ATAN((REF(CLOSE,l)・HIGH)/REF(CLOSE,1)),0); XA_3:=IF(CLOSE>OPEN AND HIGH=REF(CLOSE,1),0,0);XA_4:=IF(CLOSE<OPEN ANDHIGH>REF(CLOSE,1),ATAN((HIGH・REF(CLOSE,1))/REF(CLOSE,1)),0); XA_5:=IF(CLOSE<OPEN ANDHIGH<REF(CLOSE,1),-ATAN((REF(CLOSE Z1)-HIGH)/REF(CLOSE,1)),0); XA_6:=IF(CLOSE<OPEN AND HIGH=REF(CLOSE,1),0,0);XA 7:=XA 1+XA 2+XA 3+XA 4+XA 5+XA 6;XA_8:=MA(XA_7,9);XA_9:=MA(XA_7,5);XA_10:=MA(XA_7,3);XA_U:=IF(CLOSE>OPEN ANDLOW>REF(CLOSE,1),ATAN((LOW-REF(CLOSE,1))/REF(CLOSE,1)),0); XA_12:=IF(CLOSE>OPEN ANDLOW<REF(CLOSE,1),-(ATAN(REF(CLOSE,1)-LOW)/REF(CLOSE,1)),0);XA_13:=IF(CLOSE>OPEN AND LOW=REF(CLOSE Z1),0,0);XA_14:=IF(CLOSE<OPEN ANDLOW>REF(CLOSE,1),ATAN((LOW-REF(CLOSE,1))/REF(CLOSE,1)),0); XA_15:=IF(CLOSE<OPEN ANDLOWvREF(CLOSE,l)广ATAN((REF(CLOSE,1)・LOW)/REF(CLOSE,1)),0); XA_16:=IF(CLOSE<OPEN AND LOW=REF(CLOSE Z1),0,0);XA 17:=XA 11+XA 12+XA 13+XA 14+XA 15+XA 16;XA_18:=MA(XA_17,9);XA_19:=MA(XA_17A5);XA_20:=MA(XA_17,3);XA_21: =ATAN(XA_8/0.09);XA_22:=ATAN(XA_9/0.05);XA_23:=ATAN(XA_10/0.03);XA_24:=ATAN((-XA_18)/0.09);XA_25:=ATAN((-XA_19)/0.05);XA_26:=ATAN((-XA_20)/0.03);XA_27:=C/REF(C4)>1.028 AND C=H ANDBETWEEN(FORCAST(V,4),0.2*FORCAST(V,12)Z2.1*FORCAST(V Z12)); XG1:=FILTER(XA_27,28);XGG:=(XA_23+XA_22+XA_21)/3/6.28*360;XG2:=XGG-REF(XGG z l)>0;AA05:=EMA(C,5);HJ:=ATAN((HIGH-REF(HIGH,1))/REF(HIGH,1)/0.1)/6.28*360;□ :=ATAN((LOW-REF(LOW Z1))/REF(LOW,1)/0.1)/6.28*360;CJ:=ATAN((CLOSE・REF(CLOSE,1))/REF(CLOSE,1)/0.1)/6.28*360; OJ:=ATAN((OPEN-REF(OPEN Z1))/REF(OPEN,1)/0.1)/6.28*360; AM:=MIN(MIN(MIN(CJ,OJ),HJ),LJ);BM: = MAX(MAX(MAX(CJ,OJ),HJ),LI);A11: = MIN(CJ,OJ);BU: = MAX(CJ,OJ);T:=IF(Bll>0 AND All>0,Bll,0);D:=IF(Bll<0 AND All<0,All,0);Jl:=IF(Bll>0 AND All<0,Bll,0);J2:=IF(Bll>0 AND All<0,All z0);TM: = MA(T+J1,1);DM: = MA(D+J2,1);JX:=TM+DM;T1:=FINDHIGH(BM,1,3,1);T2:=FINDHIGH(BM,1,3,2);Y:=BARSCOU NT(T1)< BARSCOUNT(T2);W1:=IF(Y,T1Z O);W2:=IF(Y,T2z0);N1:=W1-W2;XG66:=MA(REF(T1+N1,1),5);XG6:=XG66・REF(XG66,l)>0;WURI:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05z l)-l)*100)*180/3.1416;AA30:=EMA(C z30);HDBB:=HIGH・REF(HIGH,1);BBR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-L OW))Z15);LDBB: = REF(LOW Z1)-LOW;BBP:=EXPMEMA(IF(HDBB>O&&HDBB>LDBB,HDBB,0),15);XG77:=BBP*100/BBR;XG7:=XG77・REF(XG77,l)>0;SANRI:=(C-AA30)/AA30*100;MR:=COUNT(CROSS(WURI,0),3)> = 1 AND SANRI>REF(SANRI,1) AND AA05>REF(AA05,l) AND (C/REF(C,l)-l)*100>2 AND REF(C,l)<AA30;XG5:=FILTER(MR,10);宝宝涨停:XG1 AND XG2 AND XGG>30 AND LTGB AND XG6 AND XG7,COLORFF1CAE;{乾坤骑牛}TJ1:=O=L AND C>0 AND O/REF(C,l)<0.95;TJ2: = MA(C z5)<MA(C z10) AND LvMA(C,5) AND H/O>1.1;TJ3: = H/C>1.07 AND V>REF(HHV(V,800)z l);TJ4:=TJ1 AND TJ2 AND TJ3;TJ5: = REF(TJ4,1) AND C>REF(C,1) AND NOT(O=C AND C/REF(C,l)>1.098);TJ6: = REF(C,1)>REF(O,1) AND REF(H,l)/REF(C z l)>1.01;TJ7: = REF(C,l)/REF(C z2)>0.94 AND OvREF(O,l) AND C/REF(C,l)>1.005;TJ8: = REF(C, 1)/REF(C,5)< 1.2 AND REF(O,l)/REF(L,l)v 1.0045 ANDREF(C,1)/REF(0,1)>1.015;TJ9:=TJ6 AND TJ7 AND TJ8;TJ10:=REF(C,l)>REF(C,2) AND C/REF(C,l)vl.03 AND REF(C,1)/REF(0,1)>1.05;TJll:=Ov(REF(C,l)+REF(0,1))/2 AND C>0 AND C>REF(C,1);TJ12:=TJ10 ANDTJ11;TJ13:=REF(COUNT(TJ12,2)>0,1) AND C/REF(C,l)>1.05 AND OvMA(C,5);TJ14:=O<MA(C,10) AND C>MA(C,5) AND C>MA(C z10) AND MA(C,5)/MA(C,10)<0.98;TJ15:=TJ13 ANDTJ14;乾坤骑牛:TJ5 OR TJ9 OR TJ15,COLORFF1CAE;{WR钝化}WR 钝化:EVERY(RSLRSI2<25,3) AND EVERY(WR>80Z5),COLOR007FFF;{买点0)N:=2O;NM1:=7;NM2:=69;AW:=IF((DATEv=9990314),l,0);M3:=EMA(CLOSE,3);M8:=EMA(CLOSE,8);M13:=EMA(M8,13);M62:=MA(M8,55);A1:=EMA(M13,62);M81:=EMA(M62,81);M144:=EMA(Al,144);M250:=EMA(Al,250);A2:=(CLOSE+HIGH+LOW)/(3);A3:=(EMA(A2,10))*(A);A4:=(REF(A3,1))*(A);A5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(AW);A6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(AW);A7:=REF(CLOSE,1);A8:=((SMA(MAX(CLOSE・A7,0),NM1,1))/(SMA(ABS(CLOSE・A7),NM1,1)))*(100);A9:=CROSS(NM2,A8);A10:=(FILTER(A9,4))*(A);BB:=((2)*(CLOSE)+HIGH+LOW)/(4);BC:=LLV(LOW,34);BD: = HHV(HIGH,34);BE:=(EMA(((BB・A1)/(A5・A1))*(1OO),7))*(A);BF:=(EMA((0.667)*(REF(BE,l))+(0.333)*(BE),5))*(A);BMM:=(MA(CLOSE,80)・(MA(CLOSE,10))/(3))*(A);MA1:=MA(C,5);MA2:=MA(C,1O);MA3:=MA(C,30);V1:=CROSS(MA1,MA2),;V2:=MA3>REF(MA3,1); XG:=V1 AND V2 AND CROSS(C,MA(C,30));RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);DMM:=SMA(K,3,1);J:=3*K-2*DMM;AA:=CROSS(K,DMM);一字板:=NOT(C>=REF(C,1)*1.097 AND C=0 AND H=L);停牌:=DYNAINFO(4)>0;XGGM:=—字板AND停牌;涨停:(CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE Z13))*(1.3)) AND XG AND AA AND 一字板Z LINETHICK2,COLOROOOOFF;{抄底买入}庄筹估算:=EMA(WINNER(C)*70,5);散筹估算:=EMA((WINNER(C*Nl)・WINNER(C*0.9))*80,5);CCC:=FILTER( (CR0SS(5,庄筹估算)AND 散筹估算v20 )*60,10 );抄底买入:CCC,COLORYELLOW,COLORBLUE;{趋势顶底}AK:=MA(・100*(HHV(HIGH,34)・CLOSE)/(HHV(HIGH,34)・LLV(LOW,34)),19);BK:=・100*(HHV(HIGH,14)・CLOSE)/(HHV(HIGH,14)・LLV(LOW,14));DKK:=EMA(・100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);短期线:=BK+100;中期线:=DKK+100;趋势顶底:中期线•短期线>NNN,COLOR7FFFOO ;{溪袱残殓抄底}XAZ_1:=MA(KDJ.K#MONTH(9,3,3),21);XAZ_2: = MA(KDJ.D#MONTH(9,3,3),21);XAZ_3: = MA(KDJ.J#MONTH(9,3,3),21);XAZ_4:=MA(KDJ・K#WEEK(9,3,3),5);XAZ_5: = MA(KDJ.D#WEEK(9z3,3)z5);XAZ_6: = MA(KDJ.J#WEEK(9,3,3),5);XAZ_7:=(CLOSE-LLV(LOW,9))/(HHV(HIGH z9)-LLV(LOW,9))*100;XAZ_8:=SMA(XAZ_7,3z 1);XAZ_9:=SM A(XAZ_8,3,1);XAZ 10:=3*XAZ 8-2*XAZ 9;溪饪残痴抄底:XAZ_3>REF(XAZ_3,1) AND XAZ_6>REF(XAZ_6,1) ANDXAZ_1O>REF(XAZ_1O,1) AND XAZ_10<40 COLORFFCCOO;{涨停捉妖}XAX_1:=EMA(EMA(EMA(HIGH,13)43),13);XAX_2:=EMA(EMA(EMA(LOW,13),13),13);XAX_3:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;XAX 4:=XAX 3>9.85 AND HIGH<XAX 1*1.25;涨停捉妖:FILTER(XAX_4,5);{抓妖幅图}DIFQ:=EMA(CLOSE,12)・ EMA(CLOSE,27);DEAQ:=EMA(DIFQ,9);MACDQ:=2*(DIFQ-DEAQ);CCI 线:=CCI(84);分割线: = 100.00;妖股启动:=CROSS(CCI 线,分割线)AND MACDQ>0 AND MACDQ>=REF(MACDQ,1) ANDREF(MACDQ,l)vREF(MACDQ,2) AND C>=REF(C,l)*l・05;STICKLINE(妖股启动,1,4,2,0),COLORYELLOW;{DRAWTEXT(妖股启动,3.5,'妖股启动,),COLORMAGENTA;)月DIFQ:=n MACD.DIF#MONTH n;月DEAQ:=n MACD.DEA#MONTH u;周DIFQ:=,,MACD.DIF#WEEK";周DEAQ:=”MACD.DEA#WEEK“;日DIFQ:=”MACD・DIF”;日DEAQ:=”MACD.DEA”;日金叉:=CROSS(日DIFQ,日DEAQ);周金叉:=CROSS(周DIFQ,周DEAQ);月金叉:=CROSS(月DIFQ,月DEAQ);金叉共振:=IF(CROSS(周DIFQ,周DEAQ),MACDQ,0) AND C>REF(C,1)*1.078;共振:IF((日DIFQ> H DEAQ AND 周DIFQ>周DEAQ AND 月金叉)OR (周DIFQ>周DEAQ AND 月DIFQ>月DEAQ AND 日金又)OR(月DIFQ>月DEAQ AND日DIFQ> Fl DEAQ AND周金又)OR (日金又AND周金又AND 月金义),MACDQ+0.2,0) AND C>REF(C,1)*1.078;STICKLINE(共振,1,3,2,0),COLORRED;STICKLINE(金叉共振,0,2,3,0),COLORCC3299;{DRAWTEXT(共振,2.5,'何氏抓妖'),COLORYELLOW;}{时间}QN1:=STRCAT(CON2STR(YEAR,0),* 年 *);Y1:=STRCAT(CON2STR(MONTH,0)「月');QR:=STRCAT(CON2STR(DAY,0),'日');SJ:=STRCAT(STRCAT(QN1,Y1), QR);DRAWTEXT_FIX(C>0,0.88,0,0,SJ)Z COLORYELLOW;{七号}EE: = MACDQ-REF(MACDQ z l)>0.05 AND COUNT(C/REF(C,1)>1.09Z16)<2 ANDC=HHV(H,60) ANDC/REF(C z l)>1.07 AND NOT(H=L) AND C0UNT(C>0,6)<=4 AND C/REF(C,9)<1.2; STICKLINE(EE AND C/REF(C z l)>1.05,l,2,4,0),COLORDB7093;{DRAWTEXT(EE AND C/REF(C,l)>L05,L5,‘打板启动’),COLO RRED;}VOLUME:=VOL;QMA1:=MA(VOLUME,5);启动:=(QMA1+QMA1)>VOLUME;买入:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 ANDCLOSE>=HHV(HIGH Z10)AND REF(CLOSE,l)v(LLV(LOW,15)+(HHV(HIGH,15)・LLV(LOW,15))*0.85) AND C>0;选股:=(C>REF(HHV(H Z3),1) AND (C-REF(C z l))/REF(C,l)>0.07) AND 启动AND 买入;STICKLINE(选股AND C/REF(C,1)>1.05,0,1,5,0),COLORYELLOW;{DRAWTEXT(选股,0.5,'蹬蹬启动'),COLORMAGENTA;};。

通达信指标公式源码 必涨指标 副图源码 有未来

通达信指标公式源码 必涨指标 副图源码 有未来

清仓:=1.66*MA(FORCAST(CLOSE,2),40),COLORRED;出货:=1.36*MA(FORCAST(CLOSE,2),40),COLOR08FFFF;高抛:=1.16*MA(FORCAST(CLOSE,2),40),COLORFF82FF;低吸:=0.82*MA(FORCAST(CLOSE,2),40),COLORF7E300;满仓:=0.72*MA(FORCAST(CLOSE,2),40),COLORGREEN;强通1:=清仓>REF(清仓,1),;强通2:=出货>REF(出货,1),;强通3:=高抛>REF(高抛,1),;强通4:=低吸>REF(低吸,1),;强通5:=满仓>REF(满仓,1),;上升通道:=强通1 AND 强通2 AND 强通3 AND 强通4 AND 强通5,; MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10),;MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);五强:=MA5>REF(MA5,1),;十强:=MA10>REF(MA10,1),;二十强:=MA20>REF(MA20,1),;三十强:=MA30>REF(MA30,1),;六十强:=MA60>REF(MA60,1),;小均强:=五强AND 十强,;均强:=十强AND 二十强AND 三十强,;大均强:=十强AND 二十强AND 三十强AND 六十强,;JJD:=(H+L+C)/3;强势线1:=HHV(MA((((LOW + HIGH) + CLOSE) /3),8),60),COLORRED,LINETHICK2;强势线2:=HHV(MA((((LOW + HIGH) + CLOSE) /3.18),8),20),COLORWHITE,LINETHICK2;强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) /3.258),8),10),COLORYELLOW,LINETHICK2;强势线4:=HHV(MA((((LOW + HIGH) + CLOSE) /3.08),80),13),COLORLIMAGENTA,LINETHICK2;开始走强1:=强势线1>REF(强势线1,1),;开始走强2:=强势线2>REF(强势线2,1),;开始走强3:=强势线3>REF(强势线3,1),;开始走强4:=强势线4>REF(强势线3,1),;双强1:=开始走强1 AND 开始走强2,;双强2:=开始走强2 AND 开始走强3,;双强3:=开始走强2 AND 开始走强3,;双强4:=开始走强3 AND 开始走强4,;三强:=开始走强1 AND 开始走强2 AND 开始走强3,;四强:=开始走强1 AND 开始走强2 AND 开始走强3 AND 开始走强4,; 强势为王:=双强1 OR 双强2 OR 双强3 OR 双强4 OR 三强OR 四强,;VV:=(C+L+H)/3;DSA:=SMA(XMA(VV,15),2,1)LINETHICK3;顶部1:=DSA*1.0888,COLORMAGENTA,LINETHICK1;顶部2:=DSA*1.158,COLORBROWN,LINETHICK1;顶部3:=DSA*1.218,COLORRED,LINETHICK1;底部1:=DSA*0.9518,COLORLICYAN,LINETHICK1;底部2:=DSA*0.888,COLORLIMAGENTA,LINETHICK1;底部3:=DSA*0.8,COLORGREEN,LINETHICK1;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,60);五日走强:=MA1>REF(MA1,1),;十日走强:=MA2>REF(MA2,1),;二十日走强:=MA3>REF(MA3,1),;六十日走强:=MA4>REF(MA4,1),;低位主升:=五日走强AND 十日走强AND 六十日走强,;主升浪:=五日走强AND 十日走强AND 二十日走强,;大主升浪:=十日走强AND 二十日走强AND 六十日走强,;大主升浪2:=五日走强AND 十日走强AND 二十日走强AND 六十日走强,; 总主升:=主升浪AND 大主升浪AND 大主升浪2,;总主升浪:=低位主升OR 主升浪OR 大主升浪OR 大主升浪2 OR 总主升,; 绝对主升浪:L<底部1 AND 总主升浪AND 强势为王ANDC<DSA,COLORYELLOW,LINETHICK2;回调加仓:L<底部1 AND C<DSA AND 强势为王,COLORMAGENTA,LINETHICK2,LINESTICK;DRAWICON(回调加仓>0,1.1,1);老介出马:绝对主升浪AND 回调加仓AND H<DSA,COLORRED,;;A:=MA(C,30);A1:=A*1.1;A4:=A*0.9;A2:=A1-(A1-A4)*0.191;持仓:=IF(HIGH*1.01>A2 ORREF(HIGH,1)>REF(A2,1),A1,A4),LINETHICK3,COLORRED;生命线:=IF(HIGH*1.01>A2 ORREF(HIGH,1)>REF(A2,1),A2,A4),LINETHICK3,COLORFFFFFF;主升持仓:=持仓>生命线,;主升1:=持仓>REF(持仓,1),;主升2:=生命线>REF(生命线,1),;主升:=主升1 AND 主升2,;堆量连阳:=(老介出马AND 主升持仓AND 主升) OR (回调加仓AND 主升持仓AND 主升),;介必升选股:(堆量连阳AND 小均强) OR (回调加仓AND 小均强),COLORYELLOW,LINETHICK4,STICK;DRAWICON(介必升选股>0,1.1,3);DRAWICON(介必升选股>0,1.1,1);DRAWICON(介必升选股>0,0.6,7);DRAWICON(介必升选股>0,0.3,9);。

通达信指标公式源码 自用组合主图

通达信指标公式源码 自用组合主图

、参数:N1(1 300 5)N2( 1 300 10)N3(1 300 20)N4(1 300 30)P(1 5 2)M(1 60 20)N(1 500 250) M1(1 500 55)买线:INTPART((SUM(CLOSE*VOL*100,6)/SUM(VOL*100,6))*100.17)/100,COLO RFF00FF,LINETHICK2;工作线:EMA(C,13),COLOR0000FF,LINETHICK2;一线:EMA(C,25),COLORWHITE,LINETHICK2;二线:EMA(CLOSE,99),LINETHICK3,POINTDOT,COLORYELLOW;江恩线:EMA(CLOSE,144),LINETHICK3,POINTDOT,COLORFFCC66;EMA1311:=EMA(C,13),COLOR0000FF,LINETHICK2;EMA341:=EMA(C,34),LINETHICK2,POINTDOT,COLORYELLOW;EMA551:=EMA(C,55),LINETHICK2,POINTDOT,COLORFF00FF;EMA120:=EMA(C,120),LINETHICK2,POINTDOT,COLORFFCC66;AR1:=EMA551>EMA341 AND EMA341>EMA1311;AR2:=BARSLAST((C-EMA1311)/EMA1311*100<-6);AR3:=EMA1311>=REF(EMA1311,2);AR4:=COUNT(CROSS(C,EMA1311),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);STICKLINE(AR6,O,C,2.5,0),LINETHICK2,COLORYELLOW;BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5),5)=5;BR2:=ABS((EMA1311-EMA341)+(EMA341-EMA551))/C<0.2;BR3:=C>EMA551 AND (REF(C,1)<REF(EMA551,1) ORREF(C,2)<REF(EMA551,2) OR REF(C,3)<REF(EMA551,3) ORREF(C,4)<REF(EMA551,4) OR REF(C,5)<REF(EMA551,5));BR4:=BR1 AND BR2 AND BR3;STICKLINE(BR4 AND FILTER(BR4,10),O,C,2.5,0),LINETHICK2,COLOR4080FF; CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA1311,EMA551),3)=1;CR4:=ABS(EMA341-EMA551)/EMA551<0.03;CR5:=EMA551<=EMA120 AND EMA551>=REF(EMA551,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);DR1:=EMA1311>EMA341 AND EMA341<EMA551;DR2:=BARSLAST(CROSS(C,EMA551) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA551 ANDBETWEEN((C-EMA551)/EMA551,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);STICKLINE(DR8,O,C,2.5,0),LINETHICK2,COLORFF0080;ER:=BARSLAST(REF(CROSS(EMA551,EMA341),1)) ANDCROSS(EMA341,EMA551);FR:=BARSLAST(REF(CROSS(EMA341,EMA1311),1)) ANDCROSS(EMA1311,EMA341);GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA1311>EMA341 AND EMA341>EMA551 ANDEMA1311>REF(EMA1311,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'*'),COLOR00FF00;HR2:=EMA1311>=REF(EMA1311,3) AND EMA341>=REF(EMA341,1) AND EMA551>=REF(EMA551,1) AND CROSS(C,EMA1311) AND CROSS(C,EMA341) AND CROSS(C,EMA551);STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,0),LINETHICK2,COLORFF80FF; MA1:=EMA(CLOSE,N1);MA2:=EMA(CLOSE,N2);MA3:=EMA(CLOSE,N3);MA4:=EMA(CLOSE,N4);TJ1:=CROSS(MA1,MA2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA1,MA4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA2,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 OR CROSS(MA1,MA3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018; TJ2:=(MAX(MA1,MAX(MA2,MA3))-MIN(MA1,MIN(MA2,MA3)))/MIN(MA1,MIN(MA2,MA3))*100<=P;XG:=TJ1 AND TJ2;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD:=2*(DIFF-DEA);做多:IF(K>D AND MACD>0 AND V>1,2,0),COLORRED,NODRAW;做空:=IF(K<D AND MACD<0 AND V>1,-2,0),COLOR00FF00,NODRAW;强洗:=IF(MACD>0 AND K<D AND V>1,1,0),COLOR0099FF,NODRAW;弱升:=IF(MACD<0 AND K>D AND V>1,-1,0),COLORFFFF00,NODRAW; STICKLINE(FILTER(TJ1,3),C,O,4,0),COLOR0000FF;DRAWICON(FILTER(XG,3),L*0.97,23);GET:=ZIG(3,3),COLORYELLOW;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF; DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'半仓'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'稳赚'),COLOR0000FF;DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'清'),COLOR0000FF;DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'有机'),COLOR0000FF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'闪'),COLOR0000FF;DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'人'),COLORFF00FF; DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'鬼'),COLORFFFF00; DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'神'),COLOR0000FF; DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'走'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'买点'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)AND EX2,H*1.03,'清'),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'少买'), LINETHICK3,COLOR00FFFF;HR:=HHV(HIGH,M1);HRY:=LLV(LOW,M1);HRY11:=HR*HRY;HRY33:=SQRT(HRY11),COLORGREEN,LINETHICK2;国:=IF(C>HRY33 AND HRY33 >=REF(HRY33 ,1),HRY33 ,DRAWNULL),LINETHICK2,COLORRED;MA5:=EMA(C,5),COLOR0000FF,LINETHICK2;MA6:=REF(MA1,1),COLORFFFFFF;MA7:=EMA(EMA(C,7),6),COLOR00FFFF,LINETHICK2;DRAWKLINE(H,O,L,C);指标王趋势:=(MA(EMA(EMA(EMA(CLOSE,2),2),2),13)*0.99),COLORGREEN; 金砖线:=(HHV((REF(CLOSE,1)-REF(MA(MAX(MAX((HIGH-LOW),ABS((REF(CLOSE,1 )-HIGH))),ABS((REF(CLOSE,1)-LOW))),13),1)),12));注意:=DRAWTEXT(CROSS(指标王线,MA6),(LOW)*(0.93),'←---注意');笑:=DRAWTEXT(CROSS(指标王线,MA6) AND 指标王线>MA7,H*(0.93),'←-笑');MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C )/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LL V(CLOSE,7))*100=100)>0AND G1)+1);KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 -100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);X1:=EMA(((KS/ 10) + EMA(CLOSE,10)),3);AA:=-100*(X1-CLOSE)/X1;AC:=(EMA(AA,5));SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,1);SA:=(MM*0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));X2:=IF(((SSL>MM)),MM,SA),COLORFF00FF;Y1:=DMA(((CLOSE+ OPEN) / 2),(VOL / (SMA(VOL,4,1)*4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);X3:=A,COLORYELLOW,LINETHICK1;B:=REF(A,1);VA1:=EMA(上收,8);VA2:=EMA(上收,20);选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A)AND 箱顶A/箱底A>100/100 AND T1;T3:=CROSS(箱顶A,选手A) AND箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:=MA(REF(HHV(上收,30),1),2),COLOR0000FF;箱底:=MA(REF(LLV(上收,30),1),2),COLOR00FF00;T4:=CROSS(选手,箱底)AND 箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND箱顶/箱底>110/100;VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);MA20: =MA(C,20);MA30:=MA(C,30);QSXS:=MA20>MA30AND MA20>REF(MA20,1) ANDMA30>REF(MA30,1);ZF:=(C/REF(C,1)-1)*100;TDDF:=(L/REF(C,1)-1)*100<=-5AND(REF(HHV(H,5),1)/L-1)*100>=10;N1:=BARSLAST(CROSS(C,MA(C,5)));N2:=BARSLAST(CROSS(MA(C,5),C)); HM:=IF(N1<N2,N1+1,0)*QSXS;Z2:=HM=1AND ZF>=0 AND C>O AND QSXS;KX1:=ZF<=-3 ANDC<O;XDSJ:=BARSLAST(KX1);KX2:=ZF>=3 AND C>O;JBY:=KX2 AND XDSJ<=2AND C>=REF(O*0.99,XDSJ) ANDZF>ABS(REF(ZF,XDSJ)*0.99);Z3:=IF(FILTER(JBY,1) AND QSXS,5,0);DRAWTEXT(Z2AND Z3 ,LOW*0.99,'送钱来'),COLORFF0080;EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR21:=(2*CLOSE+HIGH+LOW)/4;VAR31:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR41:=LLV(LOW,5); VAR51:=HHV(HIGH,4);散户:=EMA((VAR21-VAR41)/(VAR51-VAR41)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED; DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR91:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR91,5),5)/EMA(EMA(ABS(VAR91),5),5);VARC:=EMA(EMA(VAR91,20),20)/EMA(EMA(ABS(VAR91),20),20);卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2);买线:=EMA(CLOSE,2),NODRAW;卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLO RYELLOW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA( CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN; A0:=(L+H+C*2)/4;A1:EMA(A0,14)COLORBLUE,LINETHICK2,NODRAW;A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;看多:IF(A1X>=0 ANDBARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRA WNULL),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 ANDBARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRA WNULL),COLORCYAN,{LINETHICK2};DRAWICON(CROSS(A1X,0),L-0.15,1);VAR111:=C-REF(C,1);VAR211:=100*EMA(EMA(VAR111,6),6)/EMA(EMA(ABS(VAR111),6),6);MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAS T(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSL AST(CROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BA RSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAS T(CROSS(MA13,MA5))+1),0),COLOR00FF00;BT:=((LLV(VAR211,2)=LLV(VAR211,7)) AND COUNT(VAR211<0,2) AND CROSS(VAR211,MA(VAR211,2))) ANDREF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);DRAWTEXT(BT,L-0.07,'短牛'),COLORRED;TJ11:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) ANDC<HHV(H,21)*0.82;DRAWTEXT(TJ11,L-0.15,'中牛'),COLORMAGENTA;HR1:=HHV(HIGH,55);HRY2:=LLV(LOW,55);HRY12:=HR1*HRY2;HRY34:=SQRT(HRY12);TJ21:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY34; STICKLINE(TJ21,H,L,2,0),COLORYELLOW;DRAWTEXT(TJ21,L-0.08,'大牛'),COLORYELLOW;ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);DRAWTEXT(ST,H+0.09,'清'),COLOR00FF00;DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK2;DEA2:=EMA(DIF1,9),COLORWHITE,LINETHICK2;AA8:=COUNT(CROSS(DIF1,DEA2),BARSLAST(DEA2>=0));二次金叉:=CROSS(DIF1,DEA2) AND DEA2<0 AND COUNT(AA8=2,21)=1; DRAWTEXT(二次金叉,L-0.08,' 二次金叉'),COLORYELLOW;A18:=BARSLAST(REF(CROSS(DIF1,DEA2),1));底背离:=REF(CLOSE,A18+1)>CLOSE AND DIF1>REF(DIF1,A18+1) AND CROSS(DIF1,DEA2);DRAWTEXT(底背离,L-0.08,' 底背离'),COLOR00FF00;。

通达信指标公式源码 漂亮实用的三合一副图指标

通达信指标公式源码 漂亮实用的三合一副图指标

RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);量能:IF(CAPITAL<1,MA(VOL,74),MA(SUM(J1-J2,22),3)),COLOR00DDDD,NODRA W;趋势:IF(CAPITAL<1,EMA(量能,360),EMA(量能,21)),COLOR008800,NODRAW; VAR3:=(量能-趋势);VAR44:=SMA(RV,3,1);VAR55:=SMA(VAR44,3,1);STICKLINE(VAR3>0,100,50,4,0),COLOR990099;STICKLINE(VAR3<0,0,50,4,0),COLOR008800;STICKLINE(VAR3>0,20,10,5,1),COLOR0000FF;STICKLINE(VAR3<0,100,90,10,1),COLOR00FF00;DRAWICON(CROSS(VAR44,VAR55) AND VAR55<30,2,1);DRAWICON(CROSS(VAR55,VAR44) AND VAR55>30,97,2);DRAWBAND(VAR55,RGB(0,22,224),VAR44,RGB(255,50,50));KK:EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:SMA(KK,3,1),COLOR00FFFF; DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'共振'),COLOR00FFFF;共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));STICKLINE(共振点>0,0,100,2,0),COLOR008888;STICKLINE(共振点>0,0,100,1.5,0),COLOR00AAAA;STICKLINE(共振点>0,0,100,0.8,0),COLOR00DDDD;STICKLINE(共振点>0,0,100,0.3,0),COLOR00FFFF;VAR1:=1;VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:20,COLORFF00FF,LINETHICK2;高死叉出:90,COLORBLUE,LINETHICK2;VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF,LINE THICK2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF,LINETH ICK2;条件:=CROSS(C1,C2) AND C1<40;条件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),70,'止'),COLORRED;DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2))OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),60,'跌'),COLORRED;DRAWTEXT(FILTER((REF(条件,1) AND (REF(LOW,1)>LOW OR TJ2)) OR (REF(条件,2) AND (REF(LOW,2)>LLV(LOW,3) OR TJ2))OR (REF(条件,3) AND (REF(LOW,3)>LLV(LOW,4) OR TJ2)),4),65,'买'),COLORRED;DRAWTEXT(条件,20,'买点'),COLORRED;STICKLINE(条件,0,20,2,0),COLORRED;DRAWTEXT(条件0,85,'卖'),COLORBLUE;DRAWTEXT(CROSS(C1,75),70,'险区'),COLORGREEN;DRAWTEXT(TJ3,65,'安'),COLORRED;DRAWTEXT(TJ3,60,'买'),COLORRED;DRAWTEXT(TJ4,85,'逃顶'),COLORBLUE;STICKLINE(TJ4,100,80,2,0),COLORGREEN;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,30,0,4,0),COLOR770077;STICKLINE(A1,30,0,3,0),COLOR990099;STICKLINE(A1,30,0,2,0),COLORBB00BB;STICKLINE(A1,30,0,1,0),COLORDD00DD;STICKLINE(A1,30,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,36,'财神到'),COLORRED;★遵守纪律★:100,COLORRED,NODRAW; ★交易之魂★:100,COLORRED,NODRAW;。

通达信指标公式源码MACD、KDJ、RSI三合一

通达信指标公式源码MACD、KDJ、RSI三合一

DIFF:EMA(CLOSE,7) - EMA(CLOSE,19),COLORGREEN;DEA:EMA(DIFF,9),COLORYELLOW;MACD:2*(DIFF-DEA),COLORSTICK;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1)); B3:=REF(C,A3+1)>C ANDREF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF); C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1)); D3:=REF(C,C3+1)<C ANDREF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));{MACD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;}MACD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;{STICKLINE(B1>0,-0.1,0,2,0),COLORRED;STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;}STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED; STICKLINE(MACD<=REF(MACD,1) ANDMACD>0,0,MACD,0,0),COLORYELLOW;STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORCYAN; STICKLINE(MACD>=REF(MACD,1) ANDMACD<0,0,MACD,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;NOTEXT强:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED; NOTEXT弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA; VARA1:=(DVOL/C)/2,NODRAW;VARA2:=SUM(IF(VARA1>100 AND CLOSE>REF(CLOSE,1),VARA1,0),0); VARA3:=SUM(IF(VARA1>100 AND CLOSE<REF(CLOSE,1),VARA1,0),0); VARA4:=SUM(IF(VARA1<100 AND CLOSE>REF(CLOSE,1),VARA1,0),0); VARA5:=SUM(IF(VARA1<100 AND CLOSE<REF(CLOSE,1),VARA1,0),0); VARA6:=VARA2+VARA3+VARA4+VARA5;机买:=(VARA2/VARA6)*100,LINETHICK2,COLORRED;机卖:=(VARA3/VARA6)*100,LINETHICK2,COLORGREEN;主力差:=机买-机卖,LINETHICK2,NODRAW;强度:主力差-REF(主力差,1),NODRAW,COLORYELLOW;STICKLINE(强度>1.5,-0.1,0,2,0),COLORYELLOW;近期:BARSLAST(强度>1.5),NODRAW,COLORGRAY;N:=7{2,100};M:=5{2,100};VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;B:=SMA(VAR1,N,1);VAR2:=SMA(B,M,1);短买:CROSS(B,VAR2) AND B<40,NODRAW,COLORRED;DRAWICON(短买,0,1);。

通达信指标公式源码 把CCI指标合并到主图一目了然 主题源码

通达信指标公式源码 把CCI指标合并到主图一目了然 主题源码

{CCI-金}DRAWGBKlast(DATE>900101,strip(RGB(0,0,255),RGB(40,0,0),0)); {K线}STICKLINE(CLOSE>OPEN or CLOSE=OPEN andCLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;STICKLINE(CLOSE>OPEN or CLOSE=OPEN andCLOSE>REF(CLOSE,1),OPEN,CLOSE,0,0),colorred;STICKLINE(CLOSE<OPEN or CLOSE=OPEN andCLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan; STICKLINE(CLOSE<OPEN or CLOSE=OPEN andCLOSE<=REF(CLOSE,1),OPEN,CLOSE,0,0),colorcyan; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR006600; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR008800; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00; STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000066; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000088; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR0000AA; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR0000BB; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR0000CC; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000DD; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000EE; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF; STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000FF;MA5:WMA(C,5),PRECIS2;PARTLINE(ma5,(ma5>REF(ma5,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),LINETHIC K2,LAYER0;{CCI-金}现价:if (DYNAINFO(4)=0,C,DYNAINFO(7)),color0077FF,linethick0;TYB:= (HIGH + LOW + 2*CLOSE)/4;CCIA:=(TYB-MA(TYB,14))/(0.015*AVEDEV(TYB,14));CCIB:=(TYB-MA(TYB,28))/(0.015*AVEDEV(TYB,28));CCIC:=(TYB-MA(TYB,42))/(0.015*AVEDEV(TYB,42));CCI:=WMA((CCIA+2*CCIB+CCIC)/4,5);{叠加前N天显示图象}N:=100;W:=barslast(cross(BACKSET(BARSTATUS=2,N),0)); {叠加区间(从最后周期往前N天)}J:=W*0; {只在叠加区间才显示图象}PK:=4;BX:=IF(BARSCOUNT(C)=500,0,500);CCIS:=abs(hhv(CCI,BX)-llv(CCI,BX))/(HHV(C,BX)-llv(C,BX))*PK;CCIK:CCI/CCIS+现价+J,COLOR00FF00,LAYER0;PARTLINE(CCIK,CCIK>REF(CCIK,1),rgb(255,200,0) ),LINETHICK3,LAYER0; {二九宽带}上18H:WMA(SMA(hhv(HIGH,18),9/2,1),3),COLOR00FF00;下18L:WMA(SMA(llv(LOW,18),9/2,1),3),COLOR009900;通道:(上18H+下18L)/2,COLOR0598FF;FILLRGN(上18H,通道,上18H>通道,RGB(60,0,60)),LAYER7;FILLRGN(下18L,通道,下18L<通道,RGB(0,40,0)),LAYER7;{高抛.低吸}LC := REF(CLOSE,1);RSI:=WMA(SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,3); RSI5:=WMA(RSI,8);DRAWTEXT(CROSS(RSI,RSI5) ,L-0.1,'←低吸'),COLOR00fffF,LINETHICK1; DRAWTEXT(CROSS(RSI5,RSI) ,H+0.1,'←高抛'),COLOR0099FF,LINETHICK1; XP:=BARSLAST(DISPSTATUS=1)+1;AH1:hhv(h,Xp),COLOR0077FF,DOTLINE,LINETHICK1;AL2:llv(l,Xp),COLORFF9900,DOTLINE,LINETHICK1;HLZ:(AH1+AL2)/2,COLOR00FFFF,DOTLINE,LINETHICK1;下跌:LAST(AH1>H),PRECIS0 ,LINETHICK0;上涨:LAST(Al2<L),PRECIS0 ,LINETHICK0;DRAWTEXT(DISPSTATUS=2,AH1,'----【'+NUMTOSTRN(AH1,2)+'元:跌'+NUMTOSTRN((C-AH1)/AH1*100,1)+'%.'+NUMTOSTRN(下跌,0)+'天】---- '),ALIGN1,Color00FFFF,linethick3,LAYER0;DRAWTEXT(DISPSTATUS=2,Al2,'----【'+NUMTOSTRN(AL2,2)+'元:涨'+NUMTOSTRN((C-AL2)/AL2*100,1)+'%.'+NUMTOSTRN(上涨,0)+'天】----'),ALIGN1,VALIGN2,Color00ff00,linethick3,LAYER0;。

通达信指标公式源码 一定大涨指标 无未来

通达信指标公式源码 一定大涨指标 无未来

MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);五强:=MA5>REF(MA5,1);十强:=MA10>REF(MA10,1);小均强:=五强AND 十强;强势线1:=HHV(MA((((LOW + HIGH) + CLOSE) / 3),8),60);强势线2:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.18),8),20);强势线3:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.258),8),10);强势线4:=HHV(MA((((LOW + HIGH) + CLOSE) / 3.08),80),13);开始走强1:=强势线1>REF(强势线1,1);开始走强2:=强势线2>REF(强势线2,1);开始走强3:=强势线3>REF(强势线3,1);开始走强4:=强势线4>REF(强势线3,1);双强1:=开始走强1 AND 开始走强2;双强2:=开始走强2 AND 开始走强3;双强3:=开始走强2 AND 开始走强3;双强4:=开始走强3 AND 开始走强4;三强:=开始走强1 AND 开始走强2 AND 开始走强3;四强:=开始走强1 AND 开始走强2 AND 开始走强3 AND 开始走强4;强势为王:=双强1 OR 双强2 OR 双强3 OR 双强4 OR 三强OR 四强; VV:=(C+L+H)/3;DSA:=SMA(XMA(VV,15),2,1);底部1:=DSA*0.9518;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,60);五日走强:=MA1>REF(MA1,1);十日走强:=MA2>REF(MA2,1);二十日走强:=MA3>REF(MA3,1);六十日走强:=MA4>REF(MA4,1);低位主升:=五日走强AND 十日走强AND 六十日走强;主升浪:=五日走强AND 十日走强AND 二十日走强;大主升浪:=十日走强AND 二十日走强AND 六十日走强;大主升浪2:=五日走强AND 十日走强AND 二十日走强AND 六十日走强; 总主升:=主升浪AND 大主升浪AND 大主升浪2;总主升浪:=低位主升OR 主升浪OR 大主升浪OR 大主升浪2 OR 总主升; 低买:L<底部1 AND 总主升浪AND 强势为王ANDC<DSA,NODRAW,COLORGREEN,LINETHICK1;STICKLINE(低买,0,15,2,0),COLORGREEN;猎股:L<底部1 AND C<DSA AND 强势为王,NODRAW,COLORYELLOW,LINETHICK1;STICKLINE(猎股,15,30,2,0),COLORYELLOW;猎股大王出击:=低买AND 猎股AND H<DSA;A:=MA(C,30);A1:=A*1.1;A4:=A*0.9;A2:=A1-(A1-A4)*0.191;持仓:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A1,A4);生命线:=IF(HIGH*1.01>A2 OR REF(HIGH,1)>REF(A2,1),A2,A4);主升持仓:=持仓>生命线;主升1:=持仓>REF(持仓,1);主升2:=生命线>REF(生命线,1);主升3:=主升1 AND 主升2;主升猎股王:=(猎股大王出击AND 主升持仓AND 主升3) OR (猎股AND 主升持仓AND 主升3);主升:(主升猎股王AND 小均强) OR (猎股AND 小均强),NODRAW,COLORMAGENTA,LINETHICK1;STICKLINE(主升,30,45,2,0),COLORMAGENTA;LOWV:=LLV(LOW,9);HIGHV:=HHV(HIGH,9);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);K:EMA(RSV,3),COLORWHITE;D:MA(K,3),COLORYELLOW;。

通达信指标公式源码春夏秋冬和股价季节合并

通达信指标公式源码春夏秋冬和股价季节合并

主线:=EMA(EMA(C,1),5);本:=EMA(HHV(主线,5),1),COLOR00FFFF,LINETHICK2;急:=EMA(HHV(本,21),1),COLOR0089FF,LINETHICK1;稳:=EMA(HHV(急,21),2),COLORDB89FF,COLOR00FF00,LINETHICK2;投:=EMA(HHV(稳,21),3),COLOR8916FF,LINETHICK1;散:=EMA(HHV(投,21),4),COLORFFCC62,LINETHICK1;集:=EMA(HHV(散,21),5),COLORFFFFFF,LINETHICK2;马:=EMA(HHV(集,21),6),COLORFF5B5E,LINETHICK2;OX:0;XG:=主线/马*100-100;春:=XG<0 AND XG>=REF(XG,1);夏:=XG>0 AND XG>REF(XG,1);秋:=XG>0 AND XG<REF(XG,1);冬:=XG<0 AND XG<REF(XG,1);幅:=(XG-REF(XG,1))/100;DRAWRECTREL(200,500,500,999,RGB(255,0,255));DRAWRECTREL(200,1,500,500,90);DRAWRECTREL(500,1,800,500,RGB(218,165,32));DRAWRECTREL(500,500,800,999,RGB(50,205,50));DRAWTEXT_FIX(1,0.25,0.75,1,'春');DRAWTEXT_FIX(1,0.25,0.25,1,'夏');DRAWTEXT_FIX(1,0.75,0.25,1,'秋');DRAWTEXT_FIX(1,0.75,0.75,1,'冬');DRAWTEXT_FIX(春=1 AND CURRBARSCOUNT=1,0.48,0.61*(1-5*幅),1,'今天-');DRAWTEXT_FIX(春=1 AND CURRBARSCOUNT=2,0.44,0.61*(1-5*幅),1,'前1-'); DRAWTEXT_FIX(春=1 AND CURRBARSCOUNT=3,0.40,0.61*(1-5*幅),1,'前2-'); DRAWTEXT_FIX(春=1 AND CURRBARSCOUNT=4,0.36,0.61*(1-5*幅),1,'前3-'); DRAWTEXT_FIX(春=1 AND CURRBARSCOUNT=5,0.32,0.61*(1-5*幅),1,'前4-'); DRAWTEXT_FIX(夏=1 AND CURRBARSCOUNT=1,0.49,0.41*(1-5*幅),1,'今天-');DRAWTEXT_FIX(夏=1 AND CURRBARSCOUNT=2,0.46,0.41*(1-5*幅),1,'前1-'); DRAWTEXT_FIX(夏=1 AND CURRBARSCOUNT=3,0.42,0.41*(1-5*幅),1,'前2-_');DRAWTEXT_FIX(夏=1 AND CURRBARSCOUNT=4,0.38,0.41*(1-5*幅),1,'前3-'); DRAWTEXT_FIX(夏=1 AND CURRBARSCOUNT=5,0.34,0.41*(1-5*幅),1,'前4-'); DRAWTEXT_FIX(秋=1 AND CURRBARSCOUNT=1,0.67,0.31*(1-5*幅),1,'今天-');DRAWTEXT_FIX(秋=1 AND CURRBARSCOUNT=2,0.64,0.31*(1-5*幅),1,'前1-'); DRAWTEXT_FIX(秋=1 AND CURRBARSCOUNT=3,0.61,0.31*(1-5*幅),1,'前2-'); DRAWTEXT_FIX(秋=1 AND CURRBARSCOUNT=4,0.57,0.31*(1-5*幅),1,'前3-'); DRAWTEXT_FIX(秋=1 AND CURRBARSCOUNT=5,0.53,0.31*(1-5*幅),1,'前4-'); DRAWTEXT_FIX(冬=1 AND CURRBARSCOUNT=1,0.55,0.51*(1-5*幅),1,'-今天');DRAWTEXT_FIX(冬=1 AND CURRBARSCOUNT=2,0.59,0.51*(1-5*幅),1,'-前1'); DRAWTEXT_FIX(冬=1 AND CURRBARSCOUNT=3,0.63,0.51*(1-5*幅),1,'-前2'); DRAWTEXT_FIX(冬=1 AND CURRBARSCOUNT=4,0.67,0.51*(1-5*幅),1,'-前3'); DRAWTEXT_FIX(冬=1 AND CURRBARSCOUNT=5,0.71,0.51*(1-5*幅),1,'-前4'); DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.5,0.1,1,C);DRAWTEXT_FIX(CURRBARSCOUNT=1,0.45,0.1,1,'现价:');春天1:=IF(春=1,XG,MA(XG,10)),COLORMAGENTA,LINETHICK2;夏天1:=IF(夏=1,XG,MA(XG,10)),COLORRED,LINETHICK2;秋天1:=IF(秋=1,XG,MA(XG,10)),COLORYELLOW,DOTLINE;冬天1:=IF(冬=1,XG,MA(XG,10)),COLORCYAN,DOTLINE;STICKLINE(春天1>MA(XG,10),春天1,MA(XG,10),2,0),COLORFF00FF; STICKLINE(夏天1>MA(XG,10),夏天1,MA(XG,10),2,0),COLORRED; STICKLINE(秋天1<MA(XG,10),秋天1,MA(XG,10),2,0),COLORBROWN; STICKLINE(冬天1<MA(XG,10),冬天1,MA(XG,10),2,0),COLORCYAN;春天:IF(春=1,C,MA(XG,10)),COLORMAGENTA,LINETHICK1;夏天:IF(夏=1,C,MA(XG,10)),COLORRED,LINETHICK1;秋天:IF(秋=1,-1,MA(XG,10)),COLORYELLOW,DOTLINE;冬天:IF(冬=1,-20,MA(XG,10)),COLORCYAN,DOTLINE;。

通达信sc指标源码公式

通达信sc指标源码公式

通达信sc指标源码公式【原创实用版】目录1.通达信 sc 指标的概述2.通达信 sc 指标的计算公式3.通达信 sc 指标的应用法则4.通达信 sc 指标的实战案例正文一、通达信 sc 指标的概述通达信 sc 指标是一种用于判断股票趋势的指标,其全称为“顺势指标”,主要通过分析股价的高低点和收盘价之间的关系,来判断股票的趋势和转折点。

通达信 sc 指标是一种非常实用的技术分析工具,可以帮助投资者更好地把握市场机会,提高投资收益。

二、通达信 sc 指标的计算公式通达信 sc 指标的计算公式如下:sc = (close - low) / (high - low) * 100其中,close 表示收盘价,low 表示最低价,high 表示最高价。

计算结果的取值范围在 0-100 之间,一般认为,当 sc 指标值超过 75 时,股票处于超买状态,可能会出现下跌;当 sc 指标值低于 25 时,股票处于超卖状态,可能会出现上涨。

三、通达信 sc 指标的应用法则通达信 sc 指标的应用法则主要有以下几点:1.当 sc 指标值超过 75 时,股票处于超买状态,可能会出现下跌,投资者可以考虑卖出股票。

2.当 sc 指标值低于 25 时,股票处于超卖状态,可能会出现上涨,投资者可以考虑买入股票。

3.当 sc 指标值在 25-75 之间时,股票处于正常波动状态,投资者可以持有股票,或者根据其他技术指标做出买卖决策。

四、通达信 sc 指标的实战案例下面我们通过一个实战案例,来看一下通达信 sc 指标是如何帮助我们判断股票趋势的。

假设我们关注的股票是 600000,以下是该股票近期的通达信 sc 指标图:从图中可以看出,该股票的通达信 sc 指标值在 2 月份时低于 25,说明股票处于超卖状态,可能会出现上涨。

果然,在 3 月份,该股票出现了一波上涨行情,最高价达到了 10 元以上。

随后,该股票的通达信 sc 指标值在 4 月份超过了 75,说明股票处于超买状态,可能会出现下跌。

通达信指标公式源码 量价相合副图指标 源码

通达信指标公式源码 量价相合副图指标 源码

VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN, VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)), IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));主动:=SUM(主动买盘,0)/SUM(主动卖盘,0)*-1;低主5:=LLV(主动,5);{好}动比:=主动-低主5;高动5:=6/HHV(动比,5);主动心:=高动5*动比;K1:=主动心+1-REF(主动心,1)>0;K2:=主动心+1-REF(主动心,1)<0;主动心向:=主动心*K1-主动心*K2;{下面是量价了相合}FF:=CLOSE-REF(CLOSE,1);A:=MA(VOL*FF,2);A0:=MA(VOL*FF,3);A1:=MA(VOL*FF,5);A2:=MA(VOL*FF,10);A3:=MA(VOL*FF,20);A4:=MA(VOL*FF,30);B:=A-REF(A,1);B0:=A0-REF(A0,1);B1:=A1-REF(A1,1);B2:=A2-REF(A2,1);B3:=A3-REF(A3,1);B4:=A3-REF(A4,1);量价相合:(B>0)+(B0>0)+(B1>0)+(B2>0)+(B3>0)+(B4>0);YES:(量价相合>1)*量价相合*(主动心向>1 OR 主动心>60);IF(YES>=REF(YES,1),量价相合,DRAWNULL),COLORGREEN,LINETHICK2;IF(YES>=REF(YES,1),YES,DRAWNULL),COLORRED,LINETHICK2;周期1:IF(YES,BARSLAST(CROSS(YES,0.1))+1,0),COLORFF00FF,POINTDOT,LINETHICK0; 5,COLORGREEN;。

通达信指标公式源码 大小底结合副图+选股 公布源码 通达信指标

通达信指标公式源码 大小底结合副图+选股 公布源码 通达信指标

大小底结合: 副图X_1:=6;X_2:=80;X_3:=REF(CLOSE,1);X_4:=SMA(MAX(CLOSE-X_3,0),18,1)/SMA(ABS(CLOSE-X_3),13,1)*100; X_5:=SMA(MAX(CLOSE-X_3,0),24,1)/SMA(ABS(CLOSE-X_3),20,1)*100; X_6:=BARSLAST(X_5<48)<=3 AND CROSS(X_4,X_5);X_7:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,20)*100<(-12.5);X_8:=LLV(LOW,5);X_9:=HHV(HIGH,10);X_10:=EMA((CLOSE-X_8)/(X_9-X_8)*100,4);X_11:=EMA(0.667*REF(X_10,1)+0.333*X_10,2);X_12:=1011131;X_13:=IF(DATE<=X_12,X_7,0) OR IF(DATE<=X_12,X_2,0);X_15:=SMA(MAX(CLOSE-X_14,0),7,1)/SMA(ABS(CLOSE-X_14),7,1)*100;X_16:=SMA(MAX(CLOSE-X_14,0),13,1)/SMA(ABS(CLOSE-X_14),13,1)*100; X_17:=BARSLAST(X_16<43)<=3 AND CROSS(X_15,X_16);X_18:=(CLOSE-MA(CLOSE,43))/MA(CLOSE,20)*100<(-12.5);X_19:=LLV(LOW,5);X_20:=HHV(HIGH,10);X_21:=EMA((CLOSE-X_19)/(X_20-X_19)*100,4);X_22:=EMA(0.667*REF(X_21,1)+0.333*X_21,2);X_23:=1011131;X_24:=IF(DATE<=X_23,X_18,0) OR IF(DATE<=X_23,X_2,0);X_25:=0-(-1)*X_17 AND X_18 AND CROSS(X_21,X_22) AND X_21<=25;X_26:=REF(CLOSE,1);X_27:=SMA(MAX(CLOSE-X_26,0),7,1)/SMA(ABS(CLOSE-X_26),7,1)*100;X_28:=SMA(MAX(CLOSE-X_26,0),13,1)/SMA(ABS(CLOSE-X_26),13,1)*100; X_29:=BARSLAST(X_28<33)<=3 AND CROSS(X_27,X_28);X_30:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,20)*100<(-12.5);X_31:=LLV(LOW,5);X_32:=HHV(HIGH,10);X_33:=EMA((CLOSE-X_31)/(X_32-X_31)*100,4);X_34:=EMA(0.667*REF(X_33,1)+0.333*X_33,2);X_35:=1011131;X_36:=IF(DATE<=X_35,X_30,0) OR IF(DATE<=X_35,X_2,0);小底小仓位:0-(-1)*X_29 AND X_30 AND CROSS(X_33,X_34) ANDX_33<=25,COLOR80FF00;DRAWICON(小底小仓位>0,0.8,23);X_37:=REF(CLOSE,1);X_38:=SMA(MAX(CLOSE-X_37,0),7,1)/SMA(ABS(CLOSE-X_37),7,1)*100;X_39:=SMA(MAX(CLOSE-X_37,0),13,1)/SMA(ABS(CLOSE-X_37),13,1)*100; X_40:=BARSLAST(X_39<23)<=3 AND CROSS(X_38,X_39);X_41:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<(-12.5);X_42:=LLV(LOW,5);X_43:=HHV(HIGH,10);X_44:=EMA((CLOSE-X_42)/(X_43-X_42)*100,4);X_45:=EMA(0.667*REF(X_44,1)+0.333*X_44,2);X_46:=1011131;X_47:=IF(DATE<=X_46,X_41,0) OR IF(DATE<=X_46,X_2,0);大底大仓位:0-(-1)*X_40 AND X_41 AND CROSS(X_44,X_45) ANDX_44<=25,COLORRED;DRAWTEXT_FIX(C>O,0.01,0.9,0,'室'),COLORyellow; DRAWICON(大底大仓位>0,0.8,24);大小底结合: 条件选股X_1:=6;X_2:=80;X_4:=SMA(MAX(CLOSE-X_3,0),18,1)/SMA(ABS(CLOSE-X_3),13,1)*100;X_5:=SMA(MAX(CLOSE-X_3,0),24,1)/SMA(ABS(CLOSE-X_3),20,1)*100;X_6:=BARSLAST(X_5<48)<=3 AND CROSS(X_4,X_5);X_7:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,20)*100<(-12.5);X_8:=LLV(LOW,5);X_9:=HHV(HIGH,10);X_10:=EMA((CLOSE-X_8)/(X_9-X_8)*100,4);X_11:=EMA(0.667*REF(X_10,1)+0.333*X_10,2);X_12:=1011131;X_13:=IF(DATE<=X_12,X_7,0) OR IF(DATE<=X_12,X_2,0);X_14:=REF(CLOSE,1);X_15:=SMA(MAX(CLOSE-X_14,0),7,1)/SMA(ABS(CLOSE-X_14),7,1)*100;X_16:=SMA(MAX(CLOSE-X_14,0),13,1)/SMA(ABS(CLOSE-X_14),13,1)*100; X_17:=BARSLAST(X_16<43)<=3 AND CROSS(X_15,X_16);X_18:=(CLOSE-MA(CLOSE,43))/MA(CLOSE,20)*100<(-12.5);X_19:=LLV(LOW,5);X_20:=HHV(HIGH,10);X_21:=EMA((CLOSE-X_19)/(X_20-X_19)*100,4);X_22:=EMA(0.667*REF(X_21,1)+0.333*X_21,2);X_23:=1011131;X_24:=IF(DATE<=X_23,X_18,0) OR IF(DATE<=X_23,X_2,0);X_25:=0-(-1)*X_17 AND X_18 AND CROSS(X_21,X_22) AND X_21<=25;X_26:=REF(CLOSE,1);X_27:=SMA(MAX(CLOSE-X_26,0),7,1)/SMA(ABS(CLOSE-X_26),7,1)*100;X_28:=SMA(MAX(CLOSE-X_26,0),13,1)/SMA(ABS(CLOSE-X_26),13,1)*100; X_29:=BARSLAST(X_28<33)<=3 AND CROSS(X_27,X_28);X_30:=(CLOSE-MA(CLOSE,33))/MA(CLOSE,20)*100<(-12.5);X_31:=LLV(LOW,5);X_32:=HHV(HIGH,10);X_33:=EMA((CLOSE-X_31)/(X_32-X_31)*100,4);X_34:=EMA(0.667*REF(X_33,1)+0.333*X_33,2);X_35:=1011131;X_36:=IF(1<=X_35,X_30,0) OR IF(1<=X_35,X_2,0);X_37:=0-(-1)*X_29 AND X_30 AND CROSS(X_33,X_34) AND X_33<=25;X_38:=REF(CLOSE,1);X_39:=SMA(MAX(CLOSE-X_38,0),7,1)/SMA(ABS(CLOSE-X_38),7,1)*100;X_40:=SMA(MAX(CLOSE-X_38,0),13,1)/SMA(ABS(CLOSE-X_38),13,1)*100; X_41:=BARSLAST(X_40<23)<=3 AND CROSS(X_39,X_40);X_42:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<(-12.5);X_43:=LLV(LOW,5);X_44:=HHV(HIGH,10);X_45:=EMA((CLOSE-X_43)/(X_44-X_43)*100,4);X_46:=EMA(0.667*REF(X_45,1)+0.333*X_45,2);X_47:=1011131;X_48:=IF(1<=X_47,X_42,0) OR IF(1<=X_47,X_2,0);X_49:=0-(-1)*X_41 AND X_42 AND CROSS(X_45,X_46) AND X_45<=25; XG:X_37 OR X_49;。

通达信非常棒的组合主图指标公式

通达信非常棒的组合主图指标公式

通达信⾮常棒的组合主图指标公式HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);QY:=BACKSET(AA,HIGHN+1);CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);DRAWICON(CC,H*1.02,2);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);⾼点压⼒:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2; DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT; DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);QY1:=BACKSET(AA1,LOWN+1);CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);DRAWICON(CC1,L*0.98,1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);低点⽀撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2; ZGSTAR:=(⾼点压⼒+低点⽀撑)/2;ZGEND:=CONST((⾼点压⼒+低点⽀撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK2; {股旁⽹-股票公式⽹站 }DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLORMAGENTA,POINTDOT,; DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLORCYAN,POINTDOT;EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED;DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←⾼抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;A0:=(L+H+C*2)/4;A1:EMA(A0,14)COLORBLUE,LINETHICK2;A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;看多:IF(A1X>=0 ANDBARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 ANDBARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};买⼊持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
相关文档
最新文档