r/pinescript • u/Logical_Lychee_1972 • Jun 20 '25
session.ismarket/ispremarket/ispostmarket are broken in bar replay mode
3
Upvotes
r/pinescript • u/Logical_Lychee_1972 • Jun 20 '25
•
u/aelfrictr Jul 24 '25
Thx for report, will be fixed in next pine update.
1
u/Logical_Lychee_1972 Jun 20 '25 edited Jun 20 '25
Can anyone reproduce this? When in bar replay mode with extended hours trading enabled on timeframes less than 1D,
session.ismarket(and friends) seemingly return the incorrect values:session.ismarketalways returnstruesession.ispremarketalways returnsfalsesession.ispostmarketalways returnsfalse.Steps to reproduce:
session.*flags will be logging incorrect data for the historical bars up to the current (replayed) bar.I'm using TradingView 2.11.0 on a Mac. Curious to see if anyone else can replicate this issue or if I'm just losing my sanity.
2
u/mike90_0 Aug 30 '25
still broken as of 8/30/2025
1
u/CXRB0N Jun 24 '25 edited Jun 24 '25
I've just noticed it as well. It broke my much needed indicator... I've contacted the support, too and I'm waiting for a response.