Don't use ArrayCopyRates which is broken in build 840 (service desk notified.)
You'll need to use the functions and not the predefined variables.
Easier is to use an range of magic numbers and just put it on multiple charts.
Don't use ArrayCopyRates which is broken in build 840 (service desk notified.)
You'll need to use the functions and not the predefined variables.
Easier is to use an range of magic numbers and just put it on multiple charts.
So if I'm understanding correctly, if I put an EA together, I can create 6 charts and set the parameters I need using the Chart Operators functions and process data in the EA referencing each of the six charts?
Sounds too easy!
What am I missing?
Thank you for the heads up on the ArrayCopyRates function!
CipherPips!
I'm new to MQL4, although I have several years of classical programming experience.
I have a profile with multiple charts - due to 1M, 1W, 1D, 4H, 1H and 15M periodicity requirements of the data for the indicators on each chart.
My desire is to create one EA that will receive and/or process data from all 6 charts and create Alerts to certain conditions.
Where do I begin?
You can retrieve the data from the charts directly (without having the charts opened), with different period parameters in iCustom or other function calls.
For example:
double fMA = iMA(Symbol(), PERIOD_H1, 10, 0, MODE_EMA, PRICE_CLOSE, shift); double fMA = iMA(Symbol(), PERIOD_M15, 10, 0, MODE_EMA, PRICE_CLOSE, shift);
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I'm new to MQL4, although I have several years of classical programming experience.
I have a profile with multiple charts - due to 1M, 1W, 1D, 4H, 1H and 15M periodicity requirements of the data for the indicators on each chart.
My desire is to create one EA that will receive and/or process data from all 6 charts and create Alerts to certain conditions.
Where do I begin?