Hi everyone,
I wish to implement my EA on several symbols (I wish to create such a scanner so I would like to avoid open multiple charts) and I have a doubt.
If I create an array with those symbols (e.g. string symbols["AAPL","MMM",...]) and in the OnTick() function I set a for loop, like:
The special array Volume (but like all others, Close, High, Low, ...) are automatically set on that symbol or I have to set another option to "select" each symbol and get correspondent data?
Thank you very much!
- MQL5: Run Multiple Expert (with different MAGIC NUMBER) on same Symbol
- Question about Ontick() function
- Is it possible to get past prices of other symbols?
Volume like all other predefined variables only refer to the current chart's pair and timeframe.
leourb_:
You have to use iVolume().
Hi everyone,
I wish to implement my EA on several symbols (I wish to create such a scanner so I would like to avoid open multiple charts) and I have a doubt.
If I create an array with those symbols (e.g. string symbols["AAPL","MMM",...]) and in the OnTick() function I set a for loop, like:
The special array Volume (but like all others, Close, High, Low, ...) are automatically set on that symbol or I have to set another option to "select" each symbol and get correspondent data?
Thank you very much!
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