Multi Dynamic EMA/SMAMultiple dynamic EMA or SMA lines that you can pick up to 5. With Legend.
This script allows traders to plot up to five fully customizable moving average lines (EMA or SMA) on their chart. Each line can be configured with its own:
Length (e.g., 9, 21, 50, 200)
Type (EMA or SMA)
Color
In addition to the plotted lines, a legend table appears in the top-left corner of the chart, clearly displaying the type and length of each moving average along with a color-coded background for easy reference.
Medie mobili
SMA50 vs SMA200 Cross SignalsThis script detects golden and death cross signals using SMA 50 and SMA 200. When SMA50 crosses above SMA200, a buy signal is generated (Golden Cross). When SMA50 crosses below SMA200, a sell signal is generated (Death Cross). This script is designed for long-term trend-following strategies. Visual arrows are shown and alerts can be added.
Webby's Market OrderThis is visual representation of Webby's Market Order.
When three consecutive lows are above 21 EMA, Uptrend expectation is natural.
When three highs are below 21 EMA, Downtrend expectation is natural.
Alert Conditions can be set when uptrend and down trend are expected.
Use this indicator with IXIC or SPY or major indices.
This is set at three lows/Highs above 21 EMA as looked by Mike Webster.
Enhanced Trend Indicator – Reversal & Volume LogicThis script is designed to help traders identify potential trade setups by combining elements of trend direction, market structure, and volume analysis. It is intended to assist users in aligning with market momentum while maintaining a clean and readable chart.
🔍 Overview
The Enhanced Trend Indicator offers a multi-layered approach to technical analysis. It includes:
Trend direction filtering using configurable moving averages
Support and resistance zones based on recent swing highs/lows
Volume validation to strengthen the reliability of signals
Custom signal logic for entry/exit points derived from a combination of price and volume behavior
The indicator is adaptive and can be applied across various timeframes and trading styles.
⚙️ Core Features
1. Signal Logic
Buy and sell signals are plotted based on market structure, momentum direction, and volume confirmation. These signals are intended to highlight areas of potential interest, not guarantee outcomes.
2. Dynamic Levels
Automatically plotted support and resistance zones adjust to recent pivot activity. These areas can help inform stop placement, entry zones, or take-profit levels.
3. Trend Detection
The tool uses moving average alignment to help visualize overall trend direction and filter against counter-trend setups.
4. Volume Verification
Signals are further filtered by a volume threshold to reduce noise during low-activity periods or false breakouts.
5. Alert Capabilities
The script includes optional alerts for signal conditions so users can monitor multiple assets or timeframes efficiently.
🧠 Who It’s For
This tool is useful for:
Traders who use technical confluence to support their decision-making
Swing and intraday traders looking for visual clarity and adaptive levels
Users who prefer structured entries supported by volume and trend logic
Note: This indicator is not meant to be used in isolation. It works best when combined with sound risk management and a broader trading plan. As always, backtesting and personal validation are encouraged before using any script in live market conditions.
Average Body RangeThe Average Body Range (ABR) indicator calculates the average size of a candle's real body over a specified period. Unlike the traditional Average Daily Range (ADR), which measures the full range from high to low, the ABR focuses solely on the absolute difference between the open and close of each bar. This provides insight into market momentum and trading activity by reflecting how much price is actually moving from open to close , not just in total.
This indicator is especially useful for identifying:
Periods of strong directional movement (larger body sizes)
Low-volatility or indecisive markets (smaller body sizes)
Changes in trend conviction or momentum
Customization:
Length: Number of bars used to compute the average (default: 14)
Use ABR to enhance your understanding of price behavior and better time entries or exits based on market strength.
Guntavnook Katta - Price Action PROOverview:
This script is designed to provide traders with a structured, multi-layered view of market behavior. It combines three key components - trend direction analysis, oscillator-based pattern recognition, and projected candle visualization - to help identify meaningful setups and anticipate potential price movements. Additionally, it includes an automated system for plotting multi-level support and resistance zones using swing logic, making it valuable for both discretionary traders and those developing rule-based or semi-systematic frameworks.
Purpose:
The primary purpose of this tool is to empower traders with a structured, multi-dimensional analysis tool that combines both quantitative signals and visual interpretation. Rather than relying on fixed indicators or static strategies, this script allows users to understand the evolving nature of price action through a lens of historical behavior, oscillator dynamics, and market trend context.
It is especially useful for traders who value context-driven decision making - those who prefer to look beyond raw signals and study the sequence of conditions that preceded past price moves, enabling them to better anticipate future possibilities.
Core Logic:
The script brings together three independently developed analytical engines, each built on custom logic and refined through real-market application. Unlike traditional tools that rely on fixed indicator crossovers or rigid rules, this script focuses on pattern dynamics, contextual interpretation, and forward-looking structure - giving it a distinct edge in adapting to different market conditions.
Trend Engine (Volatility-Adjusted Slope Framework):
A moving average alone doesn't reveal much - it’s the slope of the moving average compared against a volatility-normalized threshold that gives meaning. This engine calculates the SMA slope across a user-defined window and dynamically adjusts the threshold using ATR-based volatility. The result: a more adaptive classification of trend into Uptrend, Downtrend, or Sideways, designed to reduce noise and align with real momentum shifts.
Pattern Detection Engine (Zone-Based Signature Matching):
Rather than comparing raw oscillator values, this system maps them into discrete behavioral zones, then tracks their sequential patterns. The most recent pattern is then scanned across historical data to detect exact zone signatures - a method that captures rhythm and structure rather than simple threshold breaks. When a match is found, the script projects what happened next by scaling and rendering those historical candles as projected candle visuals on the current chart - offering a clear and proportionate view of possible price behavior.
Support & Resistance Engine (Tiered Swing-Based Projection):
This module detects significant turning points using user-defined swing lengths, and automatically extends multi-level support and resistance zones (1x, 2x, 3x) into the future. These levels are not based on arbitrary highs/lows, but on tiered confirmation across timeframes, making them highly useful for anticipating potential reaction zones in both trending and consolidating phases.
Together, these components work in sync to offer a layered, context-rich view of price behavior - allowing traders to make better-informed decisions, whether they’re seeking confirmation, confluence, or clarity.
This script is not a signal generator - it is a decision-support tool that allows traders to study market structure in a deeper, more structured way.
It helps answer three essential trading questions:
* What is the current market trend?
* Have similar oscillator-based patterns occurred before, and what followed?
* Where are the likely support and resistance zones based on recent swings?
Key Functional Blocks:
1 - Trend Analysis Using SMA Slope Logic
The script calculates a Simple Moving Average (SMA) over a user-defined period. It compares the slope of this SMA over a second window of candles.
The slope is measured as a percentage and compared against a dynamic threshold derived from price volatility (using ATR).
The market is categorized into:
Uptrend
Downtrend
Sideways
This classification appears in a dedicated trend table at the top-right of the chart, along with the selected oscillator and relevant settings.
2 - Oscillator Pattern Matching Engine
You can select from a variety of studies:
RSI
CCI
Stochastic
Ultimate Oscillator
Money Flow Index
Chande Momentum Oscillator
Relative Volatility Index
The selected oscillator values are converted into different zones. The system continuously monitors the recent pattern of these zones and checks if it matches any past sequence.
Once a historical match is detected:
A message appears in the trend table confirming a match.
The script then activates the projected candle visualization, showing how price behaved after that historical pattern.
3 - Projected Candle Visualization Engine
This feature helps you visualize how price moved historically after a matching oscillator pattern.
How it works:
It retrieves the actual candles that followed the matching pattern in history.
These candles are then scaled relative to the current price to maintain proportional movement.
Candles are drawn using box objects to replicate historical price bars with visual clarity.
Candle color logic is based on oscillator zone at that moment in history -
Green: When the selected oscillator was in an overbought zone (e.g., RSI > 70)
Red: When the selected oscillator was in an oversold zone (e.g., RSI < 30)
Gray: When the selected oscillator was in a neutral zone
This lets traders see:
What happened previously after a similar condition
The general path price followed
Where potential turning points or continuation zones may lie
4 - Multi-Level Dynamic Support & Resistance
Support and resistance levels are drawn based on swing highs and lows across three levels:
You enter an initial swing length (e.g., 10 candles)
The system calculates:
Swing 2 = 2x
Swing 3 = 3x
From there, the indicator detects recent high/low turning points and draws horizontal lines that extend into the future:
R1, R2, R3 (if available) for resistance
S1, S2, S3 (if available) for support
This creates a forward-looking price structure, helping you prepare for reaction zones.
Example Use Cases
Intraday Traders (Best suited for lower timeframes):
This script is particularly effective for intraday traders operating on lower timeframes. It identifies repeating oscillator zone patterns that often precede short-term price movements. When a historical match is found, the projected candles display how price moved in similar situations, offering an immediate visual reference for possible price behavior. Combined with dynamically generated support and resistance zones, the tool adds structure to fast-paced decision-making — helping traders define entries, exits, and stop placements more confidently.
While lower timeframes offer the best responsiveness, the script can be applied across other intraday intervals depending on trading style.
Positional Traders (Best suited for higher timeframes):
For positional traders, this script provides a powerful framework to evaluate whether the current setup mirrors past conditions that led to extended moves. The projected candles show how price evolved after similar oscillator patterns in the past, allowing traders to assess potential directional strength. The trend classification engine and swing-based support/resistance zones further assist in planning position entries, managing holding periods, and identifying key structural levels.
Although higher timeframes offer deeper context for positional trading, the tool remains effective across other multi-day or weekly views as well.
Disclaimer
This script is intended for educational and informational purposes only. It does not provide any form of investment advice, trade recommendations, or performance guarantees. All tools and projections included are meant to support learning and market analysis.
The word “PRO” in the script title refers to a professional-grade analytical tool and should not be interpreted as a claim of profitability or advisory capability.
This script has been developed for use within structured educational environments and is not intended to function as a trading signal or advisory service. Please consult a qualified financial advisor or licensed professional before making any investment decisions.
ATR Table - PipsPhantom - KhoursandDisplays a customizable table of ATR values across multiple timeframes (Live, 1m, 5m, 15m, 1H, 4H, 1D, 1W) with TP/SL levels.
Features:
- Adjustable table position (top/middle/bottom, left/center/right).
- Custom text colors for 5m and 1H timeframes.
- Supports Forex, Crypto, Gold, and Silver markets.
Usage: Adjust position, colors, and decimal precision in the settings.
Ichimoku Multi KumoAww I love that vibe 😄
Here’s a cozy English version of what you just said:
This code blends Ichimoku, Bollinger Bands, and EMAs—
a little secret magic that helps me enter and exit the market at just the right moments.
And honestly… it makes trading so fun. 😌✨
RR Trail MA-Osc Strategy (entry-based TP/SL)RR Trail MA-Osc Strategy (Invite-Only | With Moving Average Shift Oscillator)
Overview
The RR Trail MA-Osc Strategy is an invite-only premium trading system that combines trend-following entry logic with a three-layered exit mechanism: fixed TP/SL, trailing stop, and divergence-based exit using a custom Moving Average Shift oscillator.
It eliminates discretion and enforces consistent, rule-based execution.
Key Features
Entry-based fixed TP/SL calculated from recent highs/lows (structural exits)
Dynamic trailing stop updated from highest/lowest price since entry
Divergence exit triggered when MA and oscillator indicate opposing directions
Long-term trend confirmation using 200-period EMA
Modular structure ideal for customization and integration
About the Moving Average Shift Oscillator
This custom oscillator normalizes the distance between price and a selected moving average, then smooths it using HMA.
Intuitively reflects trend strength and direction
Oscillates around the zero line
Used for both entry filters and divergence-based exits
Entry Logic
Long Entry Conditions
Price is above the selected short-term MA
Moving Average Shift Oscillator is above 0 and rising
200 EMA is trending upward
Short Entry Conditions
Price is below the selected short-term MA
Moving Average Shift Oscillator is below 0 and falling
200 EMA is trending downward
Exit Conditions
Fixed TP or SL is hit
Trailing stop is triggered
Divergence between oscillator and MA
Risk Management & Backtest Info
Pair: ETH/USD
Timeframe: 4H
Starting Capital: $3,000
Risk per trade: 2% (fully configurable)
Commission: 0.02%, Slippage: 2 pips
Total Trades: 651 (as of April 2025 backtest)
Customizable Parameters
MA types: SMA, EMA, SMMA, WMA, VWMA
RR ratio: Adjustable from 1.0 to 2.0+
Trailing stop range: % based
Lookback window for recent high/low (TP/SL reference)
Inspiration & Development Notes
This strategy was inspired by the concept of “Moving Average Shift” popularized by ChartPrime.
However, no original code was reused . The logic is independently developed and extended with features such as multi-layered exit control, divergence logic, and entry-based price tracking for automated TP/SL management.
Disclaimer
This script is for educational and research purposes only. It does not constitute financial advice.
Always backtest and optimize parameters according to your personal risk tolerance and trading environment before applying in live markets.
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.
Visualisation tendancesThis script allows you to visualize the current trend of a financial asset.
It has two colors:
- Green for bullish phases
- Red for bearish phases
This allows you to instantly position yourself in the direction of the trend.
It also integrates Bollinger Bands, a volatility indicator.
This allows you to display two different indicators in a single indicator.
Multitimeframe MA: MAs im aktuellen TF + M15This indicator displays the key moving averages (MAs) from both the current timeframe and the 15-minute chart (M15) directly within the active chart—perfect for traders who rely on multi-timeframe analysis.
🔍 Features:
EMA 20 (yellow) – fast average from the current timeframe
SMA 50 (red) – medium-term average from the current timeframe
SMA 100 (green) – longer-term average from the current timeframe
SMA 200 (blue) – key trend filter from the current timeframe
🕓 M15 SMA Lines (thinner, lighter colors):
SMA 50, 100, 200 from the 15-minute timeframe are shown as dotted lines, regardless of the active chart’s timeframe.
Helps identify important support/resistance zones and overall trend direction based on higher-timeframe structure.
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.
EMA Swing Strategy (No Patterns)// DESCRIPTION:
// This EMA Swing Strategy is built for short-term swing trades (2-3 days holding period) in volatile markets.
// It uses EMA 5, 10, 20, and 100 to identify momentum and trend alignment without relying on patterns, wicks, or pullbacks.
// The strategy looks for price crossing and holding above/below EMA 10 & 20 for mean reversion entries, with EMA 100 as a trend filter.
// Optional MACD histogram and ATR volatility filters can be toggled on or off for cleaner entries.
// Alerts are included for BUY/SELL signals, and the strategy is designed for high-speed, clean mechanical execution.
// Ideal for traders adapting to modern, fast-moving price action who prefer systemized logic over traditional chart reading.
Day Trade Moving Average TrioA simple, single indicator for lower timeframe day-trading with moving averages.
Multi-timeframe Moving Average Overlay w/ Sentiment Table🔍 Overview
This indicator overlays selected moving averages (MA) from multiple timeframes directly onto the chart and provides a dynamic sentiment table that summarizes the relative bullish or bearish alignment of short-, mid-, and long-term moving averages.
It supports seven moving average types — including traditional and advanced options like DEMA, TEMA, and HMA — and provides visual feedback via table highlights and alerts when strong momentum alignment is detected.
This tool is designed to support traders who rely on multi-timeframe analysis for trend confirmation, momentum filtering, and high-probability entry timing.
⚙️ Core Features
Multi-Timeframe MA Overlay:
Plot moving averages from 1-minute, 5-minute, 1-hour, 1-day, 1-week, and 1-month timeframes on the same chart for visual trend alignment.
Customizable MA Type:
Choose from:
EMA (Exponential Moving Average)
SMA (Simple Moving Average)
DEMA (Double EMA)
TEMA (Triple EMA)
WMA (Weighted MA)
VWMA (Volume-Weighted MA)
HMA (Hull MA)
Adjustable MA Length:
Change the length of all moving averages globally to suit your strategy (e.g. 9, 21, 50, etc.).
Sentiment Table:
Visually track trend sentiment across four key zones (Hourly, Daily, Weekly, Monthly). Each is based on the relative positioning of short-term and long-term MAs.
Sentiment Symbols Explained:
↑↑↑: Strong bullish momentum (short-term MAs stacked above longer-term MAs)
↑↑ / ↑: Moderate bullish bias
↓↓↓: Strong bearish momentum
↓↓ / ↓: Moderate bearish bias
Table Customization:
Choose the table’s position on the chart (bottom right, top right, bottom left, top left).
Style Customization:
Display MA lines as standard Line or Stepline format.
Color Customization:
Individual colors for each timeframe MA line for visual clarity.
Built-in Alerts:
Receive alerts when strong bullish (↑↑↑) or bearish (↓↓↓) sentiment is detected on any timeframe block.
📈 Use Cases
1. Trend Confirmation:
Use sentiment alignment across multiple timeframes to confirm the overall trend direction before entering a trade.
2. Entry Timing:
Wait for a shift from neutral to strong bullish or bearish sentiment to time entries during pullbacks or breakouts.
3. Momentum Filtering:
Only trade in the direction of the dominant multi-timeframe trend. For example, ignore long setups when all sentiment blocks show bearish alignment.
4. Swing & Intraday Scalping:
Use hourly and daily sentiment zones for swing trades, or rely on 1m/5m MAs for precise scalping decisions in fast-moving markets.
5. Strategy Layering:
Combine this overlay with support/resistance, RSI, or volume-based signals to enhance decision-making with multi-timeframe context.
⚠️ Important Notes
Lower-timeframe values (1m, 5m) may appear static on higher-timeframe charts due to resolution limits in TradingView. This is expected behavior.
The indicator uses MA stacking, not crossover events, to determine sentiment.
Michael's EMA (Selectable TF) by Koenigsegg📌 Michael’s EMA (Selectable TF) by Koenigsegg
A multi-timeframe EMA crossover trend tool for clear market direction.
🔍 CORE LOGIC & PURPOSE
This indicator visualizes the trend based on two Exponential Moving Averages (EMAs) — fast and slow — from a user-defined timeframe.
Referencing a higher timeframe strengthens the trend signal and reduces the noise from short-term volatility.
Perfect for traders seeking cleaner entries and exits , especially those who get faked out by lower timeframe chop.
✅ KEY FEATURES
1. Multi-Timeframe EMA Calculation
- Fetches EMAs from any timeframe using `request.security()`.
- Selecting a higher timeframe makes signals more meaningful and decisive .
2. Customizable EMAs
- Small EMA (default: 12) and Big EMA (default: 21).
- Clear logic:
- Uptrend = Small EMA ≥ Big EMA
- Downtrend = Small EMA < Big EMA
3. Dynamic Trend Coloring
- EMAs change color based on the trend:
- Uptrend: Green (customizable)
- Downtrend: Red (customizable)
4. Crossover Detection & Arrows
- Clean visual arrows on trend flips only.
- Optional visibility, customizable size & color.
- Built with a debounce mechanic to avoid spam signals.
5. Built-In Alerts
- Trend Up Alert when fast EMA crosses above slow EMA.
- Trend Down Alert when fast EMA crosses below slow EMA.
- Compatible with automation, bots, and manual strategies.
⚠️ PRO TIP
Using a higher timeframe (e.g., 1H on a 15m chart, or 15m on a 5m chart as visually represented on the chart) makes trend flips more decisive and reliable, helping you avoid being faked out by short-term volatility. When the higher TF flips red — that’s your true trend shift, not just noise.
🏷️ HASHTAGS
#EMA #MovingAverage #MultiTimeframe #TrendIndicator #TradingViewScript #TradingTools
#TechnicalAnalysis #PriceAction #ForexTrader #CryptoTrader #StockTrader
#AlgoTrading #TrendFlip #SmartMoney #SwingTrading #DayTrading #MarketStructure #TradingEdge #ProfMichaelG #Koenigsegg #Bitcoin
⚠️ DISCLAIMER
This script is provided for educational and informational purposes only .
It does not constitute financial advice , investment advice, or a recommendation to buy or sell any financial instruments.
Always do your own research and consult with a licensed financial advisor before making any trading decisions.
Use this tool at your own risk.
Batman - Supertrend with MA + SL/TP + Dynamic Profit %This Pine Script is a complete strategy script for TradingView named "Batman - Supertrend with MA + SL/TP + Dynamic Profit %". It's designed to help traders visually and programmatically:
Identify buy/sell signals using a Supertrend indicator
Confirm trend direction using a customizable moving average (MA)
Automatically manage trades with Stop Loss (SL) and three Take Profit (TP) levels
Track dynamic profit % from entry
Generate alerts for signal and TP hits
Visualize trade levels and conditions directly on the chart
Indicators Used:
Supertrend: Primary signal generator.
Moving Average: Used to confirm or visualize trend strength.
🎯 Signal Logic:
Buy Signal: When price crosses above the Supertrend line.
Sell Signal: When price crosses below the Supertrend line.
🔁 Entry Execution:
Long or short orders are placed based on crossover/crossunder signals.
The entry price is saved to track profits and SL/TP levels.
💰 Profit Tracking:
Calculates and displays real-time dynamic profit % of the current open trade.
A floating label shows this near the candle high.
🛡️ Risk Management:
Automatically plots:
Stop Loss line
TP1, TP2, TP3 levels
Separate lines for long and short positions.
🚨 Alerts:
Alert conditions for:
Buy/Sell signals
Hitting any of the 3 Take Profit targets (both long and short)
Hope it helps!
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.
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
MultiTF Trigger —— MACD+MAMultiTF Trigger —— MACD+MA Multi-Timeframe Entry + Exit Assistant
This script provides high-confidence trade signals based on synchronized conditions across multiple timeframes (5m, 15m, 30m, 1H). It is designed to help traders identify breakout entries supported by momentum, structure, and confirmation across layers of the market.
🟢 Entry Signal :
The script generates a strong buy trigger only when all monitored timeframes align under a custom scoring system. A built-in cooldown prevents signal overuse and overtrading.
🔴 Exit Signal:
Includes a 5-minute MACD-based divergence detector to warn of potential local tops for take-profit or de-risking decisions.
🧠 Visual Aids:
Signal markers
Price label annotations
Multi-timeframe scoring tooltip for transparency
Built-in alerts for automation
This is a powerful tool for traders seeking precise timing in trend continuation setups.
MultiTF Trigger 999 - Multi-Timeframe VersionMultiTF Trigger 999 – Multi-Timeframe Entry + Exit Assistant
This script provides high-confidence trade signals based on synchronized conditions across multiple timeframes (5m, 15m, 30m, 1H). It is designed to help traders identify breakout entries supported by momentum, structure, and confirmation across layers of the market.
🟢 Entry Signal:
The script generates a strong buy trigger only when all monitored timeframes align under a custom scoring system. A built-in cooldown prevents signal overuse and overtrading.
🔴 Exit Signal:
Includes a 5-minute MACD-based divergence detector to warn of potential local tops for take-profit or de-risking decisions.
🧠 Visual Aids:
Signal markers
Price label annotations
Multi-timeframe scoring tooltip for transparency
Built-in alerts for automation
This is a powerful tool for traders seeking precise timing in trend continuation setups.
Easy Money Maker Beta 0.1First Test of my own Indicator.
short MA 20
long MA 50
Crossover signals
ATR based bands
which provide Buy and Sell signal which dynamically calculates support and resistance.