飞狐量天尺副图指标
源码
Var1:=(HIGH+LOW+CLOSE)/3;
Var2:=(Var1-MA(Var1,14))/(0.015*AVEDEV(Var1,14));
Var3:=(Var1-MA(Var1,70))/(0.015*AVEDEV(Var1,70));
Var4:=IF(Var2>=150 AND Var2<200 AND Var3>=150 AND Var3<200,100,IF(Var2<=-150 AND Var2>-200 AND Var3<=-150 AND Var3>-200,-100,0));
Var5:=IF(Var2>=150 AND Var2<200 AND Var3>=150 AND Var3<200,100,0);
Var6:=IF(Var2<=-150 AND Var2>-200 AND Var3<=-150 AND Var3>-200,-100,0);
IF(Var2>=200,200,IF(Var2<=-200,-200,Var4));
测顶: 0-IF(Var3>=200,200,Var5)+400;
测底: 0-IF(Var3>=200,0,IF(Var3<=-200,-200,Var6))-400;