通达信波段出击主图指标源码

[复制链接]
查看131 | 回复0 | 2021-8-20 17:31:31 | 显示全部楼层 |阅读模式

以下是通达信波段出击主图指标源码(无源码的请下载附件导入)

强势线:MA(C,21);
支撑线:MA(C,60);
生命线:MA(C,120);
 MA5:=MA(C,3);
 MA10:=MA(C,7);
 MA20:=MA(C,21);
 MA60:=MA(C,60);
 MA120:=MA(C,120);
 MA250:=MA(C,250);
 A7:=C-REF(C,1);
 A8:=100*EMA(EMA(A7,7),8)/EMA(EMA(ABS(A7),7),9);
 A9:=(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)));
 A10:=CROSS(CLOSE,MA(CLOSE,7));
 A11:=C<MA5 AND MA5>MA10;
 A12:=CROSS(C,MA(C,21)) AND CROSS(C,MA(C,60)) AND CROSS(C,MA(C,120));
 A13:=CROSS(C,MA(C,21)) AND MA(C,21)<MA(C,60) AND MA(C,21)<MA(C,120);
 A14:=CROSS(C,MA(C,60)) ;
 A15:=MA(C,5)>MA(C,30) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,30);
 A16:=C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2);
 A17:=AMO>REF(AMO,1)*2 OR REF(AMO,2)>REF(AMO,3)*2 AND REF(AMO,1)<REF(AMO,2) AND REF(AMO,1)<AMO;
 A18:=A15 AND A16 AND A17;
 A19:=CROSS(C,MA(C,21)) ;
 MH:=A9 AND A10 OR A14 ;
 XG:=A11;
多头:=IF(C<生命线 AND C<支撑线 AND C<强势线 ,MH,A13);
买:=IF(C>生命线 AND C>支撑线 AND C>强势线,MH,0) OR A18 OR A19;
买入点:=IF(C<强势线 AND C>生命线,MH,0);
空头:=IF(C>生命线 AND C>支撑线 AND C>强势线,XG,0);
卖:=IF(C<生命线 AND C<支撑线 AND C<强势线,XG,0);
 A20:=A12 AND MH AND A13;
 DRAWTEXT(多头,L-0.05,'↖多头'),COLORYELLOW;
 DRAWTEXT(买入点,L-0.05,'↖买入点'),COLORYELLOW;
 DRAWTEXT(A20,L-0.45,'↖满仓'),COLORMAGENTA;
 DRAWTEXT(买,L-0.25,'↖买'),COLORMAGENTA;
 DRAWTEXT(FILTER(卖=1,5),H+0.05,' ↙卖'),COLORGREEN;
 DRAWTEXT(FILTER(空头=1,5),H+0.05,' ↙空头'),COLORGREEN;

719400763.jpg

719400763.jpg

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则