通达信老鸭头主图源码 贴图
-
相关简介:MA5:MA(CLOSE,5),COLOR00FFFF; MA10:MA(CLOSE,10),COLORFF00FF; MA60:MA(CLOSE,60),COLOR00FF00; PDAY1:=BARSLAST(CROSS(MA5,MA60)); PDAY2:=BARSLAST(CROSS(MA10,MA60)); PDAY3:=BARSLAST((HIGH=HHV(HIGH,PDAY2))); PDAY4:=BARSLAST(CROSS(MA10,MA5)); PDAY5:=BARSLAST
-
文章来源:股海网作者:股海网发布时间:2019-05-14浏览次数:
MA5:MA(CLOSE,5),COLOR00FFFF;
MA10:MA(CLOSE,10),COLORFF00FF;
MA60:MA(CLOSE,60),COLOR00FF00;
PDAY1:=BARSLAST(CROSS(MA5,MA60));
PDAY2:=BARSLAST(CROSS(MA10,MA60));
PDAY3:=BARSLAST((HIGH=HHV(HIGH,PDAY2)));
PDAY4:=BARSLAST(CROSS(MA10,MA5));
PDAY5:=BARSLAST(CROSS(MA5,MA10));
A1:=(PDAY1>PDAY2) AND (PDAY2>PDAY3) AND (PDAY3>PDAY4) AND (PDAY4>PDAY5) AND (PDAY5<5);
A2:=(COUNT(CROSS(MA10,MA5),PDAY2)=1);
AA:=IF(A1 AND A2 AND (MA(CLOSE,5)>=MA(CLOSE,10)) AND (MA(CLOSE,10)>MA(CLOSE,60)),10,0);
BB:=FILTER(A1 AND A2 AND (MA(CLOSE,5)>=MA(CLOSE,10)) AND (MA(CLOSE,10)>MA(CLOSE,60)),5);
老鸭头:=IF(AA AND BB,1,0),COLOR00FF00;
DRAWICON(AA AND BB,LOW,1),COLORFFFF00;
DRAWTEXT(AA AND BB,(LOW)*(0.98),'老鸭头'),COLORBLUE;