new york
Experience: None
Platform: SierraChart
Posts: 77 since Dec 2010
Thanks Given: 4
Thanks Received: 44
|
Hi, Is there an Easylanguage equivalent functions for Ninjatrader MRO and LRO (Most and Least Recent Occurrence) functions ? description of these functions is below. thanks in advance for your help
Definition
Returns the number of bars ago that the test condition evaluated to true within the specified look back period expressed in bars. It checks from the current bar works away (back) from it. This method will NOT work on multi-instrument or multi-time frame strategies.
Method Return Value
An int value representing the number of bars ago. Returns a value of -1 if the specified test condition did not evaluate to true within the look back period.
Syntax
MRO(Condition condition, int instance, int lookBackPeriod)
The syntax for condition must be written in the following manner:
delegate { return your true/false condition;}
|