Run or Attach automatic a Script after call ChartOpen() in Mql5
neither are necessary
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.
I load many symbols and send quotes and indicator data to database, but I need when I call ChartOpen() command automatic run a script or I need read MqlRates from another window with chartId.
There are someway to do It ?