火眼金星
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