OPEN-SOURCE SCRIPT

Supertrend with Multiple EMA by KanzuBae

Features:
ATR (Average True Range) Settings:

Allows the user to adjust the ATR period and multiplier for the Supertrend calculation.
Offers an option to choose between the standard ATR or a simple moving average (SMA) for ATR calculation.
Source Price:

Users can select from four different EMAs (EMA1, EMA2, EMA3, EMA4) or use the default HL2 (average of high and low) as the source price for calculating the Supertrend.
The EMAs are calculated with adjustable periods.
Supertrend Calculation:

The Supertrend is calculated using the selected source price and ATR values. The trend direction is determined based on whether the closing price is above or below the Supertrend lines.
Trend Plotting:

The script plots the Supertrend lines: green for an uptrend and red for a downtrend. These lines are updated based on trend reversals.
Buy/Sell Signals:

The script generates buy and sell signals based on trend reversals (when the trend changes from up to down or vice versa).
Buy and sell signals are marked on the chart using shapes and labels.
Background Highlighting:

The background is highlighted in green for an uptrend and red for a downtrend. This can be turned on or off using the highlighting option.
EMA Lines:

The selected EMAs (EMA1, EMA2, EMA3, EMA4) are plotted on the chart for reference.
Alerts:

Alerts are triggered when a buy or sell signal occurs or when the trend direction changes.
Customization:
You can adjust the ATR period, multiplier, and EMA periods.
You can enable or disable the display of buy/sell signals and background highlighting.
The script allows for flexibility in choosing which EMA to use for the source price.
This script provides a versatile Supertrend indicator with multiple EMA options and various customization choices for traders who want more control over their strategy.
buysellsignalemacrossovermoving_averageMoving AveragesPrice Volume Trend (PVT)supertrendTrend Analysis

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항