Hi, I am new to mql. Is it possible to summarize the high prices of the last 20 intraday-asia-sessions? I need as the result the compound number. Can somebody show me an code example?
- How can I limit the number of orders per day or per session [MT5]
- How do you find the high/low of a certain period?
- Asia-Europe-US session with rectangle filled from top of the chart and the bottom How?
I can do this only with a hole day like this code:
for(int i = 1; i < 20; i++)
{
double highs = iHigh(Symbol(), PERIOD_D1, i);
double sum = sum+highs;
}
But i need it with intraday highs.
Hans_Meiser:
I can do this only with a hole day like this code:
for(int i = 1; i < 20; i++)
{
double highs = iHigh(Symbol(), PERIOD_D1, i);
double sum = sum+highs;
}
But i need it with intraday highs.
https://www.mql5.com/en/articles/1575 some reading and you can find how to get also the high for a few hours time
Thats a very interesting code, thank you deVries:)
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