Finding the current Session High

 

Hi. I'm trying to find the Highest High since the open of the current session (whether Asian, London, New York) in MT4. Should be easy enough. The only problem is I'm trying to find the value over a range of currencies each to be displayed in a separate window: e.g.

GBPEUR 38

GBPCHF 10

GBPEUR 20

High[] coupled with iHighest() works for the current chart:

double cur_session_high=High;

where curr_symbol = the symbol under consideration

shift = bar relative to the current bar

however I cannot seem to get the values for pairs outside of the current chart. Is this possible? Many thanks for your help.

Cheers

 

Hi, kvhutch,

If you want to retrieve high price from other symbols or time frames.

You may use the iHigh() function.

double cur_session_high=High;

To

other_session_high = iHigh(symbol, Timeframe, iHighest(curr_symbol,0,MODE_HIGH,shift,0));

Hope this help

 

Many many thanks kolier for your quick response. I'll give that a try.

Cheers