You should create a custom symbol with no swap and no commission and 0 spread fixed.
thanks that's awesome i'll do that !!
when I do an optimization I want to measure the edge. For that I need to remove the fees and spread. otherwise how do you know if the timeframe is too low for example ?
you can disregard a perfectly good strategy that would work on higher TF for example. With zero spread it can be an awesome strategy but totally lose with fees, but then you know you need to raise the profit per trade. You can do that by changing the TF for example
optimizing/backtest with fees is misleading and you can skip good strategies
You should create a custom symbol with no swap and no commission and 0 spread fixed.
look there should be an easier way to backtest without spreads. I dwelved into Custom Symbols 10 years ago but it was a nightmare. I'm not sure I want to get back this path again
look there should be an easier way to backtest without spreads. I dwelved into Custom Symbols 10 years ago but it was a nightmare. I'm not sure I want to get back this path again
You can simply clone an existing symbol on your broker and then change the symbol characteristics about commissions and spread.
It's exactly how it should be done and it's trivial to do. Working with Custom symbol is very easy nowadays.
Though Jean-François is right, it should be possible to test with 0 spread without custom symbol. There are good reasons to do it (though Fabio, what you said about real environment is also exact). Probably MQ disabled that possibility to make it harder for scammers.
look there should be an easier way to backtest without spreads. I dwelved into Custom Symbols 10 years ago but it was a nightmare. I'm not sure I want to get back this path again
Custom symbols were introduced less than 8 years ago. So not sure what was your nightmare 10 years ago 😉

- 2017.07.19
- MetaQuotes
- www.mql5.com
Custom symbols were introduced less than 8 years ago. So not sure what was your nightmare 10 years ago 😉
haha!!
"You can simply clone an existing symbol on your broker and then change the symbol characteristics about commissions and spread."
no you can't
you need to program everything in detail. Zero spread is "floating"
and the programming : it's like trying to open an order in MT5 without libraries./.. could not do it. that's why I and others still prefer MT4. even if the history data on MT5 rocks. But that's pretty much it all the rest is worse (more complicated and heavy)
AND it's not compatible with MT4. big mistake
look i'll do the custom programming, but I know it will take me a long time.
Rather not
haha!!
"You can simply clone an existing symbol on your broker and then change the symbol characteristics about commissions and spread."
no you can't
you need to program everything in detail. Zero spread is "floating"
and the programming : it's like trying to open an order in MT5 without libraries./.. could not do it. that's why I and others still prefer MT4. even if the history data on MT5 rocks. But that's pretty much it all the rest is worse (more complicated and heavy)
AND it's not compatible with MT4. big mistake
look i'll do the custom programming, but I know it will take me a long time.
Rather not

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
Is there a way to optimize an EA without any fees ? to be able to see if a strat has an edge, regardless of the fees (that skew the results)
I know you can in MT4 (just set zero spread) but I wasn't able to do it in MT5.
thanks Jeff