OPEN-SOURCE SCRIPT

6F Signals + EMA Filter + Label

1 290
**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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.