TradingView
haribotagada
Oct 25, 2023 4:42 AM

Get start of previous day on any timeframe 

S&P 500SP

描述

Useful on pine scripts which need to identify the start of the previous trading day i.e. from the perspective of today's date - not the previous day on each bar calculation.

Works on any timeframe - which is the whole point as on a daily chart you can simply do time[1].
更多