Is there a way to break a serial condition when the first one is met?
For example, I am in a trend. I have the following condition:
if(Open[0] < Close[0] && Open[1] < Close[1])
{ DrawArrow()}
In this case I need only the firt arrow.
Is there a way to ignore the subsequent arrows after the first one is drawn in the condition?
I have attached a picture with arrows (blue and Maganta) illustrating the succession of arrows meeting the condition. However, I want only the first arraw in ecah direction.
What can I add to the condition to ignore the subsequent arrows?
Many thanks

Comment