- How to code?
- Why?
- Limit to one order per candle and max orders allowed... Not working!
- You can't use any {MT4: predefined variables, MT5: 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 must handle History {MT4: 4066/4073 errors: Download history in MQL4 EA - MQL4 and MetaTrader 4 - 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.)
- Then put it on other charts to trade the other pairs. Done.
I didn't say it wasn't. It just overly complicates the code, with the reasons given.
Why write unnecessary code? Put it on multiple symbols to trade multiple symbols.
I didn't say it wasn't. It just overly complicates the code, with the reasons given.
Why write unnecessary code? Put it on multiple symbols to trade multiple symbols.
I didn't say that you said it wasn't but it was related to this:
Do not trade multiple currencies in one EA.
I Have been doing this for many many years and i would not even consider to code single instrument robots.
It brings many advantages, one robot that scans all instruments is so much different from (primitive) single instrument robots.
I certainly wouldn't call it unnecessary, rather a bitter necessity.
And i don't think you can escape it at some point, especially when you want to do comparisons between instruments, which is a lot easier in just the one robot.
So i don't know what to make of it really, i do not see any advantage, i do see many drawbacks however.
Marco vd Heijden:
I Have been doing this for many many years and i would not even consider to code single instrument robots.
It brings many advantages, one robot that scans all instruments is so much different from (primitive) single instrument robots.
And i don't think you can escape it at some point, especially when you want to do comparisons between instruments, which is a lot easier in just the one robot.
So i don't know what to make of it really, i do not see any advantage, i do see many drawbacks however.
- To each his own.
- Scanning is not trading. Your scanning code is the same in a single pair robot or a multiple pair robot.
- Each approach is "one robot" There is no difference there.
- There are no drawbacks for a single pair. There are for a multi, as I previously posted.
No, you are wrong.
No matter how much points you 12345678890
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use