同花顺买卖优化指标公式

[复制链接]
查看136 | 回复0 | 2021-8-20 21:35:54 | 显示全部楼层 |阅读模式

VAR:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;
VAR1:=EMA(VAR,3);
VAR2:=EMA(VAR,5);
VAR3:=EMA(VAR,7);
T1:=VAR2>=VAR3 AND VAR1<REF(VAR1,1);
T2:=VAR2<VAR3 AND VAR1>REF(VAR1,1);
STICKLINE(VAR1>=VAR2,VAR3,VAR1,6,0),Color0000ff;
STICKLINE(VAR1>=VAR2,VAR3,REF(VAR1,1),1,0),Color0000ff;
STICKLINE(VAR1<VAR2,VAR3,VAR1,6,0),Colorff9900;
STICKLINE(VAR1<VAR2,VAR3,REF(VAR1,1),1,0),Colorff9900;
STICKLINE(T1,VAR1,VAR3,6,0),Colorffdd55;
STICKLINE(T1,VAR1,REF(VAR3,1),1,0),Colorffdd55;
STICKLINE(T2,VAR1,VAR3,6,0),Color00ffff;
STICKLINE(T2,VAR1,REF(VAR3,1),1,0),Color00ffff;
高抛:HHV(EMA(VAR,5),20),colorgray,Linethick2;
低吸:LLV(EMA(VAR,5),20),colorgray,Linethick2;
DRAWICON(CROSS(VAR,低吸),低吸,"buy");
DRAWICON(CROSS(高抛,VAR),VAR,"sell");
DRAWGBK(DATE>900101,STRIP(RGB(20,0,0),RGB(10,10,0),1));

202108202133.jpg

202108202133.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则