TASC 2025.05 Trading The Channel█ OVERVIEW
This script implements channel-based trading strategies based on the concepts explained by Perry J. Kaufman in the article "A Test Of Three Approaches: Trading The Channel" from the May 2025 edition of TASC's Traders' Tips . The script explores three distinct trading methods for equities and futures using information from a linear regression channel. Each rule set corresponds to different market behaviors, offering flexibility for trend-following, breakout, and mean-reversion trading styles.
█ CONCEPTS
Linear regression
Linear regression is a model that estimates the relationship between a dependent variable and one or more independent variables by fitting a straight line to the observed data. In the context of financial time series, traders often use linear regression to estimate trends in price movements over time.
The slope of the linear regression line indicates the strength and direction of the price trend. For example, a larger positive slope indicates a stronger upward trend, and a larger negative slope indicates the opposite. Traders can look for shifts in the direction of a linear regression slope to identify potential trend trading signals, and they can analyze the magnitude of the slope to support trading decisions.
One caveat to linear regression is that most financial time series data does not follow a straight line, meaning a regression line cannot perfectly describe the relationships between values. Prices typically fluctuate around a regression line to some degree. As such, analysts often project ranges above and below regression lines, creating channels to model the expected extent of the data's variability. This strategy constructs a channel based on the method used in Kaufman's article. It measures the maximum distances from points on the linear regression line to historical price values, then adds those distances and the current slope to the regression points.
Depending on the trading style, traders might look for prices to move outside an established channel for breakout signals, or they might look for price action to reach extremes within the channel for potential mean reversion opportunities.
█ STRATEGY CALCULATIONS
Primary trade rules
This strategy implements three distinct sets of rules for trend, breakout, and mean-reversion trades based on the methods Kaufman describes in his article:
Trade the trend (Rule 1) : Open new positions when the sign of the slope changes, indicating a potential trend reversal. Close short trades and enter a long trade when the slope changes from negative to positive, and do the opposite when the slope changes from positive to negative.
Trade channel breakouts (Rule 2) : Open new positions when prices cross outside the linear regression channel for the current sample. Close short trades and enter a long trade when the price moves above the channel, and do the opposite when the price moves below the channel.
Trade within the channel (Rule 3) : Open new positions based on price values within the channel's range. Close short trades and enter a long trade when the price is near the channel's low, within a specified percentage of the channel's range, and do the opposite when the price is near the channel's high. With this rule, users can also filter the trades based on the channel's slope. When the filter is active, long positions are allowed only when the slope is positive, and short positions are allowed only when it is negative.
Position sizing
Kaufman's strategy uses specific trade sizes for equities and futures markets:
For an equities symbol, the number of shares traded is $10,000 divided by the current price.
For a futures symbol, the number of contracts traded is based on a volatility-adjusted formula that divides $25,000 by the product of the 20-bar average true range and the instrument's point value.
By default, this script automatically uses these sizes for its trade simulation on equities and futures symbols and does not simulate trading on other symbols. However, users can control position sizes from the "Settings/Properties" tab and enable trade simulation on other symbol types by selecting the "Manual" option in the script's "Position sizing" input.
Stop-loss
This strategy includes the option to place an accompanying stop-loss order for each trade, which users can enable from the "SL %" input in the "Settings/Inputs" tab. When enabled, the strategy places a stop-loss order at a specified percentage distance from the closing price where the entry order occurs, allowing users to compare how the strategy performs with added loss protection.
█ USAGE
This strategy adapts its display logic for the three trading approaches based on the rule selected in the "Trade rule" input:
For all rules, the script plots the linear regression slope in a separate pane. The plot is color-coded to indicate whether the current slope is positive or negative.
When the selected rule is "Trade the trend", the script plots triangles in the separate pane to indicate when the slope's direction changes from positive to negative or vice versa. Additionally, it plots a color-coded SMA on the main chart pane, allowing visual comparison of the slope to directional changes in a moving average.
When the rule is "Trade channel breakouts" or "Trade within the channel", the script draws the current period's linear regression channel on the main chart pane, and it plots bands representing the history of the channel values from the specified start time onward.
When the rule is "Trade within the channel", the script plots overbought and oversold zones between the bands based on a user-specified percentage of the channel range to indicate the value ranges where new trades are allowed.
Users can customize the strategy's calculations with the following additional inputs in the "Settings/Inputs" tab:
Start date : Sets the date and time when the strategy begins simulating trades. The script marks the specified point on the chart with a gray vertical line. The plots for rules 2 and 3 display the bands and trading zones from this point onward.
Period : Specifies the number of bars in the linear regression channel calculation. The default is 40.
Linreg source : Specifies the source series from which to calculate the linear regression values. The default is "close".
Range source : Specifies whether the script uses the distances from the linear regression line to closing prices or high and low prices to determine the channel's upper and lower ranges for rules 2 and 3. The default is "close".
Zone % : The percentage of the channel's overall range to use for trading zones with rule 3. The default is 20, meaning the width of the upper and lower zones is 20% of the range.
SL% : If the checkbox is selected, the strategy adds a stop-loss to each trade at the specified percentage distance away from the closing price where the entry order occurs. The checkbox is deselected by default, and the default percentage value is 5.
Position sizing : Determines whether the strategy uses Kaufman's predefined trade sizes ("Auto") or allows user-defined sizes from the "Settings/Properties" tab ("Manual"). The default is "Auto".
Long trades only : If selected, the strategy does not allow short positions. It is deselected by default.
Trend filter : If selected, the strategy filters positions for rule 3 based on the linear regression slope, allowing long positions only when the slope is positive and short positions only when the slope is negative. It is deselected by default.
NOTE: Because of this strategy's trading rules, the simulated results for a specific symbol or channel configuration might have significantly fewer than 100 trades. For meaningful results, we recommend adjusting the start date and other parameters to achieve a reasonable number of closed trades for analysis.
Additionally, this strategy does not specify commission and slippage amounts by default, because these values can vary across market types. Therefore, we recommend setting realistic values for these properties in the "Cost simulation" section of the "Settings/Properties" tab.
Indicadores e estratégias
Weighted Ichimoku StrategyLSE:HSBA
The Ichimoku Kinko Hyo indicator is a comprehensive tool that combines multiple signals to identify market trends and potential buying/selling opportunities. My weighted variant of this strategy attempts to assign specific weights to each signal, allowing for a more nuanced and customizable approach to trend identification. The intent is to try and make a more informed trading decision based on the cumulative strength of various signals.
I've tried not to make it a mishmash of this and that + MACD + RSI and on and on; most people have their preferred indicator that focuses on just that that they can use in conjunction.
The signals used can be grouped into two groups the 'Core Ichimoku Signals' & the 'Additional Signals' (at the end you will find the signals and their assigned weights followed by the thresholds where they align).
The Core Ichimoku Signals are the primary signals used in Ichimoku analysis, including Kumo Breakout, Chikou Cross, Kijun Cross, Tenkan Cross, and Kumo Twist.
While the Additional Signals provide further insights and confirmations, such as Kijun Confirmation, Tenkan-Kijun Above Cloud, Chikou Above Cloud, Price-Kijun Cross, Chikou Span Signal, and Price Positioning.
Entries are triggered when the cumulative weight of bullish signals exceeds a specified buy threshold, indicating a strong uptrend or potential trend reversal.
Exits are initiated when the cumulative weight of bearish signals surpasses a specified sell threshold, or when additional conditions such as consolidation patterns or ATR-based targets are met.
There are various exit types that you can choose between, which can be used separately or in conjunction with one another. As an example you might want to exit on a different condition during consolidation periods than during other periods or just use ATR with some other backstop.
They are listed in evaluation order i.e. ATR trumps all, Consolidation exit trumps the regular Kumo sell and so on:
**ATR Sell**: Exits trades based on ATR-based profit targets and stop-losses.
**Consolidation Exit**: Exits trades during consolidation periods to reduce drawdown.
**Sell Below Kumo**: Exits trades when the price is below the Kumo, indicating a potential downtrend.
**Sell Threshold**: Exits trades when the cumulative weight of bearish signals surpasses a specified sell threshold.
There are various 'filters' which are really behavior modifiers:
**Kumo Breakout Filter**: Requires price to close above the Kumo for buy signals (essentially a entry delay).
**Whipsaw Filter**: Ensures trend strength over specified days to reduce false signals.
**Buy Cooldown**: Prevents new entries until half the Kijun period passes after an exit (prevents flapping).
**Chikou Filter**: Delays exits unless the previous close is below the Chikou Span.
**Consolidation Trend Filter**: Prevents consolidation exits if the trend is bullish (rare, but happens).
Then there are some debugging options. Ichimoku periods have some presets (personally I like 8/22/44/22) but are freely configurable, preset to the traditional values for purists.
The list of signals and most thresholds follow, play around with them. Thats all.
Cheers,
**Core Ichimoku Signals**
**Kumo Breakout**
- 30 (Bullish) / -30 (Bearish)
- Indicates a strong trend when the price breaks above (bullish) or below (bearish) the Kumo (cloud). This signal suggests a significant shift in market sentiment.
**Chikou Cross**
- 20 (Bullish) / -20 (Bearish)
- Shows the relationship between the Chikou Span (lagging span) and the current price. A bullish signal occurs when the Chikou Span is above the price, indicating a potential uptrend. Conversely, a bearish signal occurs when the Chikou Span is below the price, suggesting a downtrend.
**Kijun Cross**
- 15 (Bullish) / -15 (Bearish)
- Signals trend changes when the Tenkan-sen (conversion line) crosses above (bullish) or below (bearish) the Kijun-sen (base line). This crossover is often used to identify potential trend reversals.
**Tenkan Cross**
- 10 (Bullish) / -10 (Bearish)
- Indicates short-term trend changes when the price crosses above (bullish) or below (bearish) the Tenkan-sen. This signal helps identify minor trend shifts within the broader trend.
**Kumo Twist**
- 5 (Bullish) / -5 (Bearish)
- Shows changes in the Kumo's direction, indicating potential trend shifts. A bullish Kumo Twist occurs when Senkou Span A crosses above Senkou Span B, and a bearish twist occurs when Senkou Span A crosses below Senkou Span B.
**Additional Signals**
**Kijun Confirmation**
- 8 (Bullish) / -8 (Bearish)
- Confirms the trend based on the price's position relative to the Kijun-sen. A bullish signal occurs when the price is above the Kijun-sen, and a bearish signal occurs when the price is below it.
**Tenkan-Kijun Above Cloud**
- 5 (Bullish) / -5 (Bearish)
- Indicates a strong bullish trend when both the Tenkan-sen and Kijun-sen are above the Kumo. Conversely, a bearish signal occurs when both lines are below the Kumo.
**Chikou Above Cloud**
- 5 (Bullish) / -5 (Bearish)
- Shows the Chikou Span's position relative to the Kumo, indicating trend strength. A bullish signal occurs when the Chikou Span is above the Kumo, and a bearish signal occurs when it is below.
**Price-Kijun Cross**
- 2 (Bullish) / -2 (Bearish)
- Signals short-term trend changes when the price crosses above (bullish) or below (bearish) the Kijun-sen. This signal is similar to the Kijun Cross but focuses on the price's direct interaction with the Kijun-sen.
**Chikou Span Signal**
- 10 (Bullish) / -10 (Bearish)
- Indicates the trend based on the Chikou Span's position relative to past price highs and lows. A bullish signal occurs when the Chikou Span is above the highest high of the past period, and a bearish signal occurs when it is below the lowest low.
**Price Positioning**
- 10 (Bullish) / -10 (Bearish)
- Shows indecision when the price is between the Tenkan-sen and Kijun-sen, indicating a potential consolidation phase. A bullish signal occurs when the price is above both lines, and a bearish signal occurs when the price is below both lines.
**Confidence Level**: Highly Sensitive
- **Buy Threshold**: 50
- **Sell Threshold**: -50
- **Notes / Significance**: ~2–3 signals, very early trend detection. High sensitivity, may capture noise and false signals.
**Confidence Level**: Entry-Level
- **Buy Threshold**: 58
- **Sell Threshold**: -58
- **Notes / Significance**: ~3–4 signals, often Chikou Cross or Kumo Breakout. Very sensitive, risks noise (e.g., false buys in choppy markets).
**Confidence Level**: Entry-Level
- **Buy Threshold**: 60
- **Sell Threshold**: -60
- **Notes / Significance**: ~3–4 signals, Kumo Breakout or Chikou Cross anchors. Entry point for early trends.
**Confidence Level**: Moderate
- **Buy Threshold**: 65
- **Sell Threshold**: -65
- **Notes / Significance**: ~4–5 signals, balances sensitivity and reliability. Suitable for moderate risk tolerance.
**Confidence Level**: Conservative
- **Buy Threshold**: 70
- **Sell Threshold**: -70
- **Notes / Significance**: ~4–5 signals, emphasizes stronger confirmations. Reduces false signals but may miss some opportunities.
**Confidence Level**: Very Conservative
- **Buy Threshold**: 75
- **Sell Threshold**: -75
- **Notes / Significance**: ~5–6 signals, prioritizes high confidence. Minimizes risk but may enter trades late.
**Confidence Level**: High Confidence
- **Buy Threshold**: 80
- **Sell Threshold**: -80
- **Notes / Significance**: ~6–7 signals, very strong confirmations needed. Suitable for cautious traders.
**Confidence Level**: Very High Confidence
- **Buy Threshold**: 85
- **Sell Threshold**: -85
- **Notes / Significance**: ~7–8 signals, extremely high confidence required. Minimizes false signals significantly.
**Confidence Level**: Maximum Confidence
- **Buy Threshold**: 90
- **Sell Threshold**: -90
- **Notes / Significance**: ~8–9 signals, maximum confidence level. Ensures trades are highly reliable but may result in fewer trades.
**Confidence Level**: Ultra Conservative
- **Buy Threshold**: 100
- **Sell Threshold**: -100
- **Notes / Significance**: ~9–10 signals, ultra-high confidence. Trades are extremely reliable but opportunities are rare.
**Confidence Level**: Extreme Confidence
- **Buy Threshold**: 110
- **Sell Threshold**: -110
- **Notes / Significance**: All signals align, extreme confidence. Trades are almost certain but very few opportunities.
Dskyz (DAFE) AI Adaptive Regime - Beginners VersionDskyz (DAFE) AI Adaptive Regime - Pro: Revolutionizing Trading for All
Introduction
In the fast-paced world of financial markets, traders need tools that can keep up with ever-changing conditions while remaining accessible. The Dskyz (DAFE) AI Adaptive Regime - Pro is a groundbreaking TradingView strategy that delivers advanced, AI-driven trading capabilities to everyday traders. Available on TradingView (TradingView Scripts), this Pine Script strategy combines sophisticated market analysis with user-friendly features, making it a standout choice for both novice and experienced traders.
Core Functionality
The strategy is built to adapt to different market regimes—trending, ranging, volatile, or quiet—using a robust set of technical indicators, including:
Moving Averages (MA): Fast and slow EMAs to detect trend direction.
Average True Range (ATR): For dynamic stop-loss and volatility assessment.
Relative Strength Index (RSI) and MACD: Multi-timeframe confirmation of momentum and trend.
Average Directional Index (ADX): To identify trending markets.
Bollinger Bands: For assessing volatility and range conditions.
Candlestick Patterns: Recognizes patterns like bullish engulfing, hammer, and double bottoms, confirmed by volume spikes.
It generates buy and sell signals based on a scoring system that weighs these indicators, ensuring trades align with the current market environment. The strategy also includes dynamic risk management with ATR-based stops and trailing stops, as well as performance tracking to optimize future trades.
What Sets It Apart
The Dskyz (DAFE) AI Adaptive Regime - Pro distinguishes itself from other TradingView strategies through several unique features, which we compare to common alternatives below:
| Feature | Dskyz (DAFE) | Typical TradingView Strategies|
|---------|-------------|------------------------------------------------------------|
| Regime Detection | Automatically identifies and adapts to **four** market regimes | Often static or limited to trend/range detection |
| Multi‑Timeframe Analysis | Uses higher‑timeframe RSI/MACD for confirmation | Rarely incorporates multi‑timeframe data |
| Pattern Recognition | Detects candlestick patterns **with volume confirmation** | Limited or no pattern recognition |
| Dynamic Risk Management | ATR‑based stops and trailing stops | Often uses fixed stops or basic risk rules |
| Performance Tracking | Adjusts thresholds based on past performance | Typically static parameters |
| Beginner‑Friendly Presets | Aggressive, Conservative, Optimized profiles | Requires manual parameter tuning |
| Visual Cues | Color‑coded backgrounds for regimes | Basic or no visual aids |
The Dskyz strategy’s ability to integrate regime detection, multi-timeframe analysis, and user-friendly presets makes it uniquely versatile and accessible, addressing the needs of everyday traders who want professional-grade tools without the complexity.
-Key Features and Benefits
[Why It’s Ideal for Everyday Traders
⚡The Dskyz (DAFE) AI Adaptive Regime - Pro democratizes advanced trading by offering professional-grade tools in an accessible package. Unlike many TradingView strategies that require deep technical knowledge or fail in changing market conditions, this strategy simplifies complex analysis while maintaining robustness. Its presets and visual aids make it easy for beginners to start, while its adaptive features and performance tracking appeal to advanced traders seeking an edge.
🔄Limitations and Considerations
Market Dependency: Performance varies by market and timeframe. Backtesting is essential to ensure compatibility with your trading style.
Learning Curve: While presets simplify use, understanding regimes and indicators enhances effectiveness.
No Guaranteed Profits: Like all strategies, success depends on market conditions and proper execution. The Reddit discussion highlights skepticism about TradingView strategies’ universal success (Reddit Discussion).
Instrument Specificity: Optimized for futures (e.g., ES, NQ) due to fixed tick values. Test on other instruments like stocks or forex to verify compatibility.
📌Conclusion
The Dskyz (DAFE) AI Adaptive Regime - Pro is a revolutionary TradingView strategy that empowers everyday traders with advanced, AI-driven tools. Its ability to adapt to market regimes, confirm signals across timeframes, and manage risk dynamically. sets it apart from typical strategies. By offering beginner-friendly presets and visual cues, it makes sophisticated trading accessible without sacrificing power. Whether you’re a novice looking to trade smarter or a pro seeking a competitive edge, this strategy is your ticket to mastering the markets. Add it to your chart, backtest it, and join the elite traders leveraging AI to dominate. Trade like a boss today! 🚀
Use it with discipline. Use it with clarity. Trade smarter.
**I will continue to release incredible strategies and indicators until I turn this into a brand or until someone offers me a contract.
-Dskyz
DEMA Trend Oscillator Strategy📌 Overview
The DEMA Trend Oscillator Strategy is a dynamic trend-following approach based on the Normalized DEMA Oscillator SD.
It adapts in real-time to market volatility with the goal of improving entry accuracy and optimizing risk management.
⚠️ This strategy is provided for educational and research purposes only.
Past performance does not guarantee future results.
🎯 Strategy Objectives
The main goal of this strategy is to respond quickly to sudden price movements and trend reversals,
by combining momentum-based signals with volatility filters.
It is designed to be user-friendly for traders of all experience levels.
✨ Key Features
Normalized DEMA Oscillator: A momentum indicator that normalizes DEMA values on a 0–100 scale, allowing intuitive identification of trend strength
Two-Bar Confirmation Filter: Requires two consecutive bullish or bearish candles to reduce noise and enhance entry reliability
ATR x2 Trailing Stop: In addition to fixed stop-loss levels, a trailing stop based on 2× ATR is used to maximize profits during strong trends
📊 Trading Rules
Long Entry:
Normalized DEMA > 55 (strong upward momentum)
Candle low is above the upper SD band
Two consecutive bullish candles appear
Short Entry:
Normalized DEMA < 45 (downward momentum)
Candle high is below the lower SD band
Two consecutive bearish candles appear
Exit Conditions:
Take-profit at a risk-reward ratio of 1.5
Stop-loss triggered if price breaks below (long) or above (short) the SD band
Trailing stop activated based on 2× ATR to secure and extend profits
💰 Risk Management Parameters
Symbol & Timeframe: Any (AUDUSD 5M example)
Account size (virtual): $3000
Commission: 0.4PIPS(0.0004)
Slippage: 2 pips
Risk per trade: 5%
Number of trades (backtest):534
All parameters can be adjusted based on broker specifications and individual trading profiles.
⚙️ Trading Parameters & Considerations
Indicator: Normalized DEMA Oscillator SD
Parameter settings:
DEMA Period (len_dema): 40
Base Length: 20
Long Threshold: 55
Short Threshold: 45
Risk-Reward Ratio: 1.5
ATR Multiplier for Trailing Stop: 2.0
🖼 Visual Support
The chart displays the following visual elements:
Upper and lower SD bands (±2 standard deviations)
Entry signals shown as directional arrows
🔧 Strategy Improvements & Uniqueness
This strategy is inspired by “Normalized DEMA Oscillator SD” by QuantEdgeB,
but introduces enhancements such as a two-bar confirmation filter and an ATR-based trailing stop.
Compared to conventional trend-following strategies, it offers superior noise filtering and profit optimization.
✅ Summary
The DEMA Trend Oscillator Strategy is a responsive and practical trend-following method
that combines momentum detection with adaptive risk management.
Its visual clarity and logical structure make it a powerful and repeatable tool
for traders seeking consistent performance in trending markets.
⚠️ Always apply appropriate risk management. This strategy is based on historical data and does not guarantee future results.
Phoenix Pro Strategy📘 Phoenix Pro Indicator & Strategy – Technical Documentation
🔧 Overview
The Phoenix Pro Indicator is a comprehensive multi-tool indicator designed for trend detection, momentum analysis, volatility visualization, and automated strategy execution on TradingView. It integrates:
EMA, SMA (Trend Filters)
RSI (Momentum)
Bollinger Bands (Volatility)
Pivot Support/Resistance (Price Structure)
ZigZag Highs/Lows (Market Structure)
Auto Buy/Sell Strategy Logic
📊 Technical Components
🔹 1. Trend Filters (EMA/SMA)
Fast EMA (default 9): Short-term trend direction
Slow EMA (default 21): Long-term trend filter
SMA Short (default 20): Confirms price momentum
SMA Long (default 50): General market trend direction
pine
Kopyala
Düzenle
emaFast = ta.ema(close, 9)
emaSlow = ta.ema(close, 21)
🔹 2. RSI
Detects overbought/oversold conditions.
Used to time entries with trend confirmation.
pine
Kopyala
Düzenle
rsi = ta.rsi(close, 14)
🔹 3. Bollinger Bands
Measures volatility and helps detect breakouts.
pine
Kopyala
Düzenle
basis = ta.sma(close, 20)
upperBB = basis + 2 * ta.stdev(close, 20)
lowerBB = basis - 2 * ta.stdev(close, 20)
🔹 4. Pivot Support/Resistance
Highlights recent local highs and lows as potential reversal zones.
pine
Kopyala
Düzenle
pivotHigh = ta.pivothigh(high, 5, 5)
pivotLow = ta.pivotlow(low, 5, 5)
🔹 5. ZigZag
Simplifies price structure visualization to identify swing highs/lows.
pine
Kopyala
Düzenle
zigzagTop := (high >= high * (1 + dev / 100)) ? high : zigzagTop
📈 Strategy Logic
✅ Long Entry:
text
Kopyala
Düzenle
- EMA Fast > EMA Slow
- Close > SMA Short
- RSI < 60
- Close > Bollinger Basis
🔻 Short Entry:
text
Kopyala
Düzenle
- EMA Fast < EMA Slow
- Close < SMA Short
- RSI > 40
- Close < Bollinger Basis
📉 Exit Logic:
Close long if short condition triggers.
Close short if long condition triggers.
✅ Pine Script Strategy Code Snippet:
pine
Kopyala
Düzenle
strategy.entry("Long", strategy.long, when=longCond)
strategy.close("Long", when=shortCond)
strategy.entry("Short", strategy.short, when=shortCond)
strategy.close("Short", when=longCond)
🖥️ Usage in TradingView
Open TradingView
Click on Pine Editor (bottom tab)
Paste the full script
Click Add to Chart
Select the Strategy Tester tab to view performance
Adjust input parameters via settings ⚙️
⚙️ Recommended Settings (Adjust as needed)
Input Default Notes
EMA Fast 9 Short-term sensitivity
EMA Slow 21 Trend confirmation
SMA Short 20 Entry condition check
RSI Period 14 Momentum filter
RSI OB/OS 70/30 Entry condition tuning
Bollinger Length 20 For mean reversion / trend volatility
ZigZag Deviation (%) 5.0 Increase for higher-timeframe clarity
📌 Notes & Tips
Use on higher timeframes (1H, 4H, 1D) for better signals.
Combine with macro/fundamental filters for advanced setups.
Adjust parameters based on market type (ranging vs trending).
Use strategy tester to optimize performance.
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.
Quantum Phoenix 2.0 Quantum Phoenix 2.0 – Strategy Documentation
Version: Pine Script v5
Platform: TradingView
Script Type: Strategy (Backtest & Alerts)
Overlay: Yes
Purpose: To identify high-probability breakout entries with trend, volume, and multi-timeframe confirmation.
🔧 Inputs
Parameter Description Default
Risk % Percentage of account risked per trade 1.0%
Account Size ($) Virtual capital for position size calculation 10,000
Take Profit % Target profit per trade 3.0%
Stop Loss % Maximum allowed loss per trade 1.5%
Min. ADX Strength Minimum trend strength to validate entry 20
Volume Filter If enabled, filters out low-volume conditions Enabled
📈 Indicators Used
EMA 50 & EMA 200: Trend confirmation
RSI (14): Momentum condition
MACD Histogram: Entry timing filter
SuperTrend (3,7): Trend direction
ADX & DMI (14): Trend strength and direction
Volume + 20 SMA: Volume filter
ATR (14): Used for dynamic position sizing
MTF EMAs (1H): Higher timeframe trend confirmation
📊 Entry Conditions
🟢 LONG:
Price > EMA200
EMA50 > EMA200
RSI between 40–70
MACD Histogram > 0
1H EMA50 > 1H EMA200 (MTF Trend Up)
ADX > threshold and SuperTrend is Bullish
Volume filter (if enabled) must be met
🔴 SHORT:
Price < EMA200
EMA50 < EMA200
RSI between 30–60
MACD Histogram < 0
1H EMA50 < 1H EMA200 (MTF Trend Down)
ADX > threshold and SuperTrend is Bearish
Volume filter (if enabled) must be met
💼 Risk Management
Uses ATR-based position sizing
Position Size = (AccountSize * Risk%) / ATR
Take Profit and Stop Loss levels are calculated based on % of price
📉 Strategy Orders
pinescript
Kopyala
Düzenle
strategy.entry("Long", strategy.long, when=longCond)
strategy.exit("TP/SL Long", from_entry="Long", limit=TP Level, stop=SL Level)
strategy.close("Long", when=MACD Histogram < 0 or RSI > 70)
strategy.entry("Short", strategy.short, when=shortCond)
strategy.exit("TP/SL Short", from_entry="Short", limit=TP Level, stop=SL Level)
strategy.close("Short", when=MACD Histogram > 0 or RSI < 30)
📊 Visual Components
EMA Lines: EMA50 (orange), EMA200 (teal)
Labels on Chart: “AL” for Long, “SAT” for Short
Dashboard Table (Top-Right):
Strategy name
Account balance
TP & SL rates
Current ADX & ATR values
Multi-Timeframe Trend Status (UP / DOWN / FLAT)
🚨 Alerts
LONG Giriş: Triggers when all Long conditions are met
SHORT Giriş: Triggers when all Short conditions are met
Ideal for automated alert-based trading bots or Telegram signal bots
📌 Notes
Script is designed for educational and strategic testing purposes.
Real trading decisions must include manual confirmation and risk assessment.
Strategy results may vary based on asset type and market conditions.
Quantum Phoenix Strategy📘 Quantum Phoenix Strategy – Pine Script v5
Version: 2.0
Platform: TradingView
Author: Başkan
🔧 Overview
Quantum Phoenix Strategy is a trend-following, multi-timeframe (MTF) validated algorithm that uses a combination of EMA, RSI, MACD, ATR, and Supertrend indicators to detect high-probability long and short trade opportunities. It includes risk-based position sizing, dynamic TP/SL levels, dashboard display, and alert conditions for automation.
⚙️ Core Features
Feature Description
📈 Trend Detection Uses EMA 50/200 crossovers, MACD histogram, RSI values, and Supertrend direction
🕒 MTF Trend Filter 1-hour EMA trend confirmation
💰 Risk Management ATR-based position sizing and custom risk allocation
🎯 TP/SL Targets Take Profit and Stop Loss set as percentage of price
🧠 Strategy Logic Entry and exit logic for both long and short positions
🛎️ Alerts Long/Short signal alert conditions
🖼️ Visual Panel On-chart dashboard showing strategy parameters
📉 Indicator Plots EMA lines and entry signal markers on the chart
🔍 Inputs & Parameters
Parameter Type Description
riskPercent float (0.1–10) Percentage of capital to risk per trade
accountSize float Virtual account size for position sizing
takeProfitPercent float Take Profit level in %
stopLossPercent float Stop Loss level in %
📊 Indicator Logic
✅ Long Entry:
Price > EMA200
EMA50 > EMA200
RSI between 40 and 70
MACD Histogram > 0
Supertrend direction is bullish
1-hour MTF EMA trend is upward
❌ Long Exit:
RSI > 70
MACD Histogram turns negative
⛔ Short Entry:
Price < EMA200
EMA50 < EMA200
RSI between 30 and 60
MACD Histogram < 0
Supertrend direction is bearish
1-hour MTF EMA trend is downward
🚪 Short Exit:
RSI < 30
MACD Histogram turns positive
🧮 Risk Calculation
The position size is calculated using the ATR (Average True Range) as a measure of volatility:
plaintext
Kopyala
Düzenle
riskAmount = accountSize * (riskPercent / 100)
positionSize = riskAmount / ATR
This means that for higher volatility, the position size is reduced to maintain the same risk exposure.
📺 On-Chart Dashboard
Every 10 bars, a visual panel is updated on the chart showing:
Strategy title
Risk and account size
TP/SL percentages and ATR value
MTF trend direction (UP / DOWN / FLAT)
🚨 Alerts
These alerts can be used to trigger notifications or webhook integrations:
"Long Giriş" – Triggers when long conditions are met
"Short Giriş" – Triggers when short conditions are met
🎨 Visual Elements
EMA50 and EMA200 plotted as orange and teal lines
Long signals shown with green upward labels
Short signals shown with red downward labels
🧠 Best Practices
Combine this strategy with manual confirmation or fundamental analysis
Optimize takeProfitPercent and stopLossPercent values based on asset volatility
Use alerts with a trading bot for automation (e.g., via webhook & Telegram integration)
Monitor the dashboard for MTF trend consistency
Phoenix Master Strategy (PMI)Phoenix Master Strategy (PMI) - Documentation
🧠 Overview
Phoenix Master Strategy (PMI) is a comprehensive Pine Script strategy combining trend detection, buy/sell signals, volatility, sentiment estimation, liquidity zones, and position sizing—all in one powerful package. It supports both visual chart analysis and strategy backtesting.
⚙️ Inputs
Parameter Description
timeframeTrend Timeframe used to determine trend (e.g., "D" for Daily).
showBackground Enables background coloring based on trend direction.
riskPercent Risk percentage per trade.
accountSize Total account size in USD. Used to calculate position size.
📈 Trend Detection - EMA
Uses two EMAs: emaFast (default: 9) and emaSlow (default: 21).
Trend Direction:
Uptrend: Fast EMA > Slow EMA
Downtrend: Fast EMA < Slow EMA
Optional background coloring to visually indicate trend.
💹 Momentum Indicators
RSI (Relative Strength Index)
Custom period (rsiLength) and overbought/oversold thresholds.
Used for momentum filtering.
MACD
Standard MACD (12, 26, 9) applied to selected source.
MACD histogram value used to assess momentum direction.
Stoch RSI
Calculates %K and %D values to detect short-term overbought/oversold areas.
Helps fine-tune signal entries.
☁️ Ichimoku Cloud
Calculates full Ichimoku components: Tenkan, Kijun, Senkou A/B, and Chikou Span.
Trend Inference:
CloudUp: Senkou A > Senkou B → Bullish Cloud
CloudDown: Senkou A < Senkou B → Bearish Cloud
Cloud visuals are included but commented out by default.
📊 Volatility Indicator
Uses ATR (Average True Range) to measure volatility.
Position size is adjusted based on ATR value.
Detects volume explosions if current volume is 2x the 20-period SMA.
📌 Support / Resistance Zones (Pivots)
Automatically plots recent pivot highs and pivot lows for dynamic support/resistance visualization.
🧭 Sentiment & Liquidity Indicators
Sentiment (News Placeholder)
Uses 50-period SMA as a placeholder sentiment indicator.
Above SMA → Bullish Sentiment
Below SMA → Bearish Sentiment
Can be replaced with live news API in future versions.
Liquidity Heatmap
Uses 20-period SMA of volume as a proxy for liquidity concentration.
Displayed using bar-style plots.
🟢🔴 Buy/Sell Signal Logic
Long Signal Conditions:
EMA Trend Up
RSI < 50
MACD Histogram > 0
Stoch RSI %K < 80
Ichimoku Cloud Bullish (CloudUp)
Short Signal Conditions:
EMA Trend Down
RSI > 50
MACD Histogram < 0
Stoch RSI %K > 20
Ichimoku Cloud Bearish (CloudDown)
🚨 Alert Conditions
longSignal → "Phoenix - BUY Signal"
shortSignal → "Phoenix - SELL Signal"
volumeExplode → "Phoenix - Volume Explosion Detected"
These alerts are compatible with TradingView's alert system for notifications.
💼 Position Sizing Calculation
Formula:
plaintext
Kopyala
Düzenle
Position Size = (Account Size × Risk %) / ATR
Adjusts trade size based on volatility and risk tolerance.
Visualized with a fuchsia line on the chart.
🧪 Strategy Execution
Uses Pine Script’s strategy.entry and strategy.close:
Opens long position when longSignal is true.
Opens short position when shortSignal is true.
Closes each position when the opposite signal appears.
📌 Extra Notes
Script uses Pine Script v5 and is optimized for max efficiency (max_lines_count=500).
Multiple market dynamics are integrated:
Trend
Momentum
Volume/Volatility
Sentiment
Liquidity
Risk Management
✅ Suggestions for Improvement
Integrate real news sentiment via APIs (e.g., BloombergHT RSS).
Add Take Profit / Stop Loss / Trailing Stop options.
Enhance visuals using label.new or table.new for clearer alerts.
Adapt position size logic for crypto/futures lot sizing.
Add multi-timeframe confirmation features.
Export strategy results or signals to a Telegram bot or external system.
4 EMAs with Entry and Exit Strategy🔍 Purpose of the Script:
This strategy is designed to identify bullish trends using a combination of Exponential Moving Averages (EMAs) and the Relative Strength Index (RSI), and execute long entries and exits accordingly.
📈 Key Technical Indicators Used:
EMAs (Exponential Moving Averages):
ema9, ema21, ema63, and ema200 are calculated to determine short-, mid-, and long-term trends.
An unused ema126 is mentioned but commented out.
RSI (Relative Strength Index):
A 14-period RSI is calculated and used to avoid entries when the stock is overbought.
🟢 Entry Logic (Long):
The strategy enters a long position when:
A bullish trend is confirmed by EMA alignment:
ema9 > ema21 > ema63 > ema200
The closing price is above ema9
RSI is ≤ 60, to avoid entering overbought conditions
🔴 Exit Logic (Long Exit):
The strategy exits a long position when:
ema21 crosses below ema63 (bearish signal)
There are commented-out conditions like:
RSI > 80 (overbought)
Close > 1.4 × ema126 (price extended far above average)
🎨 Visualization:
EMAs are plotted in different colors for trend visibility.
Background color turns:
Light green in bullish trend
Light red in bearish trend
⚙️ Strategy Configuration:
Capital: ₹10,00,000
Position size: 10% of equity
Commission: 0.75% per trade (roundtrip)
Overlay: true (indicators and trades plotted on price chart)
✅ Highlights:
Clear trend detection with layered EMA logic
Avoids overbought entries using RSI ≤ 60
Customizable and extendable (e.g., you can uncomment EMA126 and add price-overextension logic)
RSI + SuperTrend Filter Strategy (45m BTCUSDT)🧠 Strategy Breakdown: RSI + SuperTrend Filter (45m BTCUSDT)
This strategy is built on a simple yet powerful principle: don’t fight the trend — and never ignore momentum exhaustion.
At its core, this setup looks for RSI-based reversal entries, but only when price action aligns with the underlying trend structure, defined by a modified SuperTrend. This combo filters out a large chunk of noise you typically get with RSI alone on lower timeframes.
📊 How It Works
Longs trigger when RSI crosses up from oversold and SuperTrend confirms a bullish bias.
Shorts trigger when RSI crosses down from overbought and SuperTrend confirms a bearish structure.
Each entry is paired with a tight SL (1%) and dynamic TP (1.5%), offering favorable risk:reward setups.
The script includes clean chart visuals — background zones, SL/TP lines, and real-time trend bands — built for clarity and decision speed.
⚙️ Why It Works
Too many RSI strategies reverse blindly — this doesn’t. By combining RSI oversold/overbought conditions with a directional SuperTrend filter, you get higher-quality entries, especially during high-volatility phases.
This is not designed for sideways markets — it’s meant to catch clean swings in structured trends. The 45m TF adds breathing room for better signal quality while still allowing for decent trade frequency.
📈 Backtest Snapshot (3m logic on 45m BTCUSDT)
💰 +213,885 USDT total P&L
🧠 239 trades, with solid coverage across sessions
📉 15% max drawdown
⚖️ Profit factor: 1.12
🔁 Dynamic execution-ready — ideal for automation or manual confirmations
🔧 Built For Traders Who:
Want non-repainting structure they can trust
Prefer mechanical entries with visual context
Are experimenting with automation-ready setups
Need something they can tweak and expand on
🔥 If you're serious about combining clean signals with trend confirmation — this is a solid foundation. Drop a comment if you want the multi-timeframe version or ideas on adding volume-based confirmations.
PG2 Mean Reversion Channel - Lower Quartile Loband with MACD🧠 Strategy Overview
This is a mean reversion strategy using multi-filter smoothing for channel detection and MACD-based momentum validation. It’s designed for structured entries near volatility-based lower bounds with adaptive risk control based on dynamic equity drawdown.
⸻
📌 Core Logic
• Lower Quartile Channel Entry:
Uses 8 smoothing filters to create a distribution of lobands and selects the lower quartile as the trigger zone.
• MACD Validation:
Requires MACD histogram to flip from negative to positive, ensuring upward momentum confirmation.
• Entry Trigger:
Entry occurs when:
• Not in a position
• Price is below the lower quartile band
• MACD histogram is positive
⸻
📉 Dynamic Exit & Risk Control
• Per-Trade Equity Tracking:
Tracks equity highs/lows per trade to calculate intra-trade drawdown.
• Rolling Drawdown Threshold:
Stores drawdowns in a rolling array (up to maxGlobalTrades) and uses the max of that array as a dynamic exit threshold.
• Dynamic Drawdown Exit:
If a position is open for over minBarsForDynamicExit and drawdown exceeds the dynamic threshold → exit.
• Cascading Take Profit:
Profit target starts at 7% and slowly degrades by decrement_percent until a min threshold is hit.
• Extended Exit Logic:
After 1000 bars in a trade, triggers additional drawdown-based exit with MACD momentum check.
⸻
📊 Performance Multiplier Logic
• Uses strategy.closedtrades to calculate Profit Factor
• Multiplier is purely reporting metadata — included in alerts but not used for trade logic
• VPS or external system interprets and sizes trades accordingly
⸻
🔔 Automation-Ready Alerts
• Clean JSON payloads
• Payload includes:
• Ticker
• Action (buy3/sell3/sell1)
• Multiplier
• Timeframe & strategy name
⸻
✅ Compliance Highlights
• No repainting
• No security() calls
• No dynamic position sizing inside Pine
• Multiplier is metadata only
• Alerts structured for webhook consumption
Enhanced Momentum Wave Catcher2 minute scalping strategy using the 200 ema wave and MCB momentum wave and the 9 ema for entry.
eureka - with strategythis is based on ict teachings and it has fvg, ob, choch and so many things you cant imagine in 1 min tf
15 ORB Breakout-Retest with Pivot Points Standard1. 15 Minute Opening Range Breakout
2. Entry on Successful Breakout and Retest Confirmation
3. Pivot Points Standard
4. 21 EMA Trend table on different time frames
15Min Engulfing Break StrategyThe strategy involves the Engulfing Theory, Bullish and Bearish Engulfing patterns. Its specifically for 15 Minute chart. win ratio is 76%.
20/50 EMA Crossover Strategysimple yet, effective moving average cross over for swing trading, long positions only.
Natural Gas Scalping Method v2ultimate scalping stratey for ng,it hels you to capture big moves with a lesser risk
Volume Spike with Entry & Stop LossSure! Here's a **short and concise description** of your strategy that you can share with the public:
---
### **Volume Spike with Entry & Stop Loss Strategy**
This strategy identifies **significant volume spikes** in the market combined with **price breakouts** to signal **buy entries**. It aims to capture strong momentum moves while managing risk with a **stop loss**.
- **Entry Signal**: When **volume spikes** (current volume > average volume by a specified multiplier) and the **price breaks above** the highest price in the last N periods.
- **Stop Loss**: Set at a fixed percentage below the entry price to limit potential losses.
**Key Benefits**:
- **Volume-based**: Focuses on detecting high market participation.
- **Price action**: Combines volume with price breakout for stronger entry signals.
- **Risk management**: Includes a stop loss to protect against significant drawdowns.
Ideal for traders looking for momentum-based entries with built-in risk control.
---
This is a **momentum strategy** that thrives during times of high market activity, making it useful for capturing trending moves while minimizing risk.
MA200 + Momentum Candle Strategy (No Duplicate Entry)This strategy is suitable for use on the 4H timeframe and above
Haze EMA SignalStrategy Logic:
Buy Entry 🟢
→ When the 11 EMA crosses above the 50 EMA,
→ And Stochastic RSI shows bullish momentum (%K > %D).
Sell / Exit 🔴
→ When the 11 EMA crosses below the 50 EMA,
→ And Stochastic RSI shows bearish momentum (%K < %D).
This dual-confirmation method helps reduce false signals by combining trend-following and momentum-based entries and exits.
SHORT TERM TRADE SIGNAL
EMA= 11/50
K/D/L=15/7/10
Liquidity SweepsThis indicator will show you all the liquidity sweeps for the previous 'x' amount of candles.
AI Volume StrategyAI Volume Strategy detects significant volume spikes and combines them with trend direction and candlestick color to generate buy and sell signals. The strategy uses an Exponential Moving Average (EMA) of volume to identify abnormal volume spikes that may indicate strong market activity. Additionally, it uses a 50-period EMA of price to filter the trend and decide on entry direction.
Key Features:
Volume Spike Detection: The strategy detects when the current volume exceeds the EMA of volume by a user-defined multiplier, signaling abnormal increases in market activity.
Trend Direction Filter: The strategy uses a 50-period EMA of price to determine the market trend. Buy signals are generated when the price is above the EMA (uptrend), and sell signals are generated when the price is below the EMA (downtrend).
Candle Color Filter: The strategy generates a buy signal only when the current candle is bullish (green) and a sell signal only when the current candle is bearish (red).
Exit after X Bars: The strategy automatically closes the position after a specified number of bars (default is 5 bars), but the exit condition can be adjusted based on user preference, timeframe, and backtesting results. The default exit is after 5 bars, but users can set it to 1 bar or any other number depending on their preferences and strategy.
Signals:
Buy Signal: Generated when a volume spike occurs, the trend is upward, and the current candle is bullish.
Sell Signal: Generated when a volume spike occurs, the trend is downward, and the current candle is bearish.
Alerts:
Buy Alert: Alerts the user when a buy signal is triggered.
Sell Alert: Alerts the user when a sell signal is triggered.
Visualization:
Buy Signal: A green label appears below the bar when the buy conditions are met.
Sell Signal: A red label appears above the bar when the sell conditions are met.
Volume EMA: Optionally, the Volume EMA line can be plotted on the chart to visualize volume trends.
This strategy helps traders identify potential entry points based on increased volume activity while considering trend direction and candlestick patterns. With the ability to adjust the exit condition, users can fine-tune the strategy to their specific needs and backtest results.