OPEN-SOURCE SCRIPT

Orion:Supertrend Hybrid

Supertrend Hybrid

This indicator is a combination of the Supertrend and Donchian Channels.

The original Supertrend indicator shades the area from the mean (hl2) of the bar/candle to the Supertrend line.

This Hybrid uses the mid section of the Donchian channel to the Supertrend line as the area to be shaded.

This provides a visual of when prices are getting close to potentially reversing the trend.

Values:
Length = Length of the Donchian Channels (Default: 12)
ATR Length = Lookback length of the ATR calculation (Default: 10)
Factor = Multiply the ATR by this value to get a trend reversal value (Default: 3.0)

Prices cross above the red line indicating a bullish trend is in play
Prices cross below the green line indicating a bearish trend is in play

Yellow line represents the mid-section of the Donchian Channel.

Suggested usage:

Add a Stochastic and set the Stochastic %K Length to the same value as the Donchian Length.
When below trend (red line dominate) and prices cross into the shaded area, if stochastic crosses above 70, prices may challenge/cross the red trend line.
When above trend (green line dominate) and prices cross into the shaded area, if stochastic crosses below 30, prices may challenge/cross the green trend line.

IF in an up trend (green line dominate) and stochastic crosses/remains above 70, potential higher price movement exists.
IF in an down trend (red line dominate) and stochastic crosses/remains below 30, potential lower price movement exists.
Cyclessupertrend

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?


更多:

免責聲明