What symbol are you trading on?
Please use polite language when posting. I have edited out your expletive.
Keith Watford:
thank you, i'm trading on multiple symbols.. they all have the same problem
What symbol are you trading on?
Please use polite language when posting. I have edited out your expletive.
Does your EA trade multiple symbols from the same chart?
e.g. the EA gets added to a EURUSD chart, but can take trades on other pairs
bagostra: i'm trading on multiple symbols.. they all have the same problem
| But honest_knave: Does your EA trade multiple symbols from the same chart? e.g. the EA gets added to a EURUSD chart, but can take trades on other pairs Multiple symbols from the same chart is different (#2) than trading one pair per chart (#1) |
- Using OrdersTotal directly and/or no Magic number filtering on your OrderSelect loop means your code is incompatible with every EA (including itself on other charts and manual trading.) Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 forum
- This is why I recommendDo not trade multiple currencies in one EA
- You can't use any predefined variables,
can't use the tester, must poll
(not OnTick,) and usually other problems, e.g A problem with
iBarShift - MQL4 and MetaTrader 4 - MQL4 programming forum - Page
2
- Code it to trade the chart pair only. Look at the others if you must. (Don't assume that Time[i] == iTime(otherPair,tf, i) always use iBarShift.)
- Then put it on other charts to trade the other pairs. Done.
- You can't use any predefined variables,
can't use the tester, must poll
(not OnTick,) and usually other problems, e.g A problem with
iBarShift - MQL4 and MetaTrader 4 - MQL4 programming forum - Page
2
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
extern double MaxSpreadAllowed = 2;
double Spread;
Spread = (Ask-Bid)*10000;
if(Spread <= MaxSpreadAllowed) {
my broker ***** me here by adding weird shorts during market closing & opening at 10 pips spread.
i have also tried using this:
Spread = MarketInfo(Symbol(),MODE_SPREAD);
and this:
Spread = SymbolInfoInteger(NULL,SYMBOL_SPREAD)
i've also tried using the marketinfo directly in the IF statement.
i'm not sure what i'm doing wrong here. i tried all the spread protection methods i could find with google.