以下是通达信翻倍股票源码
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA21:MA(CLOSE,21),COLORMAGENTA;
MA48:MA(CLOSE,48),COLORRED;
MA89:MA(CLOSE,89),COLORGREEN;
MA144:MA(CLOSE,144),COLORBLUE;
年线:MA(CLOSE,288),COLORWHITE;
MA60:=MA(C,60);
最大值:=MAX(MAX(MAX(MA5,MA10),MAX(MA21,MA48)),MAX(MAX(MA89,MA144),年线));
最小值:=MIN(MIN(MIN(MA5,MA10),MIN(MA21,MA48)),MIN(MIN(MA89,MA144),年线));
乖离:(最大值/最小值-1)*100,NODRAW;
M5:IF(MA5>=MA10,MA5,DRAWNULL),LINETHICK3,COLORWHITE;
M10:IF(MA10>=MA21,MA10,DRAWNULL),LINETHICK3,COLORYELLOW;
M21:IF(MA21>=MA48,MA21,DRAWNULL),LINETHICK3,COLORMAGENTA;
M48:IF(MA48>=MA89,MA48,DRAWNULL),LINETHICK3,COLORRED;
M89:IF(MA89>=MA144,MA89,DRAWNULL),LINETHICK3,COLORGREEN;
M144:IF(MA144>=年线,MA144,DRAWNULL),LINETHICK3,COLORBLUE;
多头:=((MA5>REF(MA5,1))+(MA10>REF(MA10,1))+(MA21>REF(MA21,1))+(MA48>REF(MA48,1))+(MA89>REF(MA89,1))+(MA144>REF(MA144,1))+(年线>REF(年线,1)))>=5;
倍量:=V>REF(V,1)*1.9 AND C>O ;
量比:=V/REF(MA(V,5),1)>2 AND C>O ;
千里马:=乖离<8 AND C>=最大值 AND 倍量 AND 量比;
DRAWICON(千里马,L*0.98,5),ALIGN1;
DRAWTEXT(千里马,最小值*0.98,’翻倍’),ALIGN1,COLORYELLOW;
评论(0)