Most Recent Occurrence (MRO) returns the numbers of bars back that the condition was true.
If the condition was not true during search back of the previous bars, the function will return a value = -1 = (FALSE).
Syntax: |
---|
MRO( conditionseries, bars, instance ) |
Parameter: |
Description: |
---|---|
conditionseries |
Name of the condition series.
The Condition series should use 1 for TRUE, and 0 for FALSE. |
bars |
The number of bars over which to find the instance of the condition. |
instance |
Which occurrence the condition to search for; for example, 1 = most recent, 2 = 2nd most recent. |
Returns: |
---|
The number of bars ago that the condition was true or -1 if not found. |
Example: |
---|
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Chart Display: |
Links: |
---|
|
See Also: |
---|
|
Edit Time: 9/26/2020 1:26:46 PM |
Topic ID#: 430 |