Hello, it looks there is no possibility in optimisation results to see the net profit of each strategy after commission are applied by the broker (unless opening the report in excel to sum total commission). It'd be great
- Flexible MetaTrader 5 trading system with all order types
- MetaTrader 5 for your employees
- MetaTrader 5 for a hedge fund manager
nobody interested, worthless ?
Florew: nobody interested, worthless ?
Sounds like a good idea.
Florew,
Did you find a way to include commission into your backtesting? I am not sure if there is way to do that in mql5.
Florew, I created a workaround to do this in my EAs, using TesterWithdrawal() after the trade execution, to emulate a commission value.
... OrderSend(...) ... ... // commission emulation TesterWithdrawal(commission);
Simple as that, and works fine, as you don't need Excel to figure out and will have a more realistic backtesting.
Also, you can check the total Withdrawal (or total Commission) at Strategy Tester results tab.
How can we get the value of "commission" in program ?
bcsunwww:
Try this: Commission() - https://www.mql5.com/en/docs/standardlibrary/tradeclasses/cpositioninfo/cpositioninfocommission
Documentation on MQL5: Standard Library / Trade Classes / CPositionInfo / Commission
- www.mql5.com
Standard Library / Trade Classes / CPositionInfo / Commission - Documentation on MQL5
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register