Forum

what is the meaning of these sentence in Strategy Tester inside Journal tab?

after reaching good place to get profit , I close all my open orders by using these codes: void closeAllOpenOrders() { CTrade trade; int i= PositionsTotal ()- 1 ; while (i>= 0 ) { if (trade.PositionClose( PositionGetTicket (i))) {

why all open positions getting close after some time, without running my EA codes?

I write some codes in MT5 with MQL5 language and create EA, after some times all open positions getting close without running any of my codes. I did not set take profit or stop loss for any of positions, because I want to handle it by my self and my account leverage is 1:500