Spread control

 

Hi. I am look for the EURUSD and the spread (Ask-Bid) is always 5 pips when I run the script. Can I use the real spread be, or defined it ? Thanks.

 

first you can use MarketInfo(Symbol(), MODE_SPREAD) (no need to use Ask - Bid)

second it depends on your broker

 
qjol:

first you can use MarketInfo(Symbol(), MODE_SPREAD) (no need to use Ask - Bid)

second it depends on your broker


Your comment worked well. Thanks.
Reason: