通达信波谷副图指标
源码
A4:=MA(CLOSE,20);
A5:=(CLOSE>MA(CLOSE,5));
A6:=(MA(CLOSE,5)>MA(CLOSE,10));
A7:=(CLOSE>MA(CLOSE,10));
A8:=(MA(CLOSE,5)>MA(CLOSE,20));
A9:=(CLOSE>MA(CLOSE,20));
A10:=REF(A4,1);A11:=(A4 > A10);
BD:(((((IF(A5,10,(0-10))+IF(A6,10,(0-10)))+IF(A7,10,(0-10)))+
IF(A8,10,(0-10)))+IF(A9,10,(0-10)))+IF(A11,10,(0-10))),COLOR0000FF;
零轴:0,COLOR00FFFF;
TJ2:=BD>REF(BD,1) AND REF(BD,2)>=REF(BD,1);
TJ1:BD<0;
TJ:=TJ1 AND TJ2;
STICKLINE(TJ,0,30,3,0),COLOR00FFFF;
FULL:=FILTER(COUNT(TJ,8)>=2,5);
STICKLINE(FULL,0,50,4,1),COLOR0000FF;
14966302.jpg
|