OPEN-SOURCE SCRIPT

MohdTZ - XO Trend Scanner/EMA/ATR/Supertrend/Watermark

186
Apply the Script:
Copy the code into TradingView’s Pine Script editor.

Save and add the indicator to your chart.

Verify Supertrend:
Look for a line that switches between green (uptrend) and red (downtrend) based on price movement relative to the Supertrend level.

It should appear alongside the 200 EMA, Slow EMA, ATR band fill, and trend scanner EMAs.

Customize Settings:
Adjust supertrend_length and supertrend_multiplier in the indicator settings to fine-tune sensitivity.

Change supertrend_color_up, supertrend_color_down, or supertrend_linewidth for visual preferences.

Modify atr_band_color if you want a different fill color for the ATR bands.

Check for Clutter:
The chart now includes multiple overlays (200 EMA, Slow EMA, ATR bands, Supertrend, Fast/Slow EMAs). If it’s too crowded, toggle i_bothEMAs to false to show only the Consolidated EMA, or adjust line widths/transparency.

Why Supertrend Wasn’t Visible Before
The original scripts didn’t include Supertrend calculations or plotting.

If you were expecting Supertrend from another indicator or script, it’s possible another indicator was disabled or not applied. This script now explicitly includes Supertrend.

Additional Notes
Chart Appearance: The Supertrend line will plot above or below the price, changing color based on trend direction. Ensure it’s visible by checking the chart’s scale and that no other indicators are overlapping.

Conflicts: If you don’t see the Supertrend, verify that no other indicators are hiding it (e.g., due to overlapping colors or chart scaling). You can disable other indicators temporarily to confirm.

Further Customization: If you want Supertrend to interact with other components (e.g., combine with EMA signals, adjust bar coloring based on Supertrend), let me know, and I can add that logic.

Debugging: If the Supertrend doesn’t appear, check the TradingView console for errors, or share a screenshot/description of your chart setup.

If you meant a specific Supertrend implementation (e.g., with unique parameters or additional features) or if you’re referring to a different issue (e.g., a specific Supertrend script you expected), please provide more details, and I’ll refine the solution. Let me know if you need help applying this or visualizing the result!

learn Supertrend parameters

Bollinger Bands

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.