简单买卖副图指标 源码 通达信 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);
2021282282142199.png
|