OPEN-SOURCE SCRIPT

HOWTO: Skip consecutive signals

10 379
This code snippet is an answer to IagoLemos getsatisfaction.com/tradingview/topics/pine-script-how-to-ignore-same-event-happening-twice-in-a-row
Written in hope that it would be helpful.
It shows how to skip duplicating signals.
Cheers!

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.