通达信蓝绿极点买卖指标无未来放心使用!
N1:=9;
DRAWKLINE(H,O,L,C);
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
LC := REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
STICKLINE((REF(RSI,1)>=80 AND RSI<80),HIGH+0.8,HIGH+1.1,0.8,0),COLORGREEN;
STICKLINE((REF(RSI,1)>=80 AND RSI<80),CLOSE+0.8,CLOSE+1.1,4,0),COLORGREEN;
STICKLINE((REF(RSI,1)<=20 AND RSI>20),LOW-0.5,LOW-0.8,0.8,0),COLORBLUE;
STICKLINE((REF(RSI,1)<=20 AND RSI>20),OPEN-0.5,OPEN-0.8,8,0),COLORBLUE;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N1赋值:9
DRAWKLINE(H,O,L,C)
Z1赋值:STRCAT(HYBLOCK,' ')
Z2赋值:STRCAT(Z1,DYBLOCK)
Z3赋值:STRCAT(Z2,' ')
LC := 1日前的收盘价
RSI赋值:SMA(收盘价-LC和0较大值,N1,1)/SMA(收盘价-LC的绝对值,N1,1)*100
STICKLINE((1日前的RSI>=80 AND RSI<80),最高价+0.8,最高价+1.1,0.8,0),画绿色
STICKLINE((1日前的RSI>=80 AND RSI<80),收盘价+0.8,收盘价+1.1,4,0),画绿色
STICKLINE((1日前的RSI<=20 AND RSI>20),最低价-0.5,最低价-0.8,0.8,0), 画蓝色
STICKLINE((1日前的RSI<=20 AND RSI>20),开盘价-0.5,开盘价-0.8,8,0), 画蓝色