以下是通达信简单买卖副图源码XG2上穿XG1时买入 XG2下穿XG1时卖出(无源码的请下载附件导入)
简单买卖副图指标 源码 通达信 XG2上穿XG1时买入 XG2下穿XG1时卖出
WR1:=110*(HHV(HIGH,20)-EMA(C,5))/(HHV(HIGH,20)-LLV(LOW,20));
WR2:=110*(HHV(HIGH,5)-EMA(C,1))/(HHV(HIGH,5)-LLV(LOW,5));
G:=BARSLAST(CROSS(WR1,WR2))/2+49;
XG1:WR2>G;
XG2:G>WR2;
DRAWICON(CROSS(XG2,XG1),XG2,1);
DRAWICON(CROSS(XG1,XG2),XG1,2);
1743455281.png
|