量天尺副图通达信公式 副图 源码附图测顶 测底
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;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:(最高价+最低价+收盘价)/3
VAR2赋值:(VAR1-VAR1的14日简单移动平均)/(0.015*AVEDEV(VAR1,14))
VAR3赋值:(VAR1-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))
如果VAR2>=150 AND VAR2<200 AND VAR3>=150 AND VAR3<200返回100否则返回0
如果VAR2<=-150 AND VAR2>-200 AND VAR3<=-150 AND VAR3>-200返回-100否则返回0
IF(VAR2>=200,200,IF(VAR2<=-200,-200,VAR4))
如果VAR3>=200返回200否则返回VAR5
输出测底: 0-IF(VAR3>=200,0,IF(VAR3<=-200,-200,VAR6))-400