Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I see, my fail. I'm a bit tired. Sorry, thanks.
Another issue:
Backtesting.
Same instruments, same lot sizes, same TP and SL. No swaps. Different result in money. How can it be?
Order 1 was opened and closed on the same day
Order 2 wasn't, so there would have been a charge for the swap
Order 1 was opened and closed on the same day
Order 2 wasn't, so there would have been a charge for the swap
Unfortunately not good. This is not the swap. Here is an other example (same day and different values)
Unfortunately not good. This is not the swap. Here is an other example (same day and different values)
You are being charged 65 cents commission for each trade
Yes, I also think that, see: https://www.mql5.com/en/forum/153161/page2#990303
Can I modelling commission in backtest?
One can get an order's commission from an OPEN and CLOSED order >> OrderCommission()
Is there any possibility to know the commission IN ADVANCE (before opening)?
(It were good if there would be MODE_COMMISSION in MarketInfo. But there is not.)
You are wrong. If it were the spread, the different would be 3USD because of the 0.1 lot. The different isn't 3, but 1.62.
What about commission? Is it possible to modelling the commission in the backtest?
This is swap. Your position 2 was open 2014.05.07 and close 2014.05.08.
Thank you, but it is not swap, see the newer picture above > here
This is commission. (On the first picture there are commission and swap.)
So, this is my question:
One can get an order's commission from an OPEN and CLOSED order >> OrderCommission()
Is there any possibility to know the commission IN ADVANCE (before opening)?
(It were good if there would be MODE_COMMISSION in MarketInfo. But there is not.)