this is an example
// OnBarUpdate method
protected override void OnBarUpdate()
{
// Evaluates if we have 3 consecutive higher closes
double value = NBarsUp(3, true, true, true)[0];
if (value == 1)
Print("We have three consecutive higher closes");
}
I would like the counter to reset after the initial detection 123.
I genuinely appreciate the time you dedicate to helping us.

Comment