飞狐玄黄区间副图指标
源码
P:=5;P1:=13;P2:=21;M:=88;
Var1:=(MA(CLOSE,P)-REF(MA(CLOSE,P),1))/REF(MA(CLOSE,P),1)*100;
Var2:=(MA(CLOSE,P1)-REF(MA(CLOSE,P1),1))/REF(MA(CLOSE,P1),1)*100;
Var3:=(MA(CLOSE,34)-REF(MA(CLOSE,34),1))/REF(MA(CLOSE,34),1)*100;
A1:MA(Var1,p2),colorred,,linethick2;
A2:MA(Var2,p2)colorblue,,linethick2;
A3:MA(Var3,p2),coloryellow,,linethick2;
Var4:=HHV(A1,m)<=0.8 AND LLV(A1,m)>=-0.8 AND HHV(A1,m)-LLV(A1,m)<=1.2;
Var5:=BARSCOUNT(CLOSE)>=140;
S: IF(Var4 AND Var5,2,-2), CIRCLEDOT,colorred;
w:IF(COUNT(S=2,30)>=5 AND Var5,3,-2),colorgreen;