Is it possible to have a label showing the high and low price along with the difference of the first bar within the timeframe that it is? i would want to add this on my chart on the upper left corner. i have the below script as an example, but this looks for the previous bar. I want something similar but to display first bar of the day regardless what time of the day.
# dummy label
AddLabel(1," ",color.black);
AddLabel(1," ",color.black);
AddLabel(1," ",color.black);
AddLabel(1,"High: " + High[1],color.white);
AddLabel(1,"Low: " + Low[1], color.white);
AddLabel(1,"High - Low: " + (High[1] - Low[1]),color.green);
# dummy label
AddLabel(1," ",color.black);
AddLabel(1," ",color.black);
AddLabel(1," ",color.black);
AddLabel(1,"High: " + High[1],color.white);
AddLabel(1,"Low: " + Low[1], color.white);
AddLabel(1,"High - Low: " + (High[1] - Low[1]),color.green);