Forum

Need Help with my code

Please tell me what is wrong with my code on the snippet below, after compiling there is a warning that says I 'OrderSelect' and 'OrderClose' should be checked and when I execute the EA on my chart, it does not close at the specified points. void CloseBuyPositions() { for(int i=OrdersTotal()-1;

Creating an EA That will Make Profits regardless of the trend direction, Timeframe and currency pair.

I wanted an EA that will contually make a profit whether its an uptrend or a downtrend and to make the profit whether the candle is bullish or bearish. Now the problem is as soon as a candle opens on order opens as well depending on whether its a sell or buy and with each new order comes the