
- www.mql5.com
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- How to code?
- Market: no trading operations
-
Perhaps you should read the manual. Point is the current chart's symbol. Get the value for the currency you want.
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up. -
I recommend: Do not trade multiple currencies in one EA.
-
You can't use any {MT4: predefined variables, MT5: predefined variables,}
-
Must poll (not OnTick, unless you use specific indicators)
The Implementation of a Multi-currency Mode in MetaTrader 5 - MQL5 Articles (2011) -
and usually other problems, e.g. A problem with iBarShift - MQL4 programming forum - Page 2
-
You must handle History {MT4:4066/4073 errors: Download history in MQL4 EA - MQL4 programming forum, MT5: Timeseries and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5.}
-
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.
-
-
Perhaps you should read the manual. Point is the current chart's symbol. Get the value for the currency you want.
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up. -
I recommend: Do not trade multiple currencies in one EA.
-
You can't use any {MT4: predefined variables, MT5: predefined variables,}
-
Must poll (not OnTick, unless you use specific indicators)
The Implementation of a Multi-currency Mode in MetaTrader 5 - MQL5 Articles (2011) -
and usually other problems, e.g. A problem with iBarShift - MQL4 programming forum - Page 2
-
You must handle History {MT4:4066/4073 errors: Download history in MQL4 EA - MQL4 programming forum, MT5: Timeseries and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5.}
-
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.
-
hi William, this EA is on mt5, I'm using mql4 OLS library on mql5 so I can implement my code easily but I don't know how this thread got into this section maybe a mistake.
i tested this EA on EURUSD/EURGBP which is 5 digit currency it work fine and both trade normally but when I switched to different currency that is 3 digits EURUSD/USDJPY
the EURUSD works fine but the USDJPY keeps placing wrong STOPLOSS level. i tried changing some commands and reading both mql4 and mql5 reference to find what really
cause the problem but i still don't know. thanks for the reply earlier

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use