Returns how many bars have passed since a condition was last true, including the bar on which the condition was true.
- Returns if the condition has never been true so far
- Returns if the condition is true on the current bar
- Returns n if the condition has been false for (n - 1) bars but was true on the bar before that
Accepts the following parameters:
|Parameter Name||Type||Default Value||Notes|
Since is a built-in function - you can use it directly. Below is an example implementation: