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
Hello everyone,
I'm trying to code a very basic EA but I'm having trouble getting the function to work that checks the spread.
I have tried calculating it manually as the code is now.
I have tried calculating it with the MarketInfo(Symbol(), MODE_SPREAD) function.
I have tried calculating it with the SymbolInfoInteger(Symbol(), SYMBOL_SPREAD) function.
Sometimes I can get the EA to trade but it doesn't stop trading when I change the MaxSpread to a very low value.
Or I can get the EA not to trade, but it won't trade when I change the MaxSpread to a very high value.
Any help is appreciated!
Thank you,