Returns the number of candlesticks passed since the last true condition.

Syntax:

The occurrence parameter is optional and defaults to 0, it allows to search for the nth time the condition was true.
If no value, it will return the value -1.

Example:

 

Share this