Josh Calow
Josh Calow

Reputation: 15

How to use barssince function since specific time

Is there a way I can use the barssince function to return the number of bars since a specific time occurring each day?

Upvotes: 1

Views: 1201

Answers (1)

Eduardo
Eduardo

Reputation: 177

Yes you can. enter image description here

Code:

//@version=4
study("Time test")
specificTime = hour == 14 and minute == 0
plot(barssince(specificTime))

Upvotes: 1

Related Questions