Find High of first 15min candle

#1
Hello Everyone,

I want to find high of the first 15 min candle.

I am using the below code.

bi = BarIndex();
arrayitem = SelectedValue(bi) -bi[0];
firstbarHigh = High[arrayitem ];


This code is giving me the close price for the 1st candle. I want High price of the first 15min candle.

Plz help me.
 

asnavale

Well-Known Member
#2
Hello Everyone,

I want to find high of the first 15 min candle.

I am using the below code.

bi = BarIndex();
arrayitem = SelectedValue(bi) -bi[0];
firstbarHigh = High[arrayitem ];


This code is giving me the close price for the 1st candle. I want High price of the first 15min candle.

Plz help me.
********************


Use the following code:

To get High of first 15 min candle:
H15 = ValueWhen(Day() != Ref(Day(), -1), TimeFrameGetPrice("H", in15Minute), 1);

To get Low of first 15 min candle:
L15 = ValueWhen(Day() != Ref(Day(), -1), TimeFrameGetPrice("L", in15Minute), 1);


-Anant
 
#3
********************


Use the following code:

To get High of first 15 min candle:
H15 = ValueWhen(Day() != Ref(Day(), -1), TimeFrameGetPrice("H", in15Minute), 1);

To get Low of first 15 min candle:
L15 = ValueWhen(Day() != Ref(Day(), -1), TimeFrameGetPrice("L", in15Minute), 1);


-Anant
Thanks