Summarizing the High Price of the Asia Session

 
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?
 

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:)