顶底提示通达信指标 源码 贴图
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
VAR3:=SMA(MAX(CLOSE-VAR1,0),13,1)/SMA(ABS(CLOSE-VAR1),13,1)*100;
VAR4:=SMA(MAX(VAR1-CLOSE,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
VAR5:=SMA(MAX(VAR1-CLOSE,0),13,1)/SMA(ABS(CLOSE-VAR1),13,1)*100;
VAR6:=BARSCOUNT(CLOSE);{股票指标网}
提示顶底: VAR2<25 AND VAR3<30 AND VAR6>35, COLORSTICK;
0-ABS(VAR4<25 AND VAR5<30 AND VAR6>35), COLORSTICK;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:1日前的收盘价
VAR2赋值:SMA(收盘价-VAR1和0较大值,7,1)/SMA(收盘价-VAR1的绝对值,7,1)*100
VAR3赋值:SMA(收盘价-VAR1和0较大值,13,1)/SMA(收盘价-VAR1的绝对值,13,1)*100
VAR4赋值:SMA(VAR1-收盘价和0较大值,7,1)/SMA(收盘价-VAR1的绝对值,7,1)*100
VAR5赋值:SMA(VAR1-收盘价和0较大值,13,1)/SMA(收盘价-VAR1的绝对值,13,1)*100
VAR6赋值:收盘价的有效数据周期数
输出{股票指标网}
提示顶底: VAR2<25 AND VAR3<30 AND VAR6>35, COLORSTICK
0-VAR4<25 AND VAR5<30 AND VAR6>35的绝对值, COLORSTICK