QuantNomad

Significant PP - Swing Failure / Stop Run Alerts [QN]

Tried to create a script for Swing Failure / Stop Run patterns. It is based on my QuantNomad - "Significant Pivot Reversal" Indicator.
It's quite tricky to code these kinds of patterns, so it's really not ideal. I alert when a candle cross pivot level but close below (above for bottom) it and previous close was below (above) it as well.
You can setup params for pivot points and also by how much it should cross pivot level with "SF ATR Mult".

I have in mind a few other things I'd like to test:

* Different types of pivot points
* Few recent pivot levels at once
* Pivots from higher timeframe
* Different types of "touching" levels
* etc.

Ideally, I want to create a strategy from it, but I'm far from it for now.

Do you have any ideas on how to make it better?

Original Significant Pivot Reversal Indicator:


My First Live Course: qntly.com/101
Pine Programming v5: qntly.com/pineprog
Adv.Pine Use-Cases: qntly.com/advpine

Hire Me: qntly.com/hirepine
Telegram: qntly.com/tel
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?