-
Play videoPlease edit your post.
For large amounts of code, attach it - Do 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.
- Not a good idea to use comments, brokers can change comments, including complete replacement.
- Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 forum
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
I am new of coding , this is good in the backtest to get the lots of buy / sell . but if i use it in demo account ,orders from other currencies will calculate into "dl" and "kl" , so i will have a wrong result , because i want ea to know to put it into individual dl / kl ( as a buy lot/sell lot)
how can I do it. ? hope someone can help .