Max spread for EA

Back to topics list To post a new topic, please log in or register
avatar
19
sammiawan999 2016.07.19 23:20
 
I want my EA to enter trades only when spread is below 2 pips. What parameter i should use?
avatar
2017
gooly 2016.07.20 07:54 #
 
Ask-Bid or read about MarketInfo(,MODE_SPREAD)
avatar
735
honest_knave 2016.07.20 12:52 #
 
int maxspread = 20; // maximum spread in POINTS

if(SymbolInfoInteger(NULL,SYMBOL_SPREAD) <= maxspread && ...
Back to topics list  

To add comments, please log in or register