通达信简单任务主图+选股指标公式源码

简单任务主图指标公式源码

日线:MA(C,3),COLORGREEN;

MB1:=MA(日线,5),COLOR999999;

MB2:=SMA(CLOSE,25,20),COLORFFCC00,LINETHICK1;

MB3:=SMA((MB2+1.382*STD(MB2,9)),15,14),COLOR66EEEE;

MB4:=SMA(MB2+0.318*STD(CLOSE,9),15,1);

MB5:=SMA(MB3,15,13),COLORLIGRAY,POINTDOT;

涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);

STICKLINE(涨停,OPEN,CLOSE,2,0),COLORWHITE;

STICKLINE(涨停,OPEN,CLOSE,1,0),COLORRED;

STICKLINE(涨停,OPEN,CLOSE,0,1),COLOR8B8BFF;

上界:SMA(EXPMA(MB4,2),15,14),COLORFF00FF,LINETHICK2;

底界:SMA(MB2-1.618*STD(CLOSE,9),30,1),COLORBLUE,LINETHICK2;

中迹:(上界+底界)/2,COLORWHITE,DOTLINE;

MB6:=EMA(C,13),COLOR09B7EA;

EMA1:=EMA(MB6,3);

EMA2:=EMA(EMA1,3);

EMA3:=EMA(EMA2,3);

标:DRAWTEXT_FIX(C>O,0.01,0.9,0,' 指标网 '),COLOR99EEEE;

带:=DRAWBAND(EMA1,RGB(233,28,196),EMA3,RGB(0,255,0));

简单任务选股公式源码:

日线:=MA(C,3);

MB2:=SMA(CLOSE,25,20);

MB3:=SMA((MB2+1.382*STD(MB2,9)),15,14);

MB4:=SMA(MB2+0.318*STD(CLOSE,9),15,1);

上界:=SMA(EXPMA(MB4,2),15,14);

底界:=SMA(MB2-1.618*STD(CLOSE,9),30,1);

一线穿三:CROSS(日线,上界) AND CROSS(日线,底界);