McGinley T3 Flow Campaign [NICK789] v.1 — Strategy by NICK789

By NICK789

Performance Metrics

Description

McGinley T3 Flow Campaign is a trend-following strategy built around an adaptive signal trail and a campaign-style trade management model.The script is designed to identify confirmed trend-flow transitions, open a long or short campaign, and then display entry, target, and optional stop levels directly on the chart. It is not intended to predict tops or bottoms. Instead, it waits for the selected flow engine to shift direction and then manages the trade as a structured campaign.━━━━━━━━━━━━━━━━━━━━━━CORE IDEA━━━━━━━━━━━━━━━━━━━━━━The main concept is to combine an adaptive moving-average engine with an ATR-based trailing structure.The signal engine can use:• McGinley Dynamic only• T3 smoothing only• A blend of McGinley Dynamic and T3The McGinley Dynamic is used because it adapts to changes in price speed more smoothly than a standard moving average. T3 smoothing is included as an optional alternative for traders who prefer a smoother trend basis. The blended mode averages both curves to create a balanced engine between responsiveness and smoothness.After the engine basis is calculated, the script builds an ATR signal trail around it. The trail updates using volatility distance and then locks in a directional path. A confirmed transition in this trail creates the long or short signal.This means the signal is not based on a simple moving-average crossover. The strategy waits for the adaptive trail itself to shift direction.━━━━━━━━━━━━━━━━━━━━━━HOW SIGNALS ARE GENERATED━━━━━━━━━━━━━━━━━━━━━━A long signal occurs when the ATR signal trail confirms an upward transition.A short signal occurs when the ATR signal trail confirms a downward transition.Signals are confirmed on closed bars. This helps avoid reacting to unfinished candle movement.The script separates main signals from continuation signals:• Main BUY / SELL labels appear when a new direction starts• Smaller continuation triangles appear when the same direction refreshesThis keeps the chart cleaner while still showing when the flow continues in the same direction.━━━━━━━━━━━━━━━━━━━━━━CAMPAIGN TARGET MODEL━━━━━━━━━━━━━━━━━━━━━━Instead of using only fixed ATR targets, this strategy uses a campaign target system.There are two target modes:1. Flow Trail Based Targets are projected from the distance between price and the active ATR signal trail. This makes the target model expand and contract with the current trend structure.2. ATR Baseline Targets are projected from a standard ATR baseline for traders who prefer a more traditional volatility target model.The Flow Trail Based mode is the default because it connects the target spacing directly to the same adaptive trail that produced the signal.Target levels are displayed as:• Entry• TP1• TP2• TP3• Optional SLEach level includes its price on the chart.━━━━━━━━━━━━━━━━━━━━━━TAKE PROFIT EXIT MODES━━━━━━━━━━━━━━━━━━━━━━The strategy includes multiple take-profit behaviours:• TP1 Only• TP2 Only• TP3 Only• Scale Out TP1 / TP2 / TP3In scale-out mode, the position is reduced across TP1, TP2, and TP3 using the percentage settings.In single-target modes, the strategy exits the full position at the selected target.This allows the same signal engine to be tested with different trade management styles.━━━━━━━━━━━━━━━━━━━━━━STOP MODE━━━━━━━━━━━━━━━━━━━━━━The stop system has three modes:• Off• Visual Only• Visual + Strategy ExitBy default, Stop Mode is set to Visual Only.This means the SL line is shown as a campaign reference, but it does not close the strategy trade unless the user changes Stop Mode to Visual + Strategy Exit.This is intentional because some traders use the stop line as a visual invalidation reference while others want the strategy tester to execute the stop automatically.━━━━━━━━━━━━━━━━━━━━━━DASHBOARD━━━━━━━━━━━━━━━━━━━━━━The dashboard shows:• Selected engine mode• Selected target mode• Current flow state• Current strategy position• Win rate• PNL and drawdown━━━━━━━━━━━━━━━━━━━━━━HOW TO USE━━━━━━━━━━━━━━━━━━━━━━1. Choose the engine mode McGinley Only is the default and gives a responsive adaptive trend read. T3 Only is smoother. Blend mode combines both.2. Adjust ATR Trail Length and ATR Trail Multiplier These settings control how sensitive the signal trail is. Lower values react faster but may create more signals. Higher values create smoother signals but can be slower.3. Choose the Target Mode Flow Trail Based uses the distance from price to the signal trail. ATR Baseline uses a standard ATR distance.4. Choose the Take Profit Exit Mode Use TP1, TP2, or TP3 only for full exits, or use Scale Out mode for partial profit-taking.5. Choose the Stop Mode Use Visual Only for chart reference. Use Visual + Strategy Exit if you want the strategy tester to close trades at the stop level.6. Use the Backtest Start setting The Backtest Start input lets users control the test period without changing the script.━━━━━━━━━━━━━━━━━━━━━━WHAT MAKES THIS SCRIPT DIFFERENT━━━━━━━━━━━━━━━━━━━━━━This script is not a simple collection of unrelated indicators.The components are connected in a single workflow:• The McGinley/T3 engine creates the adaptive trend basis• The ATR signal trail converts that basis into a directional flow line• Confirmed trail transitions create campaign entries• The target system projects trade levels from the active flow structure• The dashboard summarizes the active engine, target model, trade state, and performanceThe main purpose of the script is to turn an adaptive trend transition into a structured trade campaign with visible entry, targets, stop reference, and performance context.━━━━━━━━━━━━━━━━━━━━━━IMPORTANT NOTES━━━━━━━━━━━━━━━━━━━━━━This is a strategy script for backtesting and study. It is not financial advice.Past performance does not guarantee future results.Results will vary by symbol, timeframe, spread, commission, session, and market condition.The script works best when users test different settings for the market they trade instead of assuming one preset fits every asset.Because this is a trend-following model, it can perform well during directional moves but may produce weaker results during sideways or choppy conditions.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView