how do I highlight (bgcolor) 9 am utc-4 every day in the chart's history?
Posted: Thu Apr 28, 2022 10:31 pm
Thanks
A home for the best Pine Script coders on the internet!
https://pinescripters.net/
Code: Select all
// © processingclouds
// processingclouds For bugs, and to show your support you can contact me anytime here and @gmail
//@version=5
indicator("Highlight 9 am", overlay = true)
isBackColor = not na(time(timeframe.period, "0900-1000"))
bgcolor(isBackColor ? color.green : na)