maybe this will help,
https://usethinkscript.com/threads/help-with-relative-range.10482/#post-92839
show 3 colored columns, after the last bar, that represent the price ranges of 3 time periods, day, week, month.
Thank you, I have tried this yesterday. This is not what I was looking for.
I used so far the following codes; but love to have this on a daily chart for let say last 200 days. Now I only can see through the labels of just one day.
High to low:
def Highday = Highest(highday, 1) ;
plot percentage = Round((Low / High - 1) * 100);
AddLabel(yes, "Last: " +Low +" | High: " +High +" | %: " +percentage, color.orange);plot Data = close;
Off the low to close:
def lowest = lowest(low, 1) ;
plot percentage = Round((close / low - 1) * 100);
AddLabel(yes, "Last: " +close +" | Low: " +low +" | %: " +percentage, color.pink);plot Data = close;
High of the day to close:
def Highday = Highest(highday, 1) ;
plot percentage = Round((close / High - 1) * 100);
AddLabel(yes, "Last: " +close +" | High: " +High +" | %: " +percentage, color.blue);plot Data = close;
Love to work on these labels:
- Open to high
- Open to low
- Close to high
- Close to low
on the 3min chart, would like to get the high/low/close of the current trading day up to the bar the cursor pointing to, instead of getting the high/low/close of the current day up to the last bar? so, if starting from certain bar, the price goes up, then the high of day of the last bar is higher than the starting bar's high of day. thx
I made the above, as I could not find this myself. Someone made this code a little different and I changed to do the following. I hope this may work for you. This code changes with the timeframe, you can use it for any timeframe.