Forum

Is it possible? Building EA based on overlay indicator in window 1

Hi, I have a trading method that uses two indicators overlay on each other. For example moving average overlay on RSI. Can I code an EA based on the cross of the moving average over the RSI levels (e.g., when the moving average is above RSI 70 line). Any coding ideas or suggestions. Thanks

please help! my EA does not close open order on condition. is my code wrong?

this is my code:I have tried it several times with different conditions.thanks for(cnt=0;cnt 0) { if(Bid-OrderOpenPrice()>MarketInfo(Symbol(),MODE_POINT)*TrailingStop) { if(OrderStopLoss() isar(NULL,15,0.02,0.2,0)) { OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet); // close position return(0); //