Cribbage
Member
I'd like some help with this simple study I made. I'd like to be able to see the range of M30 candles on the M5 time frame. It would also be nice if I could switch between measuring the range of the wicks and the bodies. My Time Frame input doesn't appear to have any effect on the code that I can tell as it still shows the candle range on the timeframe that is selected. Any help is appreciated.
Code:
input Time_Frame = AggregationPeriod.Thirty_Min;
def H = high(period = Time_Frame);
def L = low(period = Time_Frame);
def O = open(period = Time_Frame);
def C = close(period = Time_Frame);
def R = H - L;
plot Range = R;
AddChartBubble(Range, High, Range, Color.LIGHT_GRAY);