买卖点不好掌握有一个可以提前提示的多好
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)),COLORFFFFFF;
〖测顶〗:0 - IF((VAR3 >= 200),200,VAR5) + 400,COLORYELLOW;{}
〖测底〗:0 - IF((VAR3 >= 200),0,IF((VAR3 <= (-200)),(-200),VAR6)) - 400,COLORFF00FF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系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))
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)),COLORFFFFFF
输出
〖测顶〗:0 - IF((VAR3 >= 200),200,VAR5) + 400,画黄色
输出{}
〖测底〗:0 - IF((VAR3 >= 200),0,IF((VAR3 <= (-200)),(-200),VAR6)) - 400,COLORFF00FF