This advanced TradingView strategy is designed for futures trading in the highly volatile cryptocurrency market. It uses a multi-indicator approach on a fixed timeframe (default 15 minutes) to generate robust entry and exit signals, while also applying a BTC correlation filter to help avoid taking long positions on altcoins during a BTC downtrend.
Key Features:
Fixed Timeframe Signal Calculations:
All primary indicators—EMA, MACD, RSI, ATR, and a custom Supertrend—are computed on a fixed timeframe (default 15 minutes) using request.security(). This ensures that signal generation remains consistent regardless of the chart’s timeframe.
BTC Correlation Filter:
An additional filter retrieves BTC data (default symbol "BINANCE:BTCUSDT") and calculates a 50-period EMA on the same fixed timeframe. For assets other than BTC, the script only allows long entries when BTC’s price is above its EMA, aligning altcoin signals with BTC’s broader market trend.
Multi-Indicator Entry Conditions:
Long Signals: Generated when the fixed timeframe close is above its EMA, a MACD crossover occurs, the Supertrend indicates an uptrend, RSI is below the overbought threshold, and (for altcoins) BTC is trending upward.
Short Signals: Triggered when the fixed timeframe close is below its EMA, a MACD crossunder occurs, the Supertrend is down, and RSI is above the oversold threshold.
Extreme Move Protection:
The strategy monitors for extreme intrabar moves (pump/dump) based on the percentage change between the current and previous fixed timeframe close. If the price moves more than a user-defined threshold (default 2%), it automatically exits positions to help mitigate risk.
Order Execution & Trailing Stop:
For backtesting, the strategy places trades with a dynamic ATR-based take profit and trailing stop. Although orders are simulated for testing, the focus is on generating reliable signals.
Custom Alerts for Signal Notifications:
Custom alertcondition() functions are built into the script to notify you when long, short, pump, or dump conditions are met. These alerts use constant messages (e.g. “Long signal triggered”, “Pump detected”) and can be set up to send notifications via email, SMS, push, or webhook—even when your chart is closed.
Usage:
This strategy is ideal for traders looking for a systematic approach to futures trading that dynamically manages risk, captures trend shifts, and incorporates broader market conditions (via BTC correlation). Simply add the script to your TradingView chart, set up the alerts using the defined conditions, and receive notifications for trading signals without needing to keep the chart open.
Feel free to adjust the input parameters—including the fixed timeframe, indicator lengths, extreme move threshold, and BTC symbol—to match your trading style and market environment.
Happy trading!