is there a way to control if a graf has already fired a signal as to no repeat the same signal.
I have a cross over arrow that I would like to only show a signal the first time it crosses up or down.
Problem is that it some times it touches the line and fires the up/down signal again.
This is the code:
How could I control 2 up arrow or 2 down arrows don't fire one right after the other? And just the first one shows.
Thanks.
I have a cross over arrow that I would like to only show a signal the first time it crosses up or down.
Problem is that it some times it touches the line and fires the up/down signal again.
This is the code:
Code:
plot ArrowUp = if low crosses above graf
then low
else double.nan;
ArrowUP.SetPaintingStrategy(PaintingStrategy.Arrow_UP);
ArrowUP.SetLineWeight(3);
ArrowUP.SetDefaultColor(Color.Green);
plot ArrowDN = if high crosses below graf
then high
else double.nan;
ArrowDN.SetPaintingStrategy(PaintingStrategy.Arrow_DOWN);
ArrowDN.SetLineWeight(3);
ArrowDN.SetDefaultColor(Color.Red);
How could I control 2 up arrow or 2 down arrows don't fire one right after the other? And just the first one shows.
Thanks.