Try changing int spread to double spread
Check that the spread values match those in the symbol window. Select spread option in the symbol window if it's not visible.
I had the same problem when using SymbolInfoInteger function to get the spread vlaue. Use iSpread function instead

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
I'm trying to make my spread filter work again, as it was working perfectly before and now it isn't and for the life of me I can't figure out why.
In my trading routine I check for low spreads :
now as I said it was working fine.
now I can't make it work. if I set maxSpread to 100 it opens all orders; but If I set it to 1 it stops opening orders
1 should be plenty enough on an IC Market demo account
I even print out the values in my routine :
and output should work :
but it doesn't. it's a simple "<=" that doesn't work. I don't understand
EDIT : i think I have a problem somewhere else. because If I bypass my other checks(), the spread is not an issue anymore
sorry about that guys, I was too hasty to seek for help