OPEN-SOURCE SCRIPT
6F Signals + EMA Filter + Label

**6F Signals + EMA Filter + Dynamic Leverage Strategy**
Powerful Heikin Ashi-based reversal strategy with built-in EMA trend filter, precise risk management, and ready-to-use alerts for **Hyperliquid** (and other perpetual futures platforms).
### Core Logic:
- Detects trend reversals using **Heikin Ashi** candles: Buy when HA close breaks above the previous "C High", Sell when it breaks below the "C Low".
- Optional **6/9 EMA Filter** (SMA or EMA) — only allows Longs in bullish trend (green background) and Shorts in bearish trend (red background) to reduce false signals.
- Visual high/low lines mark the key breakout levels from each Heikin Ashi reversal.
### Risk Management (Fully Automated):
- Dynamic **leverage calculation** based on stop-loss distance (shown in labels).
- Configurable **Take-Profit (%)** and **Stop-Loss buffer (%)**.
- Clean SL/TP lines that appear on entry and automatically shorten to the exact exit bar (TP, SL, or reversal) — perfect historical tracking.
### Visual & Signal Features:
- Background coloring for trend bias (green/red).
- Optional arrows, detailed labels with Entry / TP / SL / Leverage.
- Beautiful dotted SL/TP lines that extend during open trades and finalize on close.
### Alerts & Automation:
- One-click **webhook-ready alerts** with clean JSON payload + human-readable text.
- Perfect for automated trading on Hyperliquid, Bybit, Binance Futures, etc.
- JSON includes: symbol, side, entry, TP, SL, leverage, and size (easy to customize).
### Settings Highlights:
- Toggle EMA filter on/off.
- Choose MA type (SMA/EMA) and lengths.
- Adjustable TP%, SL buffer, backtest start date.
- Show/hide labels, arrows, SL/TP lines.
**Best used on:** Cryptocurrency perpetuals, major forex pairs, or volatile indices on any timeframe (especially 5m–1h).
**Important:** This is a high-risk strategy. Always backtest thoroughly, use proper position sizing, and never risk more than you can afford to lose. Past performance does not guarantee future results.
Powerful Heikin Ashi-based reversal strategy with built-in EMA trend filter, precise risk management, and ready-to-use alerts for **Hyperliquid** (and other perpetual futures platforms).
### Core Logic:
- Detects trend reversals using **Heikin Ashi** candles: Buy when HA close breaks above the previous "C High", Sell when it breaks below the "C Low".
- Optional **6/9 EMA Filter** (SMA or EMA) — only allows Longs in bullish trend (green background) and Shorts in bearish trend (red background) to reduce false signals.
- Visual high/low lines mark the key breakout levels from each Heikin Ashi reversal.
### Risk Management (Fully Automated):
- Dynamic **leverage calculation** based on stop-loss distance (shown in labels).
- Configurable **Take-Profit (%)** and **Stop-Loss buffer (%)**.
- Clean SL/TP lines that appear on entry and automatically shorten to the exact exit bar (TP, SL, or reversal) — perfect historical tracking.
### Visual & Signal Features:
- Background coloring for trend bias (green/red).
- Optional arrows, detailed labels with Entry / TP / SL / Leverage.
- Beautiful dotted SL/TP lines that extend during open trades and finalize on close.
### Alerts & Automation:
- One-click **webhook-ready alerts** with clean JSON payload + human-readable text.
- Perfect for automated trading on Hyperliquid, Bybit, Binance Futures, etc.
- JSON includes: symbol, side, entry, TP, SL, leverage, and size (easy to customize).
### Settings Highlights:
- Toggle EMA filter on/off.
- Choose MA type (SMA/EMA) and lengths.
- Adjustable TP%, SL buffer, backtest start date.
- Show/hide labels, arrows, SL/TP lines.
**Best used on:** Cryptocurrency perpetuals, major forex pairs, or volatile indices on any timeframe (especially 5m–1h).
**Important:** This is a high-risk strategy. Always backtest thoroughly, use proper position sizing, and never risk more than you can afford to lose. Past performance does not guarantee future results.
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.