{X战警}
{注意:原指标第一行和第二行含未来函数XMA,已优化改成EMA。}
{原来的第一行和第二行代码:
AA:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25);
BB:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1;
}DRAWTEXT_FIX(C O,0.01,0.01,0,'
AA:=(EMA(EMA(H,25),25)-EMA(EMA(L,25),25))*1+EMA(EMA(H,25),25);
BB:=EMA(EMA(L,25),25)-(EMA(EMA(H,25),25)-EMA(EMA(L,25),25))*1;
CC:=EMA(BB,25);
预警:CROSS(BB*1.0035,CC) LINETHICK3 STICK COLORWHITE ;
底色:CROSS(BB,CC) LINETHICK5 COLOR008000 ;
扶正色:CROSS(BB,CC)*0.5 LINETHICK2 COLORRED ;