Hi,
I was wondering if anyone has come across a way to color code the e.g. 1h bar based on the e.g. average close price of the 1 min bars within it. For example let's say that, for the specific case above (1h chart), one defines
input length = 60;
def x = average(log(close/close[1]), length);
declare lower;
Plot y = if x > 0 then 1 else 0;
Something like this would work if I were to plot it on a 1 min indicator chart. What should I do if I actually intended to average the 60 close prices that fit within a 1 h bar and then plot it in a 1 h timeframe. This is sort of the opposite of displaying a higher time-frame on a lower time-frame chart.
I appreciate any help,
Thank you.
I was wondering if anyone has come across a way to color code the e.g. 1h bar based on the e.g. average close price of the 1 min bars within it. For example let's say that, for the specific case above (1h chart), one defines
input length = 60;
def x = average(log(close/close[1]), length);
declare lower;
Plot y = if x > 0 then 1 else 0;
Something like this would work if I were to plot it on a 1 min indicator chart. What should I do if I actually intended to average the 60 close prices that fit within a 1 h bar and then plot it in a 1 h timeframe. This is sort of the opposite of displaying a higher time-frame on a lower time-frame chart.
I appreciate any help,
Thank you.