OPEN-SOURCE SCRIPT
SuperTrend LONG Only (1H) + Filtros EMA/ADX + Alertas

SuperTrend Long Only (1H) with EMA & ADX Filters
Description
Overview
This indicator is a Long-Only SuperTrend system designed for the 1-hour timeframe.
It generates long entry and exit signals based on SuperTrend direction flips, with optional EMA and ADX filters to reduce market noise and improve signal quality.
The script is built strictly as an indicator (not a strategy) and is intended for discretionary or alert-based trading.
🔹 How It Works
Long Entry Condition
SuperTrend flips from bearish to bullish
(direction == -1 AND direction[1] == 1)
Optional filters (user selectable):
Price above EMA
ADX above minimum threshold
Both EMA + ADX
Or no filter
Long Exit Condition
SuperTrend flips back to bearish
Optional: Exit if price closes below EMA (when EMA filter is active)
All signals are confirmed only on closed candles.
🔹 Features
SuperTrend plotted on chart (Green = Bullish / Red = Bearish)
Clear LONG entry labels below candles
EXIT labels above candles
Optional EMA trend filter
Optional ADX strength filter
Built-in alert conditions
Clean, minimal visual design
🔹 Alert Messages
Alerts include:
Ticker
Timeframe
Signal type (Entry / Exit)
Example:
[BTCUSDT 60] LONG ENTRY — SuperTrend flip to BULL
⚙ Recommended Timeframe
Optimized for 1H charts, but can be used on other timeframes.
Important
This tool does not guarantee profitability and should be used alongside proper risk management.
Description
Overview
This indicator is a Long-Only SuperTrend system designed for the 1-hour timeframe.
It generates long entry and exit signals based on SuperTrend direction flips, with optional EMA and ADX filters to reduce market noise and improve signal quality.
The script is built strictly as an indicator (not a strategy) and is intended for discretionary or alert-based trading.
🔹 How It Works
Long Entry Condition
SuperTrend flips from bearish to bullish
(direction == -1 AND direction[1] == 1)
Optional filters (user selectable):
Price above EMA
ADX above minimum threshold
Both EMA + ADX
Or no filter
Long Exit Condition
SuperTrend flips back to bearish
Optional: Exit if price closes below EMA (when EMA filter is active)
All signals are confirmed only on closed candles.
🔹 Features
SuperTrend plotted on chart (Green = Bullish / Red = Bearish)
Clear LONG entry labels below candles
EXIT labels above candles
Optional EMA trend filter
Optional ADX strength filter
Built-in alert conditions
Clean, minimal visual design
🔹 Alert Messages
Alerts include:
Ticker
Timeframe
Signal type (Entry / Exit)
Example:
[BTCUSDT 60] LONG ENTRY — SuperTrend flip to BULL
⚙ Recommended Timeframe
Optimized for 1H charts, but can be used on other timeframes.
Important
This tool does not guarantee profitability and should be used alongside proper risk management.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.