MT5 backtesting spread

 

Hello, 

How can I set fixed spreads in MT5 backtesting ? It's always floating?

Thank you.

 
jojocash:

Hello, 

How can I set fixed spreads in MT5 backtesting ? It's always floating?

Thank you.

Historical data are used you can't change it.

Maybe it's doable with new feature to import custom data, but I didn't check yet.

 
Alain Verleyen:

Historical data are used you can't change it.

Maybe it's doable with new feature to import custom data, but I didn't check yet.


Thank you.

 
jojocash:

Thank you.


  • Create a custom symbol
  • Export to a .csv original symbol data (Bars)
  • Edit the spread (excel +++) to the fixed one (if it's floating, choose a spread higher than the average one)
  • Reimport the datas from the file to the custom symbol created previously : it simulates a MT4 test.

 
It would be nice to be able to set this manually - I am trading binary options so a spread is not relevant.
 
Alain Verleyen #:

Historical data are used you can't change it.

Maybe it's doable with new feature to import custom data, but I didn't check yet.

Here are what I did:

1. Made a whole new custom symbol which was modified spread from floating into a fixed number.

2. Downloaded tick and M1 timeframe data from Tickstory.

3. Opened M1_bar file (in *.csv ) and manually edited 'spread' colume of over 5 million of rows to a fixed number.

4.  Loaded tick and M1 bar file  (after changing spread) into custom symbol which was created in 1st step.

And spread was still floating during backtest. Is there any ways else to fix this issue?