Download MetaTrader 5
To add comments, please log in or register
One billion tasks have already been executed with MQL5 Cloud Network. Test trading robots even faster!
gangsta1
1117
gangsta1 2014.10.16 22:31 
Is this possible in mt4?
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.10.17 01:48  
Of course. It is just logic & conditions.
gangsta1
1117
gangsta1 2014.10.17 09:39  
Even with back testing? Could you please explain how one would go about coding the EA to use a different entry/exit spread rather than the spread set in the strategy tester?
SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.10.17 09:52  
Do you know how to get spread? If you know, just put some condition to fulfill.
Alain Verleyen
Moderator
29592
Alain Verleyen 2014.10.17 11:46  
deysmacro:
Of course. It is just logic & conditions.
Spread is fixed with the Strategy Tester.
Alain Verleyen
Moderator
29592
Alain Verleyen 2014.10.17 11:49  
gangsta1:
Even with back testing? Could you please explain how one would go about coding the EA to use a different entry/exit spread rather than the spread set in the strategy tester?

It's possible if you manage the spread, bid and ask price inside your EA. You have to monitor your trades and close it yourself, not by sl/tp.

MT5 have varying spread as it's saved in history data (1 value by minutes data).

honest_knave
1338
honest_knave 2014.10.17 12:13  

Tickstory allows you to import tick data into MT4 for use with the strategy tester.

You can specify the spread you want to be applied to that tick data, but it will be constant throughout that tick data.

For example, while strategy tester may want to apply the last known spread of 30 points, you can download tick data with a spread of 20 points and run your backtests on that. 

/
To add comments, please log in or register