I am searching the forum, but I can not find any Ninjascript development
relative article or any help about this.
I want to return the << BARS since the Nth most recent time
that something happened >>.
For example, I want to get "the number of BARS that have passed",
since the LAST time (the 1st most recent time ago),
that the CLOSE was greater than the OPEN.
So, at the specific example,
If we had 4 red bars in a row (including the currentbar),
that Close was less than the Open...,
I want today my "Bars since" indicator, or my "Bars since" variable,
to return the value of 4.
How can I do it ? What expressions should I use to succeed on that ?
Is also possible to calculate the Nth (where N>1) most recent time...., that THIS happened ???
For example not the 1st most recent, but the 2nd time ago
that my required expression (Close>Open) was true.
Please help if anyone got the answer, or a reference link.
Thanx.
Comment