if (Bars.FirstBarOfSession && FirstTickOfBar)
doesn't work for Renko bars and some other custom bar types similar to renko I tested so far (it seems like it works on minute bars but needs some further testing).
Please take a look at the attached screenshot and test strategy which should draw vertical line when new session starts (but it doesn't always draw it)

Comment