Disliked{quote} i wonder, do you take into account the slippage? and do u use spread? if no, need to use commission. also in which timeframe u use this EA in? cuz below H1 tfs are usually more expose to over-fitting. (which means that backtest result will not be the same as the actual result)Ignored
Inserted Code
profit = profit + m_Position.Profit() - m_Position.Commission() + m_Position.Swap();
Deals are closed with this method ORDER_FILLING_FOK at this moment in all EAs in this thread. Deviation (or slippage in MT4) is 10 points (1 pip).
But for stocks will consider another approach because money supply can be limited in stocks - so need to wait for a better time to close so another method might be used - see here methods.
1