Hi all,
is it possible to get ohlc values from lower timeframe, e.g., if I am using 60min tf but needs H and L from second bar of 5min timeframe.
I have tried using
but it seems like AB is not capable to extract data from lower timeframe. Am I doing right/any mistake or is there any other way ?
is it possible to get ohlc values from lower timeframe, e.g., if I am using 60min tf but needs H and L from second bar of 5min timeframe.
I have tried using
Code:
T = TimeNum();
TimeFrameSet(in5Minute);
x = ValueWhen(T <= 92000, H, 1); // also tried with 92500
TimeFrameRestore();
TimeFrameExpand(x, in5Minute, expandlast);