OPEN-SOURCE SCRIPT
Mis à jour

Futures Trading Expert Strategy with Extreme Move Check

266
This TradingView Pine Script™ v6 strategy is designed for futures trading in volatile markets like cryptocurrency. It combines several technical indicators to generate robust long and short entry signals:

Trend & Momentum Filters:
Utilizes a 50-period EMA, MACD crossovers, custom Supertrend, and RSI to identify favorable trade setups.

Dynamic Trade Management:
Employs ATR-based take profit levels and a trailing stop to let winning trades run while protecting against adverse price moves.

Extreme Move Detection:
Monitors for significant price swings (e.g., BTC pumping or dumping over a user-defined percentage) and forces an exit if extreme market conditions are detected.

Versatile Across Timeframes:
The strategy adapts seamlessly to different timeframes (1m, 5m, 15m, etc.) while ensuring only one active position at a time.

This script is ideal for traders seeking a systematic approach to futures trading with dynamic risk management tailored for volatile crypto markets.
Notes de version
This strategy is designed for futures trading in volatile markets such as crypto. It calculates all key indicator values (EMA, MACD, RSI, ATR, and a custom Supertrend) on a fixed timeframe (default is 15 minutes) using TradingView's request.security() function—ensuring consistent signals across any chart resolution (e.g., 5m, 15m).

Key Features:

Fixed Timeframe Calculations:
All indicators are computed on the selected fixed timeframe, so your long and short signals remain consistent regardless of the chart you’re viewing.

Multi-Indicator Setup:
Combines a 50-period EMA for trend filtering, MACD crossovers for momentum, RSI for overbought/oversold conditions, ATR for dynamic take profit and trailing stop levels, and a custom Supertrend for additional trend confirmation.

Dynamic Risk Management:
Uses ATR-based take profit levels alongside a trailing stop to allow profitable trades to run while protecting against reversals.

Extreme Move Check:
Monitors rapid price changes (pumps and dumps). If extreme moves occur—exceeding a user-defined percentage threshold—the script automatically exits positions to help mitigate risk.

Ideal for traders aiming to capture longer-term moves while maintaining consistent signal generation and robust risk management across different timeframes.
Notes de version
This advanced futures trading strategy is designed for volatile crypto markets and combines multiple technical tools to generate consistent and robust trading signals while managing risk dynamically. Key features include:

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 is consistent across any chart resolution.

Dual-Timeframe Trend Filter:
In addition to the fixed timeframe calculations, a higher timeframe EMA (default 60 minutes) is used as an extra trend filter. For long trades, the fixed timeframe close must be above this higher timeframe EMA (and vice versa for shorts), aligning trades with the broader market trend.

Risk-Based Position Sizing:
When the fixed stop loss option is enabled, the strategy dynamically calculates the position size based on a user-defined risk percentage of your equity. This approach adjusts the trade size according to the distance of the stop loss (defined as a multiple of ATR), helping to manage risk efficiently.

Flexible Exit Methods:
The strategy offers a choice between a fixed stop loss (with dynamic position sizing) and a trailing stop loss. This flexibility allows you to capture extended moves while protecting gains in fast-moving markets.

Extreme Move Protection:
The strategy monitors for significant intrabar moves (pumps and dumps) using a user-defined percentage threshold. In the event of extreme price swings, it will automatically exit positions to help mitigate potential losses.
Notes de version
This strategy is designed for futures trading in volatile markets such as crypto. It calculates all key indicator values (EMA, MACD, RSI, ATR, and a custom Supertrend) on a fixed timeframe (default is 15 minutes) using TradingView's request.security() function—ensuring consistent signals across any chart resolution (e.g., 5m, 15m).

Key Features:

Fixed Timeframe Calculations:
All indicators are computed on the selected fixed timeframe, so your long and short signals remain consistent regardless of the chart you’re viewing.

Multi-Indicator Setup:
Combines a 50-period EMA for trend filtering, MACD crossovers for momentum, RSI for overbought/oversold conditions, ATR for dynamic take profit and trailing stop levels, and a custom Supertrend for additional trend confirmation.

Dynamic Risk Management:
Uses ATR-based take profit levels alongside a trailing stop to allow profitable trades to run while protecting against reversals.

Extreme Move Check:
Monitors rapid price changes (pumps and dumps). If extreme moves occur—exceeding a user-defined percentage threshold—the script automatically exits positions to help mitigate risk.
Notes de version
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!

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.