PINE LIBRARY

lib_session_gaps

Library "lib_session_gaps"
simple lib to calculate the gaps between sessions

time_gap()
  calculates the time gap between this and previous session (in case of irregular end of previous session, considering extended sessions)
  Returns: the time gap between this and previous session in ms (time - time_close[1])

bar_gap()
  calculates the bars missing between this and previous session (in case of irregular end of previous session, considering extended sessions)
  Returns: the bars virtually missing between this and previous session (time gap / bar size in ms)
detectiongapgapssessionsessionstimesessions

Pine腳本庫

在真正的TradingView精神中,作者將這段Pine程式碼發佈為開源程式庫,以便我們社群的其他Pine程式設計師可以重複使用它。請向作者致敬!您可以私下使用這個函式庫,或在其他開源出版品中使用,但在出版物中再次使用這段程式碼將受到網站規則的約束。

免責聲明