Download MetaTrader 5

What is the difference? - page 3

To add comments, please log in or register
Keith Watford
Moderator
10561
Keith Watford  
ggekko:

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 

Gordon Gekko
623
Gordon Gekko  
GumRai:

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)


Keith Watford
Moderator
10561
Keith Watford  
ggekko:

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
Gordon Gekko
623
Gordon Gekko  
GumRai:
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?

Gordon Gekko
623
Gordon Gekko  

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.)

Alain Verleyen
Moderator
32377
Alain Verleyen  
ggekko:

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.
Gordon Gekko
623
Gordon Gekko  
angevoyageur:
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.)

123
To add comments, please log in or register