通达信一线打天下
VAR2:=LLV(LOW,18);
VAR3:=HHV(HIGH,18);
VAR4:=EMA(((CLOSE-VAR2)/(VAR3-VAR2))*(100),13);
VAR5:=EMA((0.61799997)*(REF(VAR4,1))+(0.38199999)*(VAR4),3);
drawtext((VAR5-REF(VAR5,1))>0,VAR5,'·'),Color00FFFF,POINTDOT,Linethick3;
drawtext((VAR5-REF(VAR5,1))<0,VAR5,'·'),ColorFF0000,POINTDOT,Linethick3;
drawtext(((VAR5-REF(VAR5,1)<0) AND (REF(VAR5,1)>REF(VAR5,2)) AND (VAR5>40)),(VAR5*0.98),'↓'),Color0000FF,Linethick3;
IF(CROSS(80,VAR5),80,100),ColorFFFFFF;
VAR6:=((CLOSE-MA(CLOSE,6))/(MA(CLOSE,6)))*(100);
VAR7:=((CLOSE-MA(CLOSE,12))/(MA(CLOSE,12)))*(100);
VAR8:=((CLOSE-MA(CLOSE,24))/(MA(CLOSE,24)))*(100);
VAR9:=(VAR6+(2)*(VAR7)+(3)*(VAR8))/(6);
VARA:=MA(VAR9,3);
警戒:IF((VARA<-6),15,0),ColorFFFF00;
15,Color0000FF;
50,Color008000;
80,ColorFF0000;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR2赋值:18日内最低价最低值
VAR3赋值:18日内最高价最高值
VAR4赋值:EMA(((收盘价-VAR2)/(VAR3-VAR2))*(100),13)
VAR5赋值:EMA((0.61799997)*(1日前的VAR4)+(0.38199999)*(VAR4),3)
DRAWTEXT((VAR5-1日前的VAR5)>0,VAR5,'·'),COLOR00FFFF,POINTDOT, 线宽为3
DRAWTEXT((VAR5-1日前的VAR5)<0,VAR5,'·'),COLORFF0000,POINTDOT, 线宽为3
DRAWTEXT(((VAR5-1日前的VAR5<0) AND (1日前的VAR5>2日前的VAR5) AND (VAR5>40)),(VAR5*0.98),'↓'),COLOR0000FF, 线宽为3
IF(80上穿VAR5,80,100),COLORFFFFFF
VAR6赋值:((收盘价-收盘价的6日简单移动平均)/(收盘价的6日简单移动平均))*(100)
VAR7赋值:((收盘价-收盘价的12日简单移动平均)/(收盘价的12日简单移动平均))*(100)
VAR8赋值:((收盘价-收盘价的24日简单移动平均)/(收盘价的24日简单移动平均))*(100)
VAR9赋值:(VAR6+(2)*(VAR7)+(3)*(VAR8))/(6)
VARA赋值:VAR9的3日简单移动平均
输出
警戒:IF((VARA<-6),15,0),COLORFFFF00
15,COLOR0000FF
50,COLOR008000
80,COLORFF0000