SparkyFlary

Heiken Ashi Pivot Breakout Trailing Stop

SparkyFlary Updated   
This is a heiken ashi pivot based trailing stop for breakout entries and exits. It's possibly related to the Swing Index System by Welles Wilder or an alternative to it that I came up with, in case determining the swings on the Accumulative Swing Index is too much of a burden. It is believed that the ASI uses the calculation of heiken ashi in its formula. This does not use the ASI as a bottom indicator in the chart but instead uses the heiken ashi bars on the top of the chart to objectively find the swing pivots . These swings pivots act as support and resistance and can be used to confirm the start of a breakout or the end of one.

Suppose you find a chart pattern or setup, such as divergence or a pennant in the RSI , a pattern on the ASI, and/or on the chart, or the end of an elliot wave , etc and want to confirm a strong breakout and ride it to the end. Many trailing stops won't be able to confirm the beginning or would last too long or not long enough to exit out of one. On an uptrend, when the price breaks below the last swing low pivot , it can confirm the end of the breakout. On a downtrend, when the price breaks above the last swing high pivot , it can confirm the end of the breakout.

This trailing stop is not meant to replace trend following ones. The swing pivots can vary yet the price can still continue at an uptrend whereas this heiken ashi pivot based trailing stop exits as soon as it goes above or below the last resistance point. These swing points can end up being too close for trend following but can work well for breakout trading. The bigger the chart pattern or breakout, the more reliable the exit signal will be in my opinion. This is an experimental idea that I came up with from trying to interpret the ASI.
Release Notes:
-fixed alerts
-The chart (if still available) includes an illustration of how a breakout trade might take place and how the trailing stop can help confirm an entry and exit.
Release Notes:
changed chart, other one had too many indicators
Release Notes:
fixed a slight error where the trailing stop would end up as zero in es futures for some reason
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?