|
double MA_Fast_Now = iMA(NULL,0,15,0,MODE_SMA,PRICE_CLOSE,0);
double MA_Slow_Now = iMA(NULL,0,30,0,MODE_SMA,PRICE_CLOSE,0);
double MA_Fast_Previous = iMA(NULL,0,15,0,MODE_SMA,PRICE_CLOSE,1);
double MA_Slow_Previous = iMA(NULL,0,30,0,MODE_SMA,PRICE_CLOSE,1);
if (MA_Fast_Now == MA_Slow_Now && MA_Fast_Previous > MA_Slow_Previous) // 短期均线向下穿越长期均线
double A = MA_Fast_Now; // A=交叉点价格 |
|