Can you help me fine tune my EA?

 

Expert Coders,

I have a breakout EA. I need your help so It won't place order when the spread is higher than predefined value..Say  if spread it higher than 1.2 pips, it must not place any order.


Thank you in advance.

Files:
LKHLKH.mq5  8 kb
 
where is your try? if you code this ea it should no problem to insert this
 

if you wrote the code your asking help with you can use this :

 input double SpreadValue            =  50;  
 
  if(CurrentSpread<=SpreadValue)
  long CurrentSpread
  CurrentSpread= SymbolInfoInteger(_Symbol,SYMBOL_SPREAD);
Reason: