Dskyz (DAFE) MAtrix with ATR-Powered Precision Dskyz (DAFE) MAtrix with ATR-Powered Precision
This cutting‐edge futures trading strategy built to thrive in rapidly changing market conditions. Developed for high-frequency futures trading on instruments such as the CME Mini MNQ, this strategy leverages a matrix of sophisticated moving averages combined with ATR-based filters to pinpoint high-probability entries and exits. Its unique combination of adaptable technical indicators and multi-timeframe trend filtering sets it apart from standard strategies, providing enhanced precision and dynamic responsiveness.
imgur.com
Core Functional Components
1. Advanced Moving Averages
A distinguishing feature of the DAFE strategy is its robust, multi-choice moving averages (MAs). Clients can choose from a wide array of MAs—each with specific strengths—in order to fine-tune their trading signals. The code includes user-defined functions for the following MAs:
imgur.com
Hull Moving Average (HMA):
The hma(src, len) function calculates the HMA by using weighted moving averages (WMAs) to reduce lag considerably while smoothing price data. This function computes an intermediate WMA of half the specified length, then a full-length WMA, and finally applies a further WMA over the square root of the length. This design allows for rapid adaptation to price changes without the typical delays of traditional moving averages.
Triple Exponential Moving Average (TEMA):
Implemented via tema(src, len), TEMA uses three consecutive exponential moving averages (EMAs) to effectively cancel out lag and capture price momentum. The final formula—3 * (ema1 - ema2) + ema3—produces a highly responsive indicator that filters out short-term noise.
Double Exponential Moving Average (DEMA):
Through the dema(src, len) function, DEMA calculates an EMA and then a second EMA on top of it. Its simplified formula of 2 * ema1 - ema2 provides a smoother curve than a single EMA while maintaining enhanced responsiveness.
Volume Weighted Moving Average (VWMA):
With vwma(src, len), this MA accounts for trading volume by weighting the price, thereby offering a more contextual picture of market activity. This is crucial when volume spikes indicate significant moves.
Zero Lag EMA (ZLEMA):
The zlema(src, len) function applies a correction to reduce the inherent lag found in EMAs. By subtracting a calculated lag (based on half the moving average window), ZLEMA is exceptionally attuned to recent price movements.
Arnaud Legoux Moving Average (ALMA):
The alma(src, len, offset, sigma) function introduces ALMA—a type of moving average designed to be less affected by outliers. With parameters for offset and sigma, it allows customization of the degree to which the MA reacts to market noise.
Kaufman Adaptive Moving Average (KAMA):
The custom kama(src, len) function is noteworthy for its adaptive nature. It computes an efficiency ratio by comparing price change against volatility, then dynamically adjusts its smoothing constant. This results in an MA that quickly responds during trending periods while remaining smoothed during consolidation.
Each of these functions—integrated into the strategy—is selectable by the trader (via the fastMAType and slowMAType inputs). This flexibility permits the tailored application of the MA most suited to current market dynamics and individual risk management preferences.
2. ATR-Based Filters and Risk Controls
ATR Calculation and Volatility Filter:
The strategy computes the Average True Range (ATR) over a user-defined period (atrPeriod). ATR is then used to derive both:
Volatility Assessment: Expressed as a ratio of ATR to closing price, ensuring that trades are taken only when volatility remains within a safe, predefined threshold (volatilityThreshold).
ATR-Based Entry Filters: Implemented as atrFilterLong and atrFilterShort, these conditions ensure that for long entries the price is sufficiently above the slow MA and vice versa for shorts. This acts as an additional confirmation filter.
Dynamic Exit Management:
The exit logic employs a dual approach:
Fixed Stop and Profit Target: Stops and targets are set at multiples of ATR (fixedStopMultiplier and profitTargetATRMult), helping manage risk in volatile markets.
Trailing Stop Adjustments: A trailing stop is calculated using the ATR multiplied by a user-defined offset (trailOffset), which captures additional profits as the trade moves favorably while protecting against reversals.
3. Multi-Timeframe Trend Filtering
The strategy enhances its signal reliability by leveraging a secondary, higher timeframe analysis:
15-Minute Trend Analysis:
By retrieving 15-minute moving averages (fastMA15m and slowMA15m) via request.security, the strategy determines the broader market trend. This secondary filter (enabled or disabled through useTrendFilter) ensures that entries are aligned with the prevailing market direction, thereby reducing the incidence of false signals.
4. Signal and Execution Logic
Combined MA Alignment:
The entry conditions are based primarily on the alignment of the fast and slow MAs. A long condition is triggered when the current price is above both MAs and the fast MA is above the slow MA—complemented by the ATR filter and volume conditions. The reverse applies for a short condition.
Volume and Time Window Validation:
Trades are permitted only if the current volume exceeds a minimum (minVolume) and the current hour falls within the predefined trading window (tradingStartHour to tradingEndHour). An additional volume spike check (comparing current volume to a moving average of past volumes) further filters for optimal market conditions.
Comprehensive Order Execution:
The strategy utilizes flexible order execution functions that allow pyramiding (up to 10 positions), ensuring that it can scale into positions as favorable conditions persist. The use of both market entries and automated exits (with profit targets, stop-losses, and trailing stops) ensures that risk is managed at every step.
5. Integrated Dashboard and Metrics
For transparency and real-time analysis, the strategy includes:
On-Chart Visualizations:
Both fast and slow MAs are plotted on the chart, making it easy to see the market’s technical foundation.
Dynamic Metrics Dashboard:
A built-in table displays crucial performance statistics—including current profit/loss, equity, ATR (both raw and as a percentage), and the percentage gap between the moving averages. These metrics offer immediate insight into the health and performance of the strategy.
Input Parameters: Detailed Breakdown
Every input is meticulously designed to offer granular control:
Fast & Slow Lengths:
Determine the window size for the fast and slow moving averages. Smaller values yield more sensitivity, while larger values provide a smoother, delayed response.
Fast/Slow MA Types:
Choose the type of moving average for fast and slow signals. The versatility—from basic SMA and EMA to more complex ones like HMA, TEMA, ZLEMA, ALMA, and KAMA—allows customization to fit different market scenarios.
ATR Parameters:
atrPeriod and atrMultiplier shape the volatility assessment, directly affecting entry filters and risk management through stop-loss and profit target levels.
Trend and Volume Filters:
Inputs such as useTrendFilter, minVolume, and the volume spike condition help confirm that a trade occurs in active, trending markets rather than during periods of low liquidity or market noise.
Trading Hours:
Restricting trade execution to specific hours (tradingStartHour and tradingEndHour) helps avoid illiquid or choppy markets outside of prime trading sessions.
Exit Strategies:
Parameters like trailOffset, profitTargetATRMult, and fixedStopMultiplier provide multiple layers of risk management and profit protection by tailoring how exits are generated relative to current market conditions.
Pyramiding and Fixed Trade Quantity:
The strategy supports multiple entries within a trend (up to 10 positions) and sets a predefined trade quantity (fixedQuantity) to maintain consistent exposure and risk per trade.
Dashboard Controls:
The resetDashboard input allows for on-the-fly resetting of performance metrics, keeping the strategy’s performance dashboard accurate and up-to-date.
Why This Strategy is Truly Exceptional
Multi-Faceted Adaptability:
The ability to switch seamlessly between various moving average types—each suited to particular market conditions—enables the strategy to adapt dynamically. This is a testament to the high level of coding sophistication and market insight infused within the system.
Robust Risk Management:
The integration of ATR-based stops, profit targets, and trailing stops ensures that every trade is executed with well-defined risk parameters. The system is designed to mitigate unexpected market swings while optimizing profit capture.
Comprehensive Market Filtering:
By combining moving average crossovers with volume analysis, volatility thresholds, and multi-timeframe trend filters, the strategy only enters trades under the most favorable conditions. This multi-layered filtering reduces noise and enhances signal quality.
-Final Thoughts-
The Dskyz Adaptive Futures Elite (DAFE) MAtrix with ATR-Powered Precision strategy is not just another trading algorithm—it is a multi-dimensional, fully customizable system built on advanced technical principles and sophisticated risk management techniques. Every function and input parameter has been carefully engineered to provide traders with a system that is both powerful and transparent.
For clients seeking a state-of-the-art trading solution that adapts dynamically to market conditions while maintaining strict discipline in risk management, this strategy truly stands in a class of its own.
****Please show support if you enjoyed this strategy. I'll have more coming out in the near future!!
-Dskyz
Caution
DAFE is experimental, not a profit guarantee. Futures trading risks significant losses due to leverage. Backtest, simulate, and monitor actively before live use. All trading decisions are your responsibility.
المتوسطات المتحركة
EMA & MA Crossover StrategyGuys, you asked, we did. Strategy for crossing moving averages .
The Moving Average Crossover trading strategy is possibly the most popular
trading strategy in the world of trading. First of them were written in the
middle of XX century, when commodities trading strategies became popular.
This strategy is a good example of so-called traditional strategies.
Traditional strategies are always long or short. That means they are never
out of the market. The concept of having a strategy that is always long or
short may be scary, particularly in today’s market where you don’t know what
is going to happen as far as risk on any one market. But a lot of traders
believe that the concept is still valid, especially for those of traders who
do their own research or their own discretionary trading.
This version uses crossover of moving average and its exponential moving average.
Strategy parameters:
Take Profit % - when it receives the opposite signal
Stop Loss % - when it receives the opposite signal
Current Backtest:
Account: 1000$
Trading size: 0.01
Commission: 0.05%
WARNING:
- For purpose educate only
- This script to change bars colors.
Smoothed Heiken Ashi- HODL FLIP V2Smoothed Heiken Ashi - HODL FLIP V2:
Strategy Overview
The SHA HODL FLIP V2 strategy combines smoothed Heikin Ashi candles with a dual EMA approach to identify trend changes in cryptocurrency markets. Unlike traditional "HODL" (Hold On for Dear Life) strategies that only capture upside, this system aims to capture both upward and downward price movements by automatically "flipping" your entire position between long and short depending on the trend direction, allowing you to grow your holdings through complete market cycles.
Technical Approach
The strategy uses a unique two-layer smoothing method:
Primary smoothing: Calculates Heikin Ashi candles using a standard EMA (default: 14 periods)
Secondary smoothing: Further refines the signal by applying an additional EMA filter (default: 8 periods)
This double-smoothing technique reduces false signals and market noise, providing clearer trend identification. The strategy generates entry and exit signals when the color of the smoothed Heikin Ashi candles changes from red to green (long signal) or green to red (short signal).
Capital Allocation
This strategy is designed to utilize 100% of your available capital, effectively "flipping" your entire position between long and short positions as market trends change. Using 1x leverage for short positions keeps risk profile similar to holding spot positions.
Trade Management
Entry Logic: Enter long positions when smoothed HA candles turn green, and short positions when they turn red
Exit Logic: Manually exit your position when an opposing signal appears
Risk Management: Rather than using traditional stop-losses, the strategy relies on trend reversal signals to manage risk
Timeframe Selection
While the strategy can be applied to multiple timeframes, it typically performs best on daily, 2-day, and 3-day charts. Each cryptocurrency pair may have optimal timeframe settings, and backtesting is recommended to determine the most effective parameters for specific assets.
Performance Characteristics
The Smoothed Heiken Ashi HODL FLIP V2 strategy aims to outperform traditional buy-and-hold approaches by:
Capturing gains during bull markets (like traditional HODL)
Generating additional profits during downtrends (unlike traditional HODL)
Preserving capital during major market corrections
During trending markets (both up and down), the strategy tends to perform exceptionally well, generating substantial returns. As with most trend-following systems, performance may reduce during choppy, sideways markets, but the strategy is designed to quickly recover and generate excess profits once a clear trend reasserts itself.
Visualization
The strategy provides clear visual signals directly on your chart:
Green and red candles indicating the current trend direction
Triangular markers showing entry points
A blue horizontal line displaying your current entry price
This complete trading system offers a disciplined, systematic approach to cryptocurrency trading that aims to maximize returns throughout full market cycles rather than just during bull markets. Each asset has very unique settings so thorough backtesting is recommended instead of using 1 setting for all assets.
This is available in an Indicator version which can provide automatic connection to exchanges via webhooks and signal bots, so this can be a hands of strategy. It's called "Smoothed Heiken Ashi Candles with Delayed Signals" . The signals appear at the opening of the next bar, opposed to the close of the existing bar here. Essentially identical, but visually different buy 1 bar.
Heiken Ashi Supertrend ADX - StrategyHeiken Ashi Supertrend ADX Strategy
Overview
This strategy combines the power of Heiken Ashi candles, Supertrend indicator, and ADX filter to identify strong trend movements across multiple timeframes. Designed primarily for the cryptocurrency market but adaptable to any tradable asset, this system focuses on capturing momentum in established trends while employing a sophisticated triple-layer stop loss mechanism to protect capital and secure profits.
Strategy Mechanics
Entry Signals
The strategy uses a unique blend of technical signals to identify high-probability trade entries:
Heiken Ashi Candles: Looks specifically for Heiken Ashi candles with minimal or no wicks, which signal strong momentum and trend continuation. These "full-bodied" candles represent periods where price moved decisively in one direction with minimal retracement.
Supertrend Filter : Confirms the underlying trend direction using the Supertrend indicator (default factor: 3.0, ATR period: 10). Entries are aligned with the prevailing Supertrend direction.
ADX Filter (Optional) : Can be enabled to focus only on stronger trending conditions, filtering out choppy or ranging markets. When enabled, trades only trigger when ADX is above the specified threshold (default: 25).
Exit Signals
Positions are closed when either:
An opposing signal appears (Heiken Ashi candle with no wick in the opposite direction)
Any of the three stop loss mechanisms are triggered
Triple-Layer Stop Loss System
The strategy employs a sophisticated three-tier stop loss approach:
ATR Trailing Stop: Adapts to market volatility and locks in profits as the trend extends. This stop moves in the direction of the trade, capturing profit without exiting too early during normal price fluctuations.
Swing Point Stop : Uses natural market structure (recent highs/lows over a lookback period) to place stops at logical support/resistance levels, honoring the market's own rhythm.
Insurance Stop: A percentage-based safety net that protects against sudden adverse moves immediately after entry. This is particularly valuable when the swing point stop might be positioned too far from entry, providing immediate capital protection.
Optimization Features
Customizable Filters: All components (Supertrend, ADX) can be enabled/disabled to adapt to different market conditions
Adjustable Parameters: Fine-tune ATR periods, Supertrend factors, and ADX thresholds
Flexible Stop Loss Settings: Each of the three stop loss mechanisms can be individually enabled/disabled with customizable parameters
Best Practices for Implementation
Recommended Timeframes: Works best on 4-hour charts and above, where trends develop more reliably
Market Conditions: Performs well across various market conditions due to the ADX filter's ability to identify meaningful trends
Position Sizing: The strategy uses a percentage of equity approach (default: 3%) for position sizing
Performance Characteristics
When properly optimized, this strategy has demonstrated profit factors exceeding 3 in backtesting. The approach typically produces generous winners while limiting losses through its multi-layered stop loss system. The ATR trailing stop is particularly effective at capturing extended trends, while the insurance stop provides immediate protection against adverse moves.
The visual components on the chart make it easy to follow the strategy's logic, with position status, entry prices, and current stop levels clearly displayed.
This strategy represents a complete trading system with clearly defined entry and exit rules, adaptive stop loss mechanisms, and built-in risk management through position sizing.
EMA Crossover (Short Focus with Trailing Stop)This strategy utilizes a combination of Exponential Moving Averages (EMA) and Simple Moving Averages (SMA) to generate entry and exit signals for both long and short positions. The core of the strategy is based on the 13-period EMA (short EMA) crossing the 33-period EMA (long EMA) for entering long trades, while a 13-period EMA crossing the 25-period EMA (mid EMA) generates short trade signals. The 100-period SMA and 200-period SMA serve as additional trend indicators to provide context for the market conditions. The strategy aims to capitalize on trend reversals and momentum shifts in the market.
The strategy is designed to execute trades swiftly with an emphasis on entering positions when conditions align in real time. For long entries, the strategy initiates a buy when the 13 EMA is greater than the 33 EMA, indicating a bullish trend. For short entries, the 13 EMA crossing below the 33 EMA signals a bearish trend, prompting a short position. Importantly, the code includes built-in exit conditions for both long and short positions. Long positions are exited when the 13 EMA falls below the 33 EMA, while short positions are closed when the 13 EMA crosses above the 25 EMA.
A key feature of the strategy is the use of trailing stops for both long and short positions. This dynamic exit method adjusts the stop level as the market moves in favor of the trade, locking in profits while reducing the risk of losses. The trailing stop for long positions is based on the high price of the current bar, while the trailing stop for short positions is set using the low price, providing more flexibility in managing risk. This trailing stop mechanism helps to capture profits from favorable market moves while ensuring that positions are exited if the market moves against them.
This strategy works best on the 4H timeframe and is optimized for major cryptocurrency pairs. The daily chart allows for the EMAs to provide more reliable signals, as the strategy is designed to capture broader trends rather than short-term market fluctuations. Using it on major crypto pairs increases its effectiveness as these assets tend to have strong and sustained trends, providing better opportunities for the strategy to perform well.
Bollinger Bands Strategy Direction & VWAP This is an updated version of classic Bollinger bands. It adds the VWAP line for reference but does not include the bands usually associated with that. It also allows for the turning on and off of longs or shorts, and limiting the duration of trades by the number of days with the default being set to 4(2 seems to be the optimal) I tested this against crypto currency perpetual markets and it consistently wins more than 60 percent of the trades against the majors ( BTC, ETH, SOL) but doesn't seems to do well against some small cap Alts. Id love to hear your feedback
Moving Average Shift WaveTrend StrategyMoving Average Shift WaveTrend Strategy
🧭 Overview
The Moving Average Shift WaveTrend Strategy is a trend-following and momentum-based trading system designed to be overlayed on TradingView charts. It executes trades based on the confluence of multiple technical conditions—volatility, session timing, trend direction, and oscillator momentum—to deliver logical and systematic trade entries and exits.
🎯 Strategy Objectives
Enter trades aligned with the prevailing long-term trend
Exit trades on confirmed momentum reversals
Avoid false signals using session timing and volatility filters
Apply structured risk management with automatic TP, SL, and trailing stops
⚙️ Key Features
Selectable MA types: SMA, EMA, SMMA (RMA), WMA, VWMA
Dual-filter logic using a custom oscillator and moving averages
Session and volatility filters to eliminate low-quality setups
Trailing stop, configurable Take Profit / Stop Loss logic
“In-wave flag” prevents overtrading within the same trend wave
Visual clarity with color-shifting candles and entry/exit markers
📈 Trading Rules
✅ Long Entry Conditions:
Price is above the selected MA
Oscillator is positive and rising
200-period EMA indicates an uptrend
ATR exceeds its median value (sufficient volatility)
Entry occurs between 09:00–17:00 (exchange time)
Not currently in an active wave
🔻 Short Entry Conditions:
Price is below the selected MA
Oscillator is negative and falling
200-period EMA indicates a downtrend
All other long-entry conditions are inverted
❌ Exit Conditions:
Take Profit or Stop Loss is hit
Opposing signals from oscillator and MA
Trailing stop is triggered
🛡️ Risk Management Parameters
Pair: ETH/USD
Timeframe: 4H
Starting Capital: $3,000
Commission: 0.02%
Slippage: 2 pips
Risk per Trade: 2% of account equity (adjustable)
Total Trades: 224
Backtest Period: May 24, 2016 — April 7, 2025
Note: Risk parameters are fully customizable to suit your trading style and broker conditions.
🔧 Trading Parameters & Filters
Time Filter: Trades allowed only between 09:00–17:00 (exchange time)
Volatility Filter: ATR must be above its median value
Trend Filter: Long-term 200-period EMA
📊 Technical Settings
Moving Average
Type: SMA
Length: 40
Source: hl2
Oscillator
Length: 15
Threshold: 0.5
Risk Management
Take Profit: 1.5%
Stop Loss: 1.0%
Trailing Stop: 1.0%
👁️ Visual Support
MA and oscillator color changes indicate directional bias
Clear chart markers show entry and exit points
Trailing stops and risk controls are transparently managed
🚀 Strategy Improvements & Uniqueness
In-wave flag avoids repeated entries within the same trend phase
Filtering based on time, volatility, and trend ensures higher-quality trades
Dynamic high/low tracking allows precise trailing stop placement
Fully rule-based execution reduces emotional decision-making
💡 Inspirations & Attribution
This strategy is inspired by the excellent concept from:
ChartPrime – “Moving Average Shift”
It expands on the original idea with advanced trade filters and trailing logic.
Source reference:
📌 Summary
The Moving Average Shift WaveTrend Strategy offers a rule-based, reliable approach to trend trading. By combining trend and momentum filters with robust risk controls, it provides a consistent framework suitable for various market conditions and trading styles.
⚠️ Disclaimer
This script is for educational purposes only. Trading involves risk. Always use proper backtesting and risk evaluation before applying in live markets.
20 EMA Cross StrategyWhen a bar crosses an closes above or below the 20 EMA, a buy or sell signal is produced.
TrendTwisterV1.5 (Forex Ready + Indicators)A Precision Trend-Following TradingView Strategy for Forex**
HullShiftFX is a Pine Script strategy for TradingView that combines the power of the **Hull Moving Average (HMA)** and a **shifted Exponential Moving Average (EMA)** with multi-layered momentum filters including **RSI** and **dual Stochastic Oscillators**.
It’s designed for traders looking to catch high-probability breakouts with tight risk management and visual clarity.
Chart settings:
1. Select "Auto - Fits data to screen"
2. Please Select "Scale Price Chart Only" (To make the chart not squished)
### ✅ Entry Conditions
**Long Position:**
- Price closes above the 12-period Hull Moving Average.
- Price closes above the 5-period EMA shifted forward by 2 bars.
- RSI is above 50.
- Stochastic Oscillator (12,3,3) %K is above 50.
- Stochastic Oscillator (5,3,3) %K is above 50.
- Hull MA crosses above the shifted EMA.
**Short Position:**
- Price closes below the 12-period Hull Moving Average.
- Price closes below the 5-period EMA shifted forward by 2 bars.
- RSI is below 50.
- Stochastic Oscillator (12,3,3) %K is below 50.
- Stochastic Oscillator (5,3,3) %K is below 50.
- Hull MA crosses below the shifted EMA.
---
## 📉 Risk Management
- **Stop Loss:** Set at the low (for long) or high (for short) of the previous 2 candles.
- **Take Profit:** Calculated at a risk/reward ratio of **1.65x** the stop loss distance.
---
## 📊 Indicators Used
- **Hull Moving Average (12)**
- **Exponential Moving Average (5) **
- **Relative Strength Index (14)**
- **Stochastic Oscillators:**
- %K (12,3,3)
- %K (5,3,3)
RSI Trendlines, EMA 8/34/89 & Elliott Wave BotRSI Trendlines, EMA 8/34/89 & Elliott Wave Bot
This strategy combines RSI trendline breakouts, multi-timeframe EMAs (8, 34, 89), and simplified Elliott Wave logic to generate trading signals:
Buy Signal: Triggered when RSI breaks above a previous high (in overbought zone), EMAs are in a bullish alignment (EMA8 > EMA34 > EMA89), and price breaks above a recent swing high (waveUp).
Sell Signal: Triggered when RSI breaks below a previous low (in oversold zone), EMAs are in bearish alignment (EMA8 < EMA34 < EMA89), and price breaks below a recent swing low (waveDown).
The strategy enters long or short positions based on these confluences and plots the signals directly on the chart.
OneTrend EMAThis strategy uses exponential moving averages (EMA) to define market trend direction and employs a dynamic ATR-based threshold adjusted by a custom ADX calculation to generate bullish (blue) and bearish (pink) zones. It enters long positions when the fast EMA exceeds the threshold (blue zone) and exits when it falls below the threshold (pink zone), providing clear, rule-based signals for trend-following trades. Pros include adaptive thresholding that reflects market volatility and trend strength, while cons are potential lag in sideways or choppy markets and susceptibility to whipsaws in volatile conditions.
NY First Candle Break and RetestStrategy Overview
Session and Time Parameters:
The strategy focuses on the New York trading session, starting at 9:30 AM and lasting for a predefined session length, typically 3 to 4 hours. This timing captures the most active market hours, providing ample trading opportunities.
Strategy Parameters:
Utilizes the Average True Range (ATR) to set dynamic stop-loss levels, ensuring risk is managed according to market volatility.
Employs a reward-to-risk ratio to determine take profit levels, aiming for a balanced approach between potential gains and losses.
Strategy Settings:
Incorporates simple moving averages (EMA) and the Volume Weighted Average Price (VWAP) to identify trend direction and price levels.
Volume confirmation is used to validate breakouts, ensuring trades are based on significant market activity.
Trade Management:
Features a trailing stop mechanism to lock in profits as the trade moves in favor, with multiple take profit levels to secure gains incrementally.
The strategy is designed to handle both long and short positions, adapting to market conditions.
Alert Settings:
Provides alerts for key events such as session start, breakout, retest, and entry signals, helping traders stay informed and act promptly.
Visual cues on the chart highlight entry and exit points, making it easier for beginners to follow the strategy.
This strategy is particularly suited for the current volatile market environment, where simplicity and clear guidelines can help beginner traders navigate the complexities of trading. It emphasizes risk management and uses straightforward indicators to make informed trading decisions.
I put together this Trading View scalping strategy for futures markets with some help from Claude AI. Shoutout to everyone who gave me advice along the way—I really appreciate it! I’m sure there’s room for improvement, so feel free to share your thoughts… just go easy on me. :)
Dskyz Adaptive Futures Elite (DAFE)Dskyz Adaptive Futures Edge (DAFE)
imgur.com
A Dynamic Futures Trading Strategy
DAFE adapts to market volatility and price action using technical indicators and advanced risk management. It’s built for high-stakes futures trading (e.g., MNQ, BTCUSDT.P), offering modular logic for scalpers and swing traders alike.
Key Features
Adaptive Moving Averages
Dynamic Logic: Fast and slow SMAs adjust lengths via ATR, reacting to momentum shifts and smoothing in calm markets.
Signals: Long entry on fast SMA crossing above slow SMA with price confirmation; short on cross below.
RSI Filtering (Optional)
Momentum Check: Confirms entries with RSI crossovers (e.g., above oversold for longs). Toggle on/off with custom levels.
Fine-Tuning: Adjustable lookback and thresholds (e.g., 60/40) for precision.
Candlestick Pattern Recognition
Eng|Enhanced Detection: Identifies strong bullish/bearish engulfing patterns, validated by volume and range strength (vs. 10-period SMA).
Conflict Avoidance: Skips trades if both patterns appear in the lookback window, reducing whipsaws.
Multi-Timeframe Trend Filter
15-Minute Alignment: Syncs intrabar trades with 15-minute SMA trends; optional for flexibility.
Dollar-Cost Averaging (DCA) New!
Scaling: Adds up to a set number of entries (e.g., 4) on pullbacks/rallies, spaced by ATR multiples.
Control: Caps exposure and resets on exit, enhancing trend-following potential.
Trade Execution & Risk Management
Entry Rules: Prioritizes moving averages or patterns (user choice), with volume, volatility, and time filters.
Stops & Trails:
Initial Stop: ATR-based (2–3.5x, volatility-adjusted).
Trailing Stop: Locks profits with configurable ATR offset and multiplier.
Discipline
Cooldown: Pauses post-exit (e.g., 0–5 minutes).
Min Hold: Ensures trades last a set number of bars (e.g., 2–10).
Visualization & Tools
Charts: Overlays MAs, stops, and signals; trend shaded in background.
Dashboard: Shows position, P&L, win rate, and more in real-time.
Debugging: Logs signal details for optimization.
Input Parameters
Parameter Purpose Suggested Use
Use RSI Filter - Toggle RSI confirmation *Disable 4 price-only
trading
RSI Length - RSI period (e.g., 14) *7–14 for sensitivity
RSI Overbought/Oversold - Adjust for market type *Set levels (e.g., 60/40)
Use Candlestick Patterns - Enables engulfing signals *Disable for MA focus
Pattern Lookback - Pattern window (e.g., 19) *10–20 bars for balance
Use 15m Trend Filter - Align with 15-min trend *Enable for trend trades
Fast/Slow MA Length - Base MA lengths (e.g., 9/19) *10–25 / 30–60 per
timeframe
Volatility Threshold - Filters volatile spikes *Max ATR/close (e.g., 1%)
Min Volume - Entry volume threshold *Avoid illiquid periods
(e.g., 10)
ATR Length - ATR period (e.g., 14) *Standard volatility
measure
Trailing Stop ATR Offset - Trail distance (e.g., 0.5) *0.5–1.5 for tightness
Trailing Stop ATR Multi - Trail multiplier (e.g., 1.0) *1–3 for trend room
Cooldown Minutes - Post-exit pause (e.g., 0–5) *Prevents overtrading
Min Bars to Hold - Min trade duration (e.g., 2) *5–10 for intraday
Trading Hours - Active window (e.g., 9–16) *Focus on key sessions
Use DCA - Toggle DCA *Enable for scaling
Max DCA Entries - Cap entries (e.g., 4) *Limit risk exposure
DCA ATR Multiplier Entry spacing (e.g., 1.0) *1–2 for wider gaps
Compliance
Realistic Testing: Fixed quantities, capital, and slippage for accurate backtests.
Transparency: All logic is user-visible and adjustable.
Risk Controls: Cooldowns, stops, and hold periods ensure stability.
Flexibility: Adapts to various futures and timeframes.
Summary
DAFE excels in volatile futures markets with adaptive logic, DCA scaling, and robust risk tools. Currently in prop account testing, it’s a powerful framework for precision trading.
Caution
DAFE is experimental, not a profit guarantee. Futures trading risks significant losses due to leverage. Backtest, simulate, and monitor actively before live use. All trading decisions are your responsibility.
Fibonacci Counter-Trend TradingOverview:
The Fibonacci Counter-Trend Trading strategy is designed to capitalize on price reversals by utilizing Fibonacci levels calculated from the standard deviation of price movements. This strategy opens a sell order when the closing price crosses above a specified upper Fibonacci level and a buy order when the closing price crosses below a specified lower Fibonacci level. By leveraging the principles of Fibonacci retracement and volatility, this strategy aims to identify potential reversal points in the market.
How It Works:
Fibonacci Levels Calculation:
The strategy calculates upper and lower Fibonacci levels based on the standard deviation of the price over a specified moving average length. These levels are derived from the Fibonacci sequence, which is widely used in technical analysis to identify potential support and resistance levels.
The upper levels are calculated by adding specific Fibonacci ratios (0.236, 0.382, 0.5, 0.618, 0.764, and 1.0) multiplied by the standard deviation to the basis (the volume-weighted moving average).
The lower levels are calculated by subtracting the same Fibonacci ratios multiplied by the standard deviation from the basis.
Trade Entry Rules:
Sell Order: A sell order is triggered when the closing price crosses above the selected upper Fibonacci level. This indicates a potential reversal point where the price may start to decline.
Buy Order: A buy order is initiated when the closing price crosses below the selected lower Fibonacci level. This suggests a potential reversal point where the price may begin to rise.
Trade Management:
The strategy includes stop-losses based on the Fibonacci levels to protect against adverse price movements.
How to Use:
Users can customize the moving average length and the multiplier for the standard deviation to suit their trading preferences and market conditions.
The strategy can be applied to various financial instruments, including stocks, forex, and cryptocurrencies, making it versatile for different trading environments.
Pros:
The Fibonacci Counter-Trend Trading strategy combines the mathematical principles of the Fibonacci sequence with the statistical measure of standard deviation, providing a unique approach to identifying potential market reversals.
This strategy is particularly useful in volatile markets where price swings can lead to significant trading opportunities.
The use of Fibonacci levels can help traders identify key support and resistance areas, enhancing decision-making.
Cons:
The strategy may generate false signals in choppy or sideways markets, leading to potential losses if the price does not reverse as anticipated.
Relying solely on Fibonacci levels without considering other technical indicators or market conditions may result in missed opportunities or increased risk.
The effectiveness of the strategy can vary depending on the chosen parameters (e.g., moving average length and standard deviation multiplier), requiring users to spend time optimizing these settings for different market conditions.
As with any counter-trend strategy, there is a risk of significant drawdowns during strong trending markets, where the price continues to move in one direction without reversing.
By understanding the mechanics of the Fibonacci Counter-Trend Trading strategy, along with its pros and cons, traders can effectively implement it in their trading routines and potentially enhance their trading performance.
OneTrend Vegas TunnelOneTrend Vegas Tunnel is a trend-following breakout strategy that uses multiple exponential moving averages (EMAs) to dynamically define a trading channel and filter false breakout signals.
The strategy constructs a primary channel—known as the Vegas Tunnel—using a 144-period and a 169-period EMA, while a 12-day EMA acts as an entry filter to confirm bullish or bearish breakouts (with trades taken only when both price and the 12-day EMA break above or below the tunnel, respectively).
Additionally, the strategy employs manually calculated ADX and RSI values to “double‐confirm” the trend — while a secondary channel (576- and 676‑period EMAs, colored in gray) provides a long‑term trend reference.
Please note that this script is intended solely for backtesting and educational purposes and does not constitute financial advice.
[SM-042] EMA 5-8-13 with ADX FilterWhat is the strategy?
The strategy combines three exponential moving averages (EMAs) — 5, 8, and 13 periods — with an optional ADX (Average Directional Index) filter. It is designed to enter long or short positions based on EMA crossovers and to exit positions when the price crosses a specific EMA. The ADX filter, if enabled, adds a condition that only allows trades when the ADX value is above a certain threshold, indicating trend strength.
Who is it for?
This strategy is for traders leveraging EMAs and trend strength indicators to make trade decisions. It can be used by anyone looking for a simple trend-following strategy, with the flexibility to adjust for trend strength using the ADX filter.
When is it used?
- **Long trades**: When the 5-period EMA crosses above the 8-period EMA, with an optional ADX condition (if enabled) that requires the ADX value to be above a specified threshold.
- **Short trades**: When the 5-period EMA crosses below the 8-period EMA, with the ADX filter again optional.
- **Exits**: The strategy exits a long position when the price falls below the 13-period EMA and exits a short position when the price rises above the 13-period EMA.
Where is it applied?
This strategy is applied on a chart with any asset on TradingView, with the EMAs and ADX plotted for visual reference. The strategy uses `strategy.entry` to open positions and `strategy.close` to close them based on the set conditions.
Why is it useful?
This strategy helps traders identify trending conditions and filter out potential false signals by using both EMAs (to capture short-term price movements) and the ADX (to confirm the strength of the trend). The ADX filter can be turned off if not desired, making the strategy flexible for both trending and range-bound markets.
How does it work?
- **EMA Crossover**: The strategy enters a long position when the 5-period EMA crosses above the 8-period EMA, and enters a short position when the 5-period EMA crosses below the 8-period EMA.
- **ADX Filter**: If enabled, the strategy checks whether the ADX value is above a set threshold (default is 20) before allowing a trade.
- **Exit Conditions**: Long positions are closed when the price falls below the 13-period EMA, and short positions are closed when the price rises above the 13-period EMA.
- **Plotting**: The strategy plots the three EMAs and the ADX value on the chart for visualization. It also displays a horizontal line at the ADX threshold.
This setup allows for clear decision-making based on the interaction between different time-frame EMAs and trend strength as indicated by ADX.
30-Min Trap Reversal Strategy (Long Only, Cleaned)Apply on 30 min charts with any ticker with volatility. Mag 7 usually give good resutls
Gold EMA + CHOCH StrategyStrategy Logic:
Higher Timeframe (15 min):
Bullish: HTF_20EMA > HTF_100EMA and forming H.H
Bearish: HTF_20EMA < HTF_100EMA and Forming L.L
Lower Timeframe (1 min):
Entry when 20 EMA crosses 100 EMA:
Buy if 20 EMA crosses above 100 EMA and 1 min CHOCH and HTF trend is bullish
Sell if 20 EMA crosses below 100 EMA and1 minCHOCH and HTF trend is bearish
EMA+SMA+VWAP Trading Strategy This strategy is for COINBASE:ETHUSD 15min. Tweak the INPUTS as per requirement.
Note: The strategy will give different results for different sources(Binance, Bitstamp) and symbols.
For more accurate P&L in "Strategy Tester" modify the settings as below:
Under "Properties" tab
--Change "Order Size" value (default is 1) and type from "% of equity" to "Contract".
--Add "Commission". For me commission was "0.07 %".
Strategy Explanation
Trend Following: The strategy uses EMA crossovers (17 vs. 31) to detect momentum shifts, with VWAP and SMA (69) acting as filters to confirm the broader trend.
Reversal Mechanism: It allows switching directly from long to short (or vice versa) by closing the existing position before entering the new one.
Exit Strategy: Faster EMAs (8 and 9) are used for exits, making the strategy sensitive to short-term reversals while avoiding premature exits during strong trends.
Risk Management: The use of multiple filters (VWAP, SMA) reduces false signals, though it may delay entries in fast-moving markets.
How It Works:
Bullish Scenario: If the 17-period EMA crosses above the 31-period EMA, and the price is above both VWAP and the 69-period SMA, a long position is opened. It exits when the 8-period EMA crosses below the 9-period EMA.
Bearish Scenario: If the 17-period EMA crosses below the 31-period EMA, and the price is below both VWAP and the 69-period SMA, a short position is opened. It exits when the 8-period EMA crosses above the 9-period EMA.
Reversal: If a short position is active and a long signal triggers, the short is closed before entering the long (and vice versa).
Potential Strengths
Combines momentum (EMA crossovers) with trend confirmation (VWAP, SMA).
Reversal logic allows flexibility in choppy markets.
Visual indicators make it easy to monitor signals.
Potential Weaknesses
Multiple conditions may reduce trade frequency, missing some opportunities.
Sensitivity to EMA periods; defaults (17, 31, 8, 9, 69) may not suit all assets or timeframes.
No explicit stop-loss or take-profit logic, relying solely on EMA exits.
EMA Crossover (New Trailing Stop)This strategy utilizes a combination of Exponential Moving Averages (EMA) to generate entry and exit signals for both long and short positions. The core of the strategy is based on the 13-period EMA (short EMA) crossing the 33-period EMA (long EMA) for entering long trades, while a 13-period EMA crossing the 25-period EMA (mid EMA) generates short trade signals. The strategy aims to capitalize on trend reversals and momentum shifts in the market.
A key enhancement in this strategy is the inclusion of slippage, set at 5 ticks, to simulate more realistic trading conditions. Slippage accounts for the difference between the expected price of a trade and the actual price, providing a more accurate representation of real-world trading scenarios.
Stack Overflow
To address the issue of overlapping exit orders, the strategy incorporates a flag (isExiting) to track whether an exit has been processed. This ensures that only one exit order is generated per bar, preventing multiple exits from overlapping and resulting in clearer trade execution.
The strategy is designed to execute trades swiftly, emphasizing real-time entry when conditions align. For long entries, the strategy initiates a buy when the 13 EMA is greater than the 33 EMA, indicating a bullish trend. For short entries, the 13 EMA crossing below the 33 EMA signals a bearish trend, prompting a short position. Importantly, the code includes built-in exit conditions for both long and short positions. Long positions are exited when the 13 EMA falls below the 33 EMA, while short positions are closed when the 13 EMA crosses above the 25 EMA.
A notable feature of the strategy is the use of trailing stops for both long and short positions. This dynamic exit method adjusts the stop level as the market moves favorably, locking in profits while reducing the risk of losses. The trailing stop for long positions is based on the high price of the current bar, while the trailing stop for short positions is set using the low price, providing flexibility in managing risk. This mechanism helps capture profits from favorable market movements while ensuring positions are exited if the market moves against them.
In summary, this strategy combines EMA crossovers with realistic trading conditions, including slippage and non-overlapping exits, to effectively identify and act upon market trends. This strategy works best on the 4H/Daily timeframe and is optimized for major cryptocurrency pairs. The 4H/Daily chart allows for the EMAs to provide more reliable signals, as the strategy is designed to capture broader trends rather than short-term market fluctuations. Using it on major crypto pairs increases its effectiveness as these assets tend to have strong and sustained trends, providing better opportunities for the strategy to perform well.
50 EMA Crossover With Monthly DCARecommended Chart Interval = 1W
Overview:
This strategy combines trend-following principles with dollar-cost averaging (DCA), aiming to efficiently deploy capital while minimizing market timing risk.
How It Works:
When the Long Condition is Not Met (i.e., Price < 50 EMA):
- If the price is below the 50 EMA, a fixed DCA amount is added to a cash reserve every month.
- This ensures that capital is consistently accumulated, even when the strategy isn't in a long position.
When the Long Condition is Met (i.e., Price > 50 EMA):
- A long position is opened when the price is above the 50 EMA.
- At this point, the entire capital, including the accumulated cash reserve, is deployed into the market.
- While the strategy is long, a DCA buy order is placed every month using the set DCA amount, continuously investing as the market conditions allow.
Exit Strategy:
If the price falls below the 50 EMA, the strategy closes all positions, and the cash reserve accumulation process begins again.
Key Benefits:
✔ Systematic Investing: Ensures consistent capital deployment while following trend signals.
✔ Cash Efficiency: Accumulates uninvested funds when conditions aren’t met and deploys them at optimal moments.
✔ Risk Management: Exits when the price trend weakens, protecting capital.
Conclusion:
This method allows for efficient capital growth by combining a trend-following approach with disciplined DCA, ensuring risk is managed while capital is deployed systematically at optimal points in the market. 🚀
Trailing Monster StrategyTrailing Monster Strategy
This is an experimental trend-following strategy that incorporates a custom adaptive moving average (PKAMA), RSI-based momentum filtering, and dynamic trailing stop-loss logic. It is designed for educational and research purposes only, and may require further optimization or risk management considerations prior to live deployment.
Strategy Logic
The strategy attempts to participate in sustained price trends by combining:
- A Power Kaufman Adaptive Moving Average (PKAMA) for dynamic trend detection,
- RSI and Simple Moving Average (SMA) filters for market condition confirmation,
- A delayed trailing stop-loss to manage exits once a trade is in profit.
Entry Conditions
Long Entry:
- RSI exceeds the overbought threshold (default: 70),
- Price is trading above the 200-period SMA,
- PKAMA slope is positive (indicating upward momentum),
- A minimum number of bars have passed since the last entry.
Short Entry:
- RSI falls below the oversold threshold (default: 30),
- Price is trading below the 200-period SMA,
- PKAMA slope is negative (indicating downward momentum),
-A minimum number of bars have passed since the last entry.
Exit Conditions
- A trailing stop-loss is applied once the position has been open for a user-defined number of bars.
- The trailing distance is calculated as a fixed percentage of the average entry price.
Technical Notes
This script implements a custom version of the Power Kaufman Adaptive Moving Average (PKAMA), conceptually inspired by alexgrover’s public implementation on TradingView .
Unlike traditional moving averages, PKAMA dynamically adjusts its responsiveness based on recent market volatility, allowing it to better capture trend changes in fast-moving assets like altcoins.
Disclaimer
This strategy is provided for educational purposes only.
It is not financial advice, and no guarantee of profitability is implied.
Always conduct thorough backtesting and forward testing before using any strategy in a live environment.
Adjust inputs based on your individual risk tolerance, asset class, and trading style.
Feedback is encouraged. You are welcome to fork and modify this script to suit your own preferences and market approach.