Hi,
Does anyone know of a function or a couple of lines of codes which returns the number of bars since a certain condition was true?
Something like this:
bool a = EMA1>EMA2
int c=barssince(a)
I have been searching on the web but can't find any good answer.
Thanks a lot,
Krossaren
Does anyone know of a function or a couple of lines of codes which returns the number of bars since a certain condition was true?
Something like this:
bool a = EMA1>EMA2
int c=barssince(a)
I have been searching on the web but can't find any good answer.
Thanks a lot,
Krossaren