Volume FIltered RSI Buy/Sell StrategyVolume Filtered RSI Buy/Sell Strategy
Introduction
This publication introduces the "Volume Filtered RSI Buy/Sell Strategy," a systematic trading approach designed specifically for cryptocurrency markets. This strategy combines RSI momentum signals with volume confirmation and precise candle pattern recognition to identify high-probability entry points while filtering out weak signals.
Overview
The strategy implements a multi-layered filtering system that requires several conditions to align before entering a trade. By requiring RSI momentum shifts, significant volume, and strong candle patterns, the system aims to capture only the most reliable trade setups. Built-in risk management features provide automatic stop-loss and take-profit placement based on either ATR volatility or fixed percentage risk.
Strategy Core Components:
RSI Momentum Detection : Identifies transitions from oversold to bullish (for longs) and overbought to bearish (for shorts)
Volume Confirmation : Ensures entries occur with above-average volume, filtering out low-liquidity signals
Candle Pattern Analysis : Requires strong bullish/bearish candles where the body comprises at least 50% of the candle range
Optional Supertrend Filter : Provides trend alignment confirmation across multiple timeframes
Dynamic ATR Stop-Loss System : Adapts protection levels based on current market volatility
Default Settings:
RSI Parameters : 14-period length with 70/30 overbought/oversold levels
Risk Management : 1.5 risk-reward ratio with option for ATR-based or fixed 0.5% stop-loss
Commission : 0.055% per trade (realistic for major exchanges)
Initial Capital : 100 USDT (realistic for average trader)
Order Size : Recommended 20 USDT per trade (20% risk per trade)
Entry Logic:
The strategy creates a powerful filtering system by requiring all of the following conditions to align:
Long Entry : RSI crosses above 30 from below + Strong bullish candle (body > 50% of range) + Volume > 14-period SMA
Short Entry : RSI crosses below 70 from above + Strong bearish candle (body > 50% of range) + Volume > 14-period SMA
Optional Trend Alignment : When enabled, entries must align with Supertrend direction
Exit Methods:
The strategy offers two comprehensive exit approaches:
ATR-Based : Dynamically calculates stop-loss and take-profit levels based on current volatility (3.5x ATR multiplier)
Fixed Percentage : Uses a consistent 0.5% stop-loss with take-profit set at 1.5x the risk distance
Visualization : All entry points, stop-loss levels and take-profit targets are clearly displayed on the chart
Why This Combination Works:
The power of this strategy comes from its multi-confirmation approach:
RSI identifies potential momentum shifts but can produce false signals in ranging markets
Volume confirmation ensures trades are only taken when sufficient market interest exists
Candle pattern requirements filter out weak reversals by demanding strong price action
When combined, these three filters significantly reduce false signals while capturing strong momentum shifts
Backtesting Results:
When tested on BTCUSDT 5-minute chart with the default settings:
Total trades: 53 (provides sufficient sample size)
Profitable trades: 58.49%
Profit factor: 1.472
Max drawdown: 3.01%
Net profit: +6.52%
Recommended Usage:
Optimal Timeframe : 5-minute chart for BTCUSDT
Trade Direction : Can be configured for Long-only, Short-only or Both directions
Risk Management : The default settings risk approximately 1% per trade with the recommended 20 USDT order size on 100 USDT capital
Indicator Mode : For those who prefer manual trade management, right-click on chart and disable "Trades On Chart"
Customization Options:
The strategy provides multiple parameters that can be adjusted to match different trading styles:
RSI length and overbought/oversold levels
ATR period for stop-loss calculation
Risk-reward ratio
Fixed stop-loss percentage
Optional Supertrend filter with adjustable factor and period
Disclaimer
This strategy is shared for educational purposes only. The default parameters have been tested to provide a balance between win rate and profitability, but past performance does not guarantee future results. The commission setting (0.055%) reflects realistic exchange fees, and the recommended position sizing (20% of capital) is higher than traditional 1-2% but represents common practice in cryptocurrency trading. Users should thoroughly test any changes to parameters before trading real capital.
Cerca negli script per "entry"
Levels & Flow📌 Overview
Levels & Flow is a visual trading tool that combines daily pivot levels with a dynamic EMA ribbon to help traders identify structure, momentum, and key decision zones in the market.
This script is designed for discretionary traders who rely on clean visual cues for intraday and swing trading strategies.
⚙️ Key Features
Daily Pivot, Support, and Resistance Lines
Automatically plots the daily pivot level based on the previous day’s OHLC data, along with calculated support and resistance levels.
Fibonacci Retracement Levels
Two dashed lines above and below the pivot represent the retracement of the pivot-resistance and pivot-support range, forming the boundaries of the “no-trade zone.”
No-Trade Zone (Shaded Box)
A gray shaded box between the two Fibonacci levels to visually mark a high-chop/low-conviction zone.
Trend-Based Candle Coloring (Current Day Only)
Candles are colored green if the close is above the pivot, red if below (only on the current trading day).
Bullish/Bearish Trend Label
A small table in the bottom-right corner displays “Bullish” or “Bearish” depending on whether price is above or below the pivot.
20-EMA Gradient Ribbon
A stack of 20 EMAs, each smoothed and color-coded from blue to green to reflect short- to long-term trend alignment.
Cumulative EMA with Adaptive Weighting
An intelligent moving average line that adjusts weight distribution among the 20 EMAs based on recent predictive accuracy using a learning rate and lookback period.
🧠 How It Works
📍 Levels
The script calculates daily pivot, resistance, and support levels using standard formulas:
Pivot = (High + Low + Close) / 3
Resistance = (2 × Pivot) – Low
Support = (2 × Pivot) – High
These levels update each day and extend 143 bars to the right.
📏 Fib Lines
Fib Up = Pivot + (Resistance – Pivot) × 0.382
Fib Down = Pivot – (Pivot – Support) × 0.382
These lines form the “no-trade zone” box.
📈 EMA Ribbon
20 EMAs starting from the user-defined Base Length, each incremented by 1
Each EMA is smoothed using the Smoothing Period
Color-coded from blue to green for intuitive visual flow
Filled between EMAs to visualize trend strength and alignment
🧠 Cumulative EMA Learning
Each EMA’s historical error is calculated over a Lookback Period
Lower-error EMAs receive higher weight; weights are normalized to sum to 1
The result is a cumulative EMA that adapts based on historical predictive power
🔧 User Inputs
Input
Base EMA Length: Sets the period for the shortest EMA (default: 20)
Smoothing Period: Smooths all EMAs and the cumulative EMA
Lookback for Learning: Number of bars to evaluate EMA prediction accuracy
Learning Rate: Adjusts how quickly weights shift in favor of more accurate EMAs
✅ How to Use It
Use the pivot level to define directional bias.
Watch for price breakouts above resistance or breakdowns below support to consider entry.
Avoid trading inside the shaded zone, where direction is less reliable.
Use the EMA ribbon gradient to confirm short/long alignment.
The cumulative EMA helps define trend with noise reduction.
🧪 Best For
Intraday traders who want to blend structure with flow
Swing traders needing clean daily levels with dynamic confirmation
Anyone looking to avoid choppy zones and improve visual clarity
⚠️ Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice or a trading recommendation. Always test scripts in simulation or on demo accounts before live use. Use at your own risk.
HTF ReversalsHTF Reversals — Big Turtle Soup & Relief Patterns
A multi-timeframe reversal indicator based on the logic of how pivots form and how true reversals begin. Designed for traders who want to catch high-probability turning points on higher timeframes, with visual clarity and actionable signals.
“Reversals don’t start from nowhere — they begin with a failed expansion and a reclaim of a prior range. This script helps you spot those moments, before the crowd.”
How It Works
Detects High Timeframe (HTF) “CR” Candles:
The script scans for large-bodied candles (“CR” candles) on higher timeframes (Monthly, Weekly, 3-Day). These candles often mark the end of a trend expansion and the start of a potential reversal zone.
Looks for “Inside” Candles:
After a CR candle, the script waits for a smaller “inside” candle, which signals a pause or failed continuation. The relationship between the CR and inside candle is key for identifying a possible reversal setup.
Engulfing Confirmation (Optional):
If the inside candle doesn’t immediately trigger a reversal, the script can wait for an engulfing move in the opposite direction, confirming the failed expansion and increasing the probability of a reversal.
Entry & Target Calculation:
For each valid setup, the script calculates a retracement entry (using Fibonacci levels like 0.382 or 0.618) and a logical target (usually the CR candle’s high or low).
Visuals: Lines & Boxes:
Each signal is marked with a horizontal line (entry) and a colored box extending from the HTF close to the entry price, visually highlighting the reversal zone for the same duration as the signal’s expected play-out.
Dashboard & Alerts:
A dashboard table summarizes the latest signals for each timeframe. Custom alerts notify you of new setups in real time.
Why It Works
Pivot Logic:
Reversals often start when a strong expansion candle (pivot) is followed by a failed attempt to continue in the same direction. This script codifies that logic, looking for the “pause” after the expansion and the first sign of a reclaim.
Multi-Timeframe Edge:
By focusing on higher timeframes, the indicator filters out noise and highlights only the most significant reversal opportunities.
Objective, Repeatable Rules:
All conditions are clearly defined and repeatable, removing subjectivity from reversal trading.
Visual Clarity:
The combination of lines and boxes makes it easy to see where reversals are likely to start and where your risk/reward lies.
How to Use
Add the indicator to your chart and select your preferred timeframes (Monthly, Weekly, 3-Day).
Watch for new signals on the dashboard or via alerts.
Use the entry line and box as your trade zone; the target is also displayed.
Combine with your own confluence (price action, volume, etc.) for best results.
This indicator is best used as a framework for understanding where high-probability reversals are likely to occur, not as a standalone buy/sell tool. Always use proper risk management.
Stoch Quad Oscillator📘 Stoch Quad Oscillator – User Guide
✅ Purpose
The Stoch Quad Oscillator is a multi-timeframe stochastic oscillator tool that helps traders detect oversold and overbought conditions, momentum shifts, and quad rotation signals using four distinct stochastic configurations. It includes visual cues, customizable parameters, and background highlights to improve decision-making during trend reversals or momentum surges.
🛠️ Inputs & Parameters
⏱ Timeframe
Timeframe for Stochastic Calculation: Defines which chart timeframe to use for stochastic calculations (default is "1" minute). This enables multi-timeframe analysis while on a lower timeframe chart.
📈 Stochastic Parameters
Four different stochastic configurations are used:
Label %K Length %D Smoothing Notes
K9 D3 9 3 Fastest, short-term view
K14 D3 14 3 Moderately short-term
K40 D4 40 4 Medium-term trend view
K60 D10 60 10 Long-term strength
Smoothing Type: Choose between SMA or EMA to control how smoothed the %D line is.
🎯 Levels
Overbought Level: Default 80
Oversold Level: Default 20
These are used to indicate overextended price conditions on any of the stochastic plots.
🔄 Quad Rotation Detection Settings
When enabled, the script detects synchronized oversold/overbought conditions with strong momentum using all 4 stochastic readings.
Enable Quad Rotation: Toggles detection on or off
Slope Calculation Bars: Number of bars used to calculate slope of %D lines
Slope Threshold: Minimum slope strength for signal (higher = stronger confirmation)
Oversold Quad Level: Total of all four stochastic values that define a quad oversold zone
Overbought Quad Level: Total of all four stochastic values that define a quad overbought zone
Oversold Quad Highlight Color: Background color when oversold quad is triggered
Overbought Quad Highlight Color: Background color when overbought quad is triggered
Slope Averaging Method: Either Simple Average or Weighted Average (puts more weight on higher timeframes)
Max Signal Bar Window: Defines how recent the signal must be to be considered valid
📊 Plots & Visual Elements
📉 Stochastic %D Lines
Each stochastic is plotted separately:
K9 D3 – Red
K14 D3 – Orange
K40 D4 – Fuchsia
K60 D10 – Silver
These help visualize short to long-term momentum simultaneously.
📏 Horizontal Reference Lines
Overbought Line (80) – Red
Oversold Line (20) – Green
These help you identify threshold breaches visually.
🌈 Background Highlighting
The indicator provides background highlights to mark potential signal zones:
✅ All Oversold or Overbought Conditions
When all four stochastics are either above overbought or below oversold:
Bright Red if all are overbought
Bright Green if all are oversold
🚨 Quad Rotation Signal Zones (if enabled)
Triggered when:
The combined sum of all four stochastic levels is extremely low/high (below/above oversoldQuadLevel or overboughtQuadLevel)
The average slope of the 4 %D lines is sharply positive (> slopeThreshold)
Highlights:
Custom Red Tint = Strong overbought quad signal
Custom Green Tint = Strong oversold quad signal
These zones can indicate momentum shifts or reversal potential when used with price action or other tools.
⚠️ Limitations & Considerations
This indicator does not provide trade signals. It visualizes conditions and potential setups.
It is best used in confluence with price action, support/resistance levels, and other indicators.
False positives may occur in ranging markets. Reduce reliance on slope thresholds during low volatility.
Quad signals rely on slope strength, which may lag slightly behind sudden reversals.
🧠 Tips for Use
Combine with volume, MACD, or PSAR to confirm direction before entry.
Watch for divergences between price and any of the stochastics.
Use on higher timeframes (e.g., 5m–30m) to filter for swing trading setups; use shorter TFs (1m–5m) for scalping signals.
Adjust oversoldQuadLevel and overboughtQuadLevel based on market conditions (e.g., in trending vs ranging markets).
Canuck Trading IndicatorOverview
The Canuck Trading Indicator is a versatile, overlay-based technical analysis tool designed to assist traders in identifying potential trading opportunities across various timeframes and market conditions. By combining multiple technical indicators—such as RSI, Bollinger Bands, EMAs, VWAP, MACD, Stochastic RSI, ADX, HMA, and candlestick patterns—the indicator provides clear visual signals for bullish and bearish entries, breakouts, long-term trends, and options strategies like cash-secured puts, straddles/strangles, iron condors, and short squeezes. It also incorporates 20-day and 200-day SMAs to detect Golden/Death Crosses and price positioning relative to these moving averages. A dynamic table displays key metrics, and customizable alerts help traders stay informed of market conditions.
Key Features
Multi-Timeframe Adaptability: Automatically adjusts parameters (e.g., ATR multiplier, ADX period, HMA length) based on the chart's timeframe (minute, hourly, daily, weekly, monthly) for optimal performance.
Comprehensive Signal Generation: Identifies short-term entries, breakouts, long-term bullish trends, and options strategies using a combination of momentum, trend, volatility, and candlestick patterns.
Candlestick Pattern Detection: Recognizes bullish/bearish engulfing, hammer, shooting star, doji, and strong candles for precise entry/exit signals.
Moving Average Analysis: Plots 20-day and 200-day SMAs, detects Golden/Death Crosses, and evaluates price position relative to these averages.
Dynamic Table: Displays real-time metrics, including zone status (bullish, bearish, neutral), RSI, MACD, Stochastic RSI, short/long-term trends, candlestick patterns, ADX, ROC, VWAP slope, and MA positioning.
Customizable Alerts: Over 20 alert conditions for entries, exits, overbought/oversold warnings, and MA crosses, with actionable messages including ticker, price, and suggested strategies.
Visual Clarity: Uses distinct shapes, colors, and sizes to plot signals (e.g., green triangles for bullish entries, red triangles for bearish entries) and overlays key levels like EMA, VWAP, Bollinger Bands, support/resistance, and HMA.
Options Strategy Signals: Suggests opportunities for selling cash-secured puts, straddles/strangles, iron condors, and capitalizing on short squeezes.
How to Use
Add to Chart: Apply the indicator to any TradingView chart by selecting "Canuck Trading Indicator" from the Pine Script library.
Interpret Signals:
Bullish Signals: Green triangles (short-term entry), lime diamonds (breakout), blue circles (long-term entry).
Bearish Signals: Red triangles (short-term entry), maroon diamonds (breakout).
Options Strategies: Purple squares (cash-secured puts), yellow circles (straddles/strangles), orange crosses (iron condors), white arrows (short squeezes).
Exits: X-cross shapes in corresponding colors indicate exit signals.
Monitor: Gray circles suggest holding cash or monitoring for setups.
Review Table: Check the top-right table for real-time metrics, including zone status, RSI, MACD, trends, and MA positioning.
Set Alerts: Configure alerts for specific signals (e.g., "Short-Term Bullish Entry" or "Golden Cross") to receive notifications via TradingView.
Adjust Inputs: Customize input parameters (e.g., RSI period, EMA length, ATR period) to suit your trading style or market conditions.
Input Parameters
The indicator offers a wide range of customizable inputs to fine-tune its behavior:
RSI Period (default: 14): Length for RSI calculation.
RSI Bullish Low/High (default: 35/70): RSI thresholds for bullish signals.
RSI Bearish High (default: 65): RSI threshold for bearish signals.
EMA Period (default: 15): Main EMA length (15 for day trading, 50 for swing).
Short/Long EMA Length (default: 3/20): For momentum oscillator.
T3 Smoothing Length (default: 5): Smooths momentum signals.
Long-Term EMA/RSI Length (default: 20/15): For long-term trend analysis.
Support/Resistance Lookback (default: 5): Periods for support/resistance levels.
MACD Fast/Slow/Signal (default: 12/26/9): MACD parameters.
Bollinger Bands Period/StdDev (default: 15/2): BB settings.
Stochastic RSI Period/Smoothing (default: 14/3/3): Stochastic RSI settings.
Uptrend/Short-Term/Long-Term Lookback (default: 2/2/5): Candles for trend detection.
ATR Period (default: 14): For volatility and price targets.
VWAP Sensitivity (default: 0.1%): Threshold for VWAP-based signals.
Volume Oscillator Period (default: 14): For volume surge detection.
Pattern Detection Threshold (default: 0.3%): Sensitivity for candlestick patterns.
ROC Period (default: 3): Rate of change for momentum.
VWAP Slope Period (default: 5): For VWAP trend analysis.
TradingView Publishing Compliance
Originality: The Canuck Trading Indicator is an original script, combining multiple technical indicators and custom logic to provide unique trading signals. It does not replicate existing public scripts.
No Guaranteed Profits: This indicator is a tool for technical analysis and does not guarantee profits. Trading involves risks, and users should conduct their own research and risk management.
Clear Instructions: The description and usage guide are detailed and accessible, ensuring users understand how to apply the indicator effectively.
No External Dependencies: The script uses only built-in Pine Script functions (e.g., ta.rsi, ta.ema, ta.vwap) and requires no external libraries or data sources.
Performance: The script is optimized for performance, using efficient calculations and adaptive parameters to minimize lag on various timeframes.
Visual Clarity: Signals are plotted with distinct shapes and colors, and the table provides a concise summary of market conditions, enhancing usability.
Limitations and Risks
Market Conditions: The indicator may generate false signals in choppy or low-liquidity markets. Always confirm signals with additional analysis.
Timeframe Sensitivity: Performance varies by timeframe; test settings on your preferred chart (e.g., 5-minute for day trading, daily for swing trading).
Risk Management: Use stop-losses and position sizing to manage risk, as suggested in alert messages (e.g., "Stop -20%").
Options Trading: Options strategies (e.g., straddles, iron condors) carry unique risks; consult a financial advisor before trading.
Feedback and Support
For questions, suggestions, or bug reports, please leave a comment on the TradingView script page or contact the author via TradingView. Your feedback helps improve the indicator for the community.
Disclaimer
The Canuck Trading Indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves significant risks, and past performance is not indicative of future results. Always perform your own due diligence and consult a qualified financial advisor before making trading decisions.
UT Bot + Hull MA Confirmed Signal DelayOverview
This indicator is designed to detect high-probability reversal entry signals by combining "UT Bot Alerts" (UT Bot Alerts script adapted from QuantNomad - Originally developed by Yo_adriiiiaan and idea of original code for "UT Bot Alerts" from HPotter ) with confirmation from a Hull Moving Average (HMA) Developed by Alan Hull . It focuses on capturing momentum shifts that often precede trend reversals, helping traders identify potential entry points while filtering out false signals.
🔍 How It Works
This strategy operates in two stages:
1. UT Bot Momentum Trigger
The foundation of this script is the "UT Bot Alerts" , which uses an ATR-based trailing stop to detect momentum changes. Specifically:
The script calculates a dynamic stop level based on the Average True Range (ATR) multiplied by a user-defined sensitivity factor (Key Value).
When price closes above this trailing stop and the short-term EMA crosses above the stop, a potential buy setup is triggered.
Conversely, when price closes below the trailing stop and the short-term EMA crosses below, a potential sell setup is triggered.
These UT Bot alerts are designed to identify the initial shift in market direction, acting as the first filter in the signal process.
2. Hull MA Confirmation
To reduce noise and false triggers from the UT Bot alone, this script delays the entry signal until price confirms the move by crossing the Hull Moving Average (or its variants: HMA, THMA, EHMA) in the same direction as the UT Bot trigger:
A Buy Signal is generated only when:
A UT Bot Buy condition is active, and
The price closes above the Hull MA.
Or, if a UT Bot Buy condition was recently triggered but price hadn’t yet crossed above the Hull MA, a delayed buy is signaled when price finally breaks above it.
A Sell Signal is generated only when:
A UT Bot Sell condition is active, and
The price closes below the Hull MA.
Similarly, a delayed sell signal can occur if price breaks below the Hull MA shortly after a UT Bot Sell trigger.
This dual-confirmation process helps traders avoid premature entries and improves the reliability of reversal signals.
📈 Best Use Cases
Reversal Trading: This strategy is particularly well-suited for catching early trend reversals rather than trend continuations. It excels at identifying momentum pivots that occur after pullbacks or exhaustion moves.
Heikin Ashi Charts Recommended: The script offers a Heikin Ashi mode for smoothing out noise and enhancing visual clarity. Using Heikin Ashi candles can further reduce whipsaws and highlight cleaner shifts in trend direction.
MACD Alignment: For best results, trade in the direction of the MACD trend or use it as a filter to avoid counter-trend trades.
⚠️ Important Notes
Entry Signals Only: This indicator only plots entry points (Buy and Sell signals). It does not define exit strategies, so users should manage trades manually using trailing stops, profit targets, or other exit indicators.
No Signal = No Confirmation: You may see a UT Bot trigger without a corresponding Buy/Sell signal. This means the price did not confirm the move by crossing the Hull MA, and therefore the setup was considered too weak or incomplete.
⚙️ Customization
UT Bot Sensitivity: Adjust the “Key Value” and “ATR Period” to make the UT Bot more or less reactive to price action.
Use Heikin Ashi: Toggle between standard candles or Heikin Ashi in the indicator settings for a smoother trading experience.
The HMA length may also be modified in the indicator settings from its standard 55 length to increase or decrease the sensitivity of signal.
This strategy is best used by traders looking for a structured, logic-based way to enter early into reversals with added confirmation to reduce risk. By combining two independent systems—momentum detection (UT Bot) and trend confirmation (Hull MA)—it aims to provide high-confidence entries without overwhelming complexity.
Let the indicator guide your entries—you manage the exits.
Examples of use:
Futures:
Stock:
Crypto:
As shown in the snapshots this strategy, like most, works the best when price action has a sizeable ATR and works the least when price is choppy. Therefore it is always best to use this system when price is coming off known support or resistance levels and when it is seen to respect short term EMA's like the 9 or 15.
My personal preference to use this system is for day trading on a 3 or 5 minute chart. But it is valid for all timeframes and simply marks a high probability for a new trend to form.
Sources:
Quant Nomad - www.tradingview.com
Yo_adriiiiaan - www.tradingview.com
HPotter - www.tradingview.com
Hull Moving Average - alanhull.com
Smart Fib StrategySmart Fibonacci Strategy
This advanced trading strategy combines the power of adaptive SMA entries with Fibonacci-based exit levels to create a comprehensive trend-following system that self-optimizes based on historical market conditions. Credit goes to Julien_Eche who created the "Best SMA Finder" which received an Editors Pick award.
Strategy Overview
The Smart Fibonacci Strategy employs a two-pronged approach to trading:
1. Intelligent Entries: Uses a self-optimizing SMA (Simple Moving Average) to identify optimal entry points. The system automatically tests multiple SMA lengths against historical data to determine which period provides the most robust trading signals.
2. Fibonacci-Based Exits: Implements ATR-adjusted Fibonacci bands to establish precise exit targets, with risk-management options ranging from conservative to aggressive.
This dual methodology creates a balanced system that adapts to changing market conditions while providing clear visual reference points for trade management.
Key Features
- **Self-Optimizing Entries**: Automatically calculates the most profitable SMA length based on historical performance
- **Adjustable Risk Parameters**: Choose between low-risk and high-risk exit targets
- **Directional Flexibility**: Trade long-only, short-only, or both directions
- **Visualization Tools**: Customizable display of entry lines and exit bands
- **Performance Statistics**: Comprehensive stats table showing key metrics
- **Smoothing Option**: Reduces noise in the Fibonacci bands for cleaner signals
Trading Rules
Entry Signals
- **Long Entry**: When price crosses above the blue center line (optimal SMA)
- **Short Entry**: When price crosses below the blue center line (optimal SMA)
### Exit Levels
- **Low Risk Option**: Exit at the first Fibonacci band (1.618 * ATR)
- **High Risk Option**: Exit at the second Fibonacci band (2.618 * ATR)
Strategy Parameters
Display Settings
- Toggle visibility of the stats table and indicator components
Strategy Settings
- Select trading direction (long, short, or both)
- Choose exit method (low risk or high risk)
- Set minimum trades threshold for SMA optimization
SMA Settings
- Option to use auto-optimized or fixed-length SMA
- Customize SMA length when using fixed option
Fibonacci Settings
- Adjust ATR period and SMA basis for Fibonacci bands
- Enable/disable smoothing function
- Customize Fibonacci ratio multipliers
Appearance Settings
- Modify colors, line widths, and transparency
Optimization Methodology
The strategy employs a sophisticated optimization algorithm that:
1. Tests multiple SMA lengths against historical data
2. Evaluates performance based on trade count, profit factor, and win rate
3. Calculates a "robustness score" that balances profitability with statistical significance
4. Selects the SMA length with the highest robustness score
This ensures that the strategy's entry signals are continuously adapting to the most effective parameters for current market conditions.
Risk Management
Position sizing is fixed at $2,000 per trade, allowing for consistent exposure across all trading setups. The Fibonacci-based exit system provides two distinct risk management approaches:
- **Conservative Approach**: Using the first Fibonacci band for exits produces more frequent but smaller wins
- **Aggressive Approach**: Using the second Fibonacci band allows for larger potential gains at the cost of increased volatility
Ideal Usage
This strategy is best suited for:
- Trending markets with clear directional moves
- Timeframes from 4H to Daily for most balanced results
- Instruments with moderate volatility (stocks, forex, commodities)
Traders can further enhance performance by combining this strategy with broader market analysis to confirm the prevailing trend direction.
SMC Strategy BTC 1H - OB/FVGGeneral Context
This strategy is based on Smart Money Concepts (SMC), in particular:
The bullish Break of Structure (BOS), indicating a possible reversal or continuation of an upward trend.
The detection of Order Blocks (OB): consolidation zones preceding the BOS where the "smart money" has likely accumulated positions.
The detection of Fair Value Gaps (FVG), also called imbalance zones where the price has "jumped" a level, creating a disequilibrium between buyers and sellers.
Strategy Mechanics
Bullish Break of Structure (BOS)
A bullish BOS is detected when the price breaks a previous swing high.
A swing high is defined as a local peak higher than the previous 4 peaks.
Order Block (OB)
A bearish candle (close < open) just before a bullish BOS is identified as an OB.
This OB is recorded with its high and low.
An "active" OB zone is maintained for a certain number of bars (the zoneTimeout parameter).
Fair Value Gap (FVG)
A bullish FVG is detected if the high of the candle two bars ago is lower than the low of the current candle.
This FVG zone is also recorded and remains active for zoneTimeout bars.
Long Entry
An entry is possible if the price returns into the active OB zone or FVG zone (depending on which parameters are enabled).
Entry is only allowed if no position is currently open (strategy.position_size == 0).
Risk Management
The stop loss is placed below the OB low, with a buffer based on a multiple of the ATR (Average True Range), adjustable via the atrFactor parameter.
The take profit is set according to an adjustable Risk/Reward ratio (rrRatio) relative to the stop loss to entry distance.
Adjustable Parameters
Enable/disable entries based on OB and/or FVG.
ATR multiplier for stop loss.
Risk/Reward ratio for take profit.
Duration of OB and FVG zone activation.
Visualization
The script displays:
BOS (Break of Structure) with a green label above the candles.
OB zones (in orange) and FVG zones (in light blue).
Entry signals (green triangle below the candle).
Stop loss (red line) and take profit (green line).
Strengths and Limitations
Strengths:
Based on solid Smart Money analysis concepts.
OB and FVG zones are natural potential reversal areas.
Adjustable parameters allow optimization for different market conditions.
Dynamic risk management via ATR.
Limitations:
Only takes long positions.
No trend filter (e.g., EMA), which may lead to false signals in sideways markets.
Fixed zone duration may not fit all situations.
No automatic optimization; testing with different parameters is necessary.
Summary
This strategy aims to capitalize on price retracements into key zones where "smart money" has acted (OB and FVG) just after a bullish Break of Structure (BOS) signal. It is simple, customizable, and can serve as a foundation for a more comprehensive strategy.
IU Mean Reversion SystemDESCRIPTION
The IU Mean Reversion System is a dynamic mean reversion-based trading framework designed to identify optimal reversal zones using a smoothed mean and a volatility-adjusted band. This system captures price extremes by combining exponential and running moving averages with the Average True Range (ATR), effectively identifying overextended price action that is likely to revert back to its mean. It provides precise long and short entries with corresponding exit conditions, making it ideal for range-bound markets or phases of low volatility.
USER INPUTS :
Mean Length – Controls the smoothness of the mean; default is 9.
ATR Length – Defines the lookback period for ATR-based band calculation; default is 100.
Multiplier – Determines how wide the upper and lower bands are from the mean; default is 3.
LONG CONDITION :
A long entry is triggered when the closing price crosses above the lower band, indicating a potential upward mean reversion.
A position is taken only if there is no active long position already.
SHORT CONDITION :
A short entry is triggered when the closing price crosses below the upper band, signaling a potential downward mean reversion.
A position is taken only if there is no active short position already.
LONG EXIT :
A long position exits when the high price crosses above the mean, implying that price has reverted back to its average and may no longer offer favorable long risk-reward.
SHORT EXIT :
A short position exits when the low price crosses below the mean, indicating the mean reversion has occurred and the downside opportunity has likely played out.
WHY IT IS UNIQUE:
Uses a double smoothing approach (EMA + RMA) to define a stable mean, reducing noise and false signals.
Adapts dynamically to volatility using ATR-based bands, allowing it to handle different market conditions effectively.
Implements a state-aware entry system using persistent variables, avoiding redundant entries and improving clarity.
The logic is clear, concise, and modular, making it easy to modify or integrate with other systems.
HOW USER CAN BENEFIT FROM IT :
Traders can easily identify reversion opportunities in sideways or mean-reverting environments.
Entry and exit points are visually labeled on the chart, aiding in clarity and trade review.
Helps maintain discipline and consistency by using a rule-based framework instead of subjective judgment.
Can be combined with other trend filters, momentum indicators, or higher time frame context for enhanced results.
Quarterly Theory ICT 05 [TradingFinder] Doubling Theory Signals🔵 Introduction
Doubling Theory is an advanced approach to price action and market structure analysis that uniquely combines time-based analysis with key Smart Money concepts such as SMT (Smart Money Technique), SSMT (Sequential SMT), Liquidity Sweep, and the Quarterly Theory ICT.
By leveraging fractal time structures and precisely identifying liquidity zones, this method aims to reveal institutional activity specifically smart money entry and exit points hidden within price movements.
At its core, the market is divided into two structural phases: Doubling 1 and Doubling 2. Each phase contains four quarters (Q1 through Q4), which follow the logic of the Quarterly Theory: Accumulation, Manipulation (Judas Swing), Distribution, and Continuation/Reversal.
These segments are anchored by the True Open, allowing for precise alignment with cyclical market behavior and providing a deeper structural interpretation of price action.
During Doubling 1, a Sequential SMT (SSMT) Divergence typically forms between two correlated assets. This time-structured divergence occurs between two swing points positioned in separate quarters (e.g., Q1 and Q2), where one asset breaks a significant low or high, while the second asset fails to confirm it. This lack of confirmation—especially when aligned with the Manipulation and Accumulation phases—often signals early smart money involvement.
Following this, the highest and lowest price points from Doubling 1 are designated as liquidity zones. As the market transitions into Doubling 2, it commonly returns to these zones in a calculated move known as a Liquidity Sweep—a sharp, engineered spike intended to trigger stop orders and pending positions. This sweep, often orchestrated by institutional players, facilitates entry into large positions with minimal slippage.
Bullish :
Bearish :
🔵 How to Use
Applying Doubling Theory requires a simultaneous understanding of temporal structure and inter-asset behavioral divergence. The method unfolds over two main phases—Doubling 1 and Doubling 2—each divided into four quarters (Q1 to Q4).
The first phase focuses on identifying a Sequential SMT (SSMT) divergence, which forms when two correlated assets (e.g., EURUSD and GBPUSD, or NQ and ES) react differently to key price levels across distinct quarters. For example, one asset may break a previous low while the other maintains structure. This misalignment—especially in Q2, the Manipulation phase—often indicates early smart money accumulation or distribution.
Once this divergence is observed, the extreme highs and lows of Doubling 1 are marked as liquidity zones. In Doubling 2, the market gravitates back toward these zones, executing a Liquidity Sweep.
This move is deliberate—designed to activate clustered stop-loss and pending orders and to exploit pockets of resting liquidity. These sweeps are typically driven by institutional forces looking to absorb liquidity and position themselves ahead of the next major price move.
The key to execution lies in the fact that, during the sweep in Doubling 2, a classic SMT divergence should also appear between the two assets. This indicates a weakening of the previous trend and adds an extra layer of confirmation.
🟣 Bullish Doubling Theory
In the bullish scenario, Doubling 1 begins with a bullish SSMT divergence, where one asset forms a lower low while the other maintains its structure. This divergence signals weakening bearish momentum and possible smart money accumulation. In Doubling 2, the market returns to the previous low and sweeps the liquidity zone—breaking below it on one asset, while the second fails to confirm, forming a bullish SMT divergence.
f this move is followed by a bullish PSP and a clear market structure break (MSB), a long entry is triggered. The stop-loss is placed just below the swept liquidity zone, while the target is set in the premium zone, anticipating a move driven by institutional buyers.
🟣 Bearish Doubling Theory
The bearish scenario follows the same structure in reverse. In Doubling 1, a bearish SSMT divergence occurs when one asset prints a higher high while the other fails to do so. This suggests distribution and weakening buying pressure. Then, in Doubling 2, the market returns to the previous high and executes a liquidity sweep, targeting trapped buyers.
A bearish SMT divergence appears, confirming the move, followed by a bearish PSP on the lower timeframe. A short position is initiated after a confirmed MSB, with the stop-loss placed
🔵 Settings
⚙️ Logical Settings
Quarterly Cycles Type : Select the time segmentation method for SMT analysis.
Available modes include : Yearly, Monthly, Weekly, Daily, 90 Minute, and Micro.
These define how the indicator divides market time into Q1–Q4 cycles.
Symbol : Choose the secondary asset to compare with the main chart asset (e.g., XAUUSD, US100, GBPUSD).
Pivot Period : Sets the sensitivity of the pivot detection algorithm. A smaller value increases responsiveness to price swings.
Pivot Sync Threshold : The maximum allowed difference (in bars) between pivots of the two assets for them to be compared.
Validity Pivot Length : Defines the time window (in bars) during which a divergence remains valid before it's considered outdated.
🎨 Display Settings
Show Cycle :Toggles the visual display of the current Quarter (Q1 to Q4) based on the selected time segmentation
Show Cycle Label : Shows the name (e.g., "Q2") of each detected Quarter on the chart.
Show Labels : Displays dynamic labels (e.g., “Q2”, “Bullish SMT”, “Sweep”) at relevant points.
Show Lines : Draws connection lines between key pivot or divergence points.
Color Settings : Allows customization of colors for bullish and bearish elements (lines, labels, and shapes)
🔔 Alert Settings
Alert Name : Custom name for the alert messages (used in TradingView’s alert system).
Message Frequenc y:
All : Every signal triggers an alert.
Once Per Bar : Alerts once per bar regardless of how many signals occur.
Per Bar Close : Only triggers when the bar closes and the signal still exists.
Time Zone Display : Choose the time zone in which alert timestamps are displayed (e.g., UTC).
Bullish SMT Divergence Alert : Enable/disable alerts specifically for bullish signals.
Bearish SMT Divergence Alert : Enable/disable alerts specifically for bearish signals
🔵 Conclusion
Doubling Theory is a powerful and structured framework within the realm of Smart Money Concepts and ICT methodology, enabling traders to detect high-probability reversal points with precision. By integrating SSMT, SMT, Liquidity Sweeps, and the Quarterly Theory into a unified system, this approach shifts the focus from reactive trading to anticipatory analysis—anchored in time, structure, and liquidity.
What makes Doubling Theory stand out is its logical synergy of time cycles, behavioral divergence, liquidity targeting, and institutional confirmation. In both bullish and bearish scenarios, it provides clearly defined entry and exit strategies, allowing traders to engage the market with confidence, controlled risk, and deeper insight into the mechanics of price manipulation and smart money footprints.
LANZ Strategy 3.0🔷 LANZ Strategy 3.0 — Asian Range Fibonacci Strategy with Execution Window Logic
LANZ Strategy 3.0 is a rule-based trading system that utilizes the Asian session range to project Fibonacci levels and manage entries during a defined execution window. Designed for Forex and index traders, this strategy focuses on structured price behavior around key levels before the New York session.
🧠 Core Components:
Asian Session Range Mapping: Automatically detects the high, low, and midpoint during the Asian session.
Fibonacci Level Projection: Projects configurable Fibonacci retracement and extension levels based on the Asian range.
Execution Window Logic: Uses the 01:15 NY candle as a reference to validate potential reversals or continuation setups.
Conditional Entry System: Includes logic for limit order entries (buy or sell) at specific Fib levels, with reversal logic if price breaks structure before execution.
Risk Management: Entry orders are paired with dynamic SL and TP based on Fibonacci-based distances, maintaining a risk-reward ratio consistent with intraday strategies.
📊 Visual Features:
Asian session high/low/mid lines.
Fibonacci levels: Original (based on raw range) and Optimized (user-adjustable).
Session background coloring for Asia, Execution Window, and NY session.
Labels and lines for entry, SL, and TP targets.
Dynamic deletion of untriggered orders after execution window expires.
⚙️ How It Works:
The script calculates the Asian session range.
Projects Fibonacci levels from the range.
Waits for the 01:15 NY candle to close to validate a signal.
If valid, a limit entry order (BUY or SELL) is plotted at the selected level.
If price structure changes (e.g., breaks the high/low), reversal logic may activate.
If no trade is triggered, orders are cleared before the NY session.
🔔 Alerts:
Alerts trigger when a valid setup appears after 01:15 NY candle.
Optional alerts for order activation, SL/TP hit, or trade cancellation.
📝 Notes:
Intended for semi-automated or discretionary trading.
Best used on highly liquid markets like Forex majors or indices.
Script parameters include session times, Fib ratios, SL/TP settings, and reversal logic toggle.
Credits:
Developed by LANZ, this script merges traditional session-based analysis with Fibonacci tools and structured execution timing, offering a unique framework for morning volatility plays.
Wx Stop Loss BetaWx Stop Loss Beta is an adaptive stop-loss overlay intended for discretionary entry management in medium- to long-term trades. It integrates a volatility filter, support-based logic, and capital protection constraints.
• Manual Entry Price: User inputs their actual entry point
• Volatility Anchor: Stop-loss adjusts using ATR (customizable length and multiplier)
• Support Reference: Based on swing low over a configurable lookback period
• Loss Cap: Maximum allowable loss percentage from entry price (hard floor)
• Trailing Logic: Stop-loss only moves upward (never lowers), adapting to favorable price action
• Output: Displays a horizontal line at the stop-loss level and renders its value in the data window
Warning: This tool is experimental and has not been formally backtested. It is provided as-is for manual strategy enhancement. Use at your own discretion, and validate thoroughly in a paper or sandbox environment before relying on it in live trading. Feedback and critique are encouraged.
Directional Movement Index (DMI) + AlertsThis is a Study with associated visual indicators and Bullish/Bearish Alerts for Directional Movement (DMI). It consists of an Average Directional Index (ADX), Plus Directional Indicator (+DI) and Minus Directional Indicator (-DI).
Published by J. Welles Wilder in 1978 for use with currencies and commodities which are typically more volatile than stocks and have stronger trends.
Development Notes
---------------------------
This indicator, and most of the descriptions below, were derived largely from the TradingView reference manual. Feedback and suggestions for improvement are more than welcome, as well are recommended Input settings and best practices for use.
tradingview.com/chart/?solution=43000502250
Strategy Description
---------------------------
ADX defines whether or not there is a trend present; +DI and -DI compliment the ADX by taking direction into account. An ADX above 25 indicates a strong trend, and a Bullish alert is subsequently triggered when +DI is above -DI and a Bearish alert when -DI is above +DI.
Note that the Bullish or Bearish crossover alert will only trigger if ADX is simultaneously above 25 during the crossover event. If ADX later rises to 25 and +DI is still greater than -DI, or -DI greater than +DI, then a delayed alert will not trigger by design.
Basic Use
---------------------------
Acceptable DMI values are up to the trader's interpretation and may change depending on the financial instrument being examined. Recommend not changing any default values without being first familiar with their purpose and impact on the indicator at large.
Confidence in price action and trend is higher when two or more indicators are in agreement -- therefore we recommend not using this indicator by itself to determine entry or exit trade opportunities.
Recommend also choosing 'Once Per Bar Close' when creating alerts.
Inputs
---------------------------
ADX Smoothing - the time period to be used in calculating the ADX which has a smoothing component (14 is the Default).
DI Length - the time period to be used in calculating the DI (14 is the Default).
Key Level - any trade with the ADX above the key level is a strong indicator that it is trending (23 to 25 is the suggested setting).
Sensitivity - an incremental variable to test whether the past n candles are in the same bullish or bearish state before triggering a delayed crossover alert (3 is the Default). Filter out some noise and reduces active alerts.
Show ADX Option - two visual styles are provided for user preference, a visible ADX line or a background overlay (green or red when ADX is above the key level, for bullish or bearish, and gray when below).
Color Candles - an option to transpose the bullish and bearish crossovers to the main candle bars. Can be turned off in the Style Tab by deselecting 'Bar Colors'. Dark blue is bullish, dark purple is bearish, and the black inner color is neutral. Note that the outer red and green border will still be distinguished by whether each individual candle is bearish or bullish during the specified timeframe.
Indicator Visuals
---------------------------
Bullish or Bearish plot based on DMI strategy (ADX and +/-DI values).
Visual cues are intended to improve analysis and decrease interpretation time during trading, as well as to aid in understanding the purpose of this study and how its inclusion can benefit a comprehensive trading strategy.
Trend Strength
---------------------------
To analyze trend strength, the focus should be on the ADX line and not the +DI or -DI lines. An ADX reading above 25 indicates a strong trend, while a reading below 20 indicates a weak or non-existent trend. A reading between those two values would be considered indeterminable. Though what is truly a strong trend or a weak trend depends on the financial instrument being examined; historical analysis can assist in determining appropriate values.
Bullish DI Cross
---------------------------
1. ADX must be over 25 (strong trend) (value is determined by the trader)
2. +DI cross above -DI
3. Set Stop Loss at the current day's low (any +DI cross-backs below -DI should be ignored)
4. Set trailing stop if ADX strengthens (i.e., signal rises)
Bearish DI Cross
---------------------------
1. ADX must be over 25 (strong trend) (value is determined by the trader)
2. -DI cross above +DI
3. Set Stop Loss at the current day's high (any -DI cross-backs below +DI should be ignored)
4. Set trailing stop if ADX strengthens (i.e., signal rises)
Disclaimer
---------------------------
This post and the script are not intended to provide any financial advice. Trade at your own risk.
No known repainting.
Version 1.1
-------------------------
- Added multi-timeframe resolution using PineCoders secure security function to eliminate repainting.
- Cleaned up option for selecting ADX view; and added a colored line as a choice, based on same bullish, bearish, or neutral colors as the background.
- Added exit crossover indicator to aid in an overall strategy development. This ability pairs better with my CHOP Zone Entry Strategy which relies on DMI Exits. Note that exit conditions don't employ the sensitivity variable. Green labels are for Bullish exits and red are for Bearish.
-- Exit condition is triggered if in an active Bullish or Bearish position and ADX drops below 25, Or if either the -DI crosses above +DI (for previously Bullish) or +DI crosses above -DI (for previously Bearish).
- Added reverse position determination. Triggers when a Bullish entry occurs on the same candle as a Bearish exit, or vice versa. Green labels are for Bullish reverses and red are for Bearish.
- Added selectable option to choose visible labels -- Bearish, Bullish, Both, Exits, Reverses, or All.
-- Note that a reverse label will only show if the opposing entry and exit labels are set to show, otherwise the reverse will revert to the appropriate entry or exit on the chart.
- Added alerts to account for new conditions.
-- Note that alerts for crossovers, exits, and reverses will only be triggered if the associated labels are selected to be shown (i.e., what you choose to see on the chart is what you will be alerted to).
Version 1.2
-------------------------
- Changed exit condition to be decided on by whether ADX is below 25 and on a +/-DI crossover. Versus being either or. The previous version had too many false triggers. This variety can now show multiple Bullish or Bearish alerts before an Exit condition too. I'm tempted to simply make this condition based on ADX, and not DI … thoughts? See lines 138 and 139.
- Updated the Background view to have deeper shades of colors dependent upon the ADX trend strength.
- Added an Oscillator view for the ADX and momentum computations to color the histogram by trend. DI lines are hidden.
-- If ADX is Bullish, then the oscillator is colored light green in an uptrend and dark green in a downtrend; if Bearish, then its light red in an uptrend and dark redin a downtrend; if adx is below key level, then it is light gray in a downtrend and dark grey in the uptrend.
- Added option to Hide ADX in case only the Directional lines are desired. This could be useful if you would like to have the ADX oscillator in one panel and +/-DI crossovers in another.
- Added a Columnar view for the ADX. DI lines are hidden. This view is really simple and compact, with the trend strength still easily understood. Colors are the same as for the oscillator -- the deeper the shade of green or red, then the higher the ADX trend strength level.
- Added a Trend Strength label.
ADX Trend Strength Trade (Y/N) Setup Types
0 to 10 = Barely Breathing N N/A
10 to 20 = Weak Trend Y Range/Pre-Breakout
20 to 30 = Potentially Starting to Trend Y Early Stage Trend
30 to 50 = Strong Trend Y Ride the Wave
50 to 75 = Very Strong Trend N Exhaustion
75 to 100 = Extremely Strong Trend N N/A
Version 1.3
-------------------------
Updated to Pine Script v5 to resolve errors from the deprecated v4 version.
This is a reissue of a previously published script that was hidden due to a v4 compatibility issue.
'https://www.tradingview.com/script/9OoEHrv5-Directional-Movement-Index-DMI-Alerts/'
Guppy Multiple Moving Average (GMMA)The GMMA Momentum Indicator plots 12 EMAs on your chart, divided into two groups:
Short-term EMAs (6 lines, default periods: 3, 5, 8, 10, 12, 15): Represent short-term trader sentiment and momentum.
Long-term EMAs (6 lines, default periods: 30, 35, 40, 45, 50, 60): Reflect long-term investor behavior and broader market trends.
By analyzing the interaction between these two groups, the indicator identifies:
Bullish and bearish trends based on the relative positions of the short- and long-term EMAs.
Momentum strength through the spread or convergence of the EMAs.
Potential reversals or breakouts via compression signals.
This PineScript version enhances the traditional GMMA by adding visual cues like background colors, bearish signals, and compression detection, making it ideal for swing traders seeking clear, actionable insights.
The GMMA Momentum Indicator provides several key features:
1. Trend Identification
Bullish Trend: When the short-term EMAs (green lines) are above the long-term EMAs (blue lines) and spreading apart, it signals strong upward momentum. The chart background turns light green to highlight this condition.
Bearish Trend: When the short-term EMAs cross below the long-term EMAs and converge, it indicates downward momentum. The background turns light red, and an orange downward triangle appears above the bar to mark a new bearish signal.
2. Momentum Analysis
The spread between the short-term EMAs reflects the strength of short-term momentum. A wide spread suggests strong momentum, while a tight grouping indicates weakening momentum or consolidation. Similarly, the long-term EMAs act as dynamic support or resistance, guiding traders on the broader trend.
3. Compression Detection
Compression occurs when both the short-term and long-term EMAs converge, signaling low volatility and a potential breakout or reversal. A yellow upward triangle appears below the bar when compression is detected, alerting traders to watch for price action.
4. Visual Cues
Green short-term EMAs: Show short-term trader activity.
Blue long-term EMAs: Represent long-term investor sentiment.
Background colors: Light green for bullish trends, light red for bearish trends, and transparent for neutral conditions.
Orange downward triangles: Mark new bearish trends.
Yellow upward triangles: Indicate compression, hinting at potential breakouts.
How to Use the GMMA Momentum Indicator for Swing Trading
Swing trading involves capturing price moves over days to weeks, and the GMMA Momentum Indicator is an excellent tool for this strategy. Here’s how to use it effectively:
1. Identifying Trade Entries
Buy Opportunities:
Look for a bullish trend (green background) where the short-term EMAs are above the long-term EMAs and spreading apart, indicating strong momentum.
A compression signal (yellow triangle) followed by a breakout above resistance or a bullish candlestick pattern can confirm an entry.
Example: On a daily chart, if the short-term EMAs cross above the long-term EMAs and the background turns green, consider entering a long position, especially if volume supports the move.
Sell Opportunities:
Watch for a bearish signal (orange downward triangle) or a bearish trend (red background) where the short-term EMAs cross below the long-term EMAs.
Example: If the short-term EMAs collapse below the long-term EMAs and an orange triangle appears, it may signal a shorting opportunity or a time to exit longs.
2. Managing Trades
Use the long-term EMAs as dynamic support (in uptrends) or resistance (in downtrends) to set stop-loss levels or trail stops.
Monitor the spread of the short-term EMAs. A widening spread suggests the trend is strong, while convergence may indicate it’s time to take profits or tighten stops.
3. Anticipating Reversals
Compression signals (yellow triangles) highlight periods of low volatility, often preceding significant price moves. Combine these with price action (e.g., breakouts or reversals) or other indicators (e.g., RSI or volume) for confirmation.
Example: If a compression signal appears near a key support level and the price breaks upward, it could signal the start of a new bullish swing.
4. Best Practices
Timeframes: The indicator works well on daily or 4-hour charts for swing trading, but you can adjust the EMA periods for shorter (e.g., 1-hour) or longer (e.g., weekly) timeframes.
Confirmation: Combine the GMMA with other tools like support/resistance levels, candlestick patterns, or oscillators (e.g., MACD) to reduce false signals.
Risk Management: Always use proper position sizing and stop-losses, as EMAs are lagging indicators and may produce delayed signals in choppy markets.
Reverse Keltner Channel StrategyReverse Keltner Channel Strategy
Overview
The Reverse Keltner Channel Strategy is a mean-reversion trading system that capitalizes on price movements between Keltner Channels. Unlike traditional Keltner Channel strategies that trade breakouts, this system takes the contrarian approach by entering positions when price returns to the channel after overextending.
Strategy Logic
Long Entry Conditions:
Price crosses above the lower Keltner Channel from below
This signals a potential reversal after an oversold condition
Position is entered at market price upon signal confirmation
Long Exit Conditions:
Take Profit: Price reaches the upper Keltner Channel
Stop Loss: Placed at half the channel width below entry price
Short Entry Conditions:
Price crosses below the upper Keltner Channel from above
This signals a potential reversal after an overbought condition
Position is entered at market price upon signal confirmation
Short Exit Conditions:
Take Profit: Price reaches the lower Keltner Channel
Stop Loss: Placed at half the channel width above entry price
Key Features
Mean Reversion Approach: Takes advantage of price tendency to return to mean after extreme moves
Adaptive Stop Loss: Stop loss dynamically adjusts based on market volatility via ATR
Visual Signals: Entry points clearly marked with directional triangles
Fully Customizable: All parameters can be adjusted to fit various market conditions
Customizable Parameters
Keltner EMA Length: Controls the responsiveness of the channel (default: 20)
ATR Multiplier: Determines channel width/sensitivity (default: 2.0)
ATR Length: Affects volatility calculation period (default: 10)
Stop Loss Factor: Adjusts risk management aggressiveness (default: 0.5)
Best Used On
This strategy performs well on:
Currency pairs with defined ranging behavior
Commodities that show cyclical price movements
Higher timeframes (4H, Daily) for more reliable signals
Markets with moderate volatility
Risk Management
The built-in stop loss mechanism automatically adjusts to market conditions by calculating position risk relative to the current channel width. This approach ensures that risk remains proportional to potential reward across varying market conditions.
Notes for Optimization
Consider adjusting the EMA length and ATR multiplier based on the specific asset and timeframe:
Lower values increase sensitivity and generate more signals
Higher values produce fewer but potentially more reliable signals
As with any trading strategy, thorough backtesting is recommended before live implementation.
Past performance is not indicative of future results. Always practice sound risk management.
Half Supertrend [NLR]While the Supertrend is a popular tool, traders often face the challenge of false signals and uncertain entry points. The Half Supertrend indicator addresses these shortcomings by introducing a dynamic mid-level , offering a significantly improved way to identify true trend strength and potential high-probability entries.
Here's how the mid-level enhances your trend analysis:
Filter Out Noise: Instead of reacting to every Supertrend flip, the mid-level helps you identify the strength of the trend. Price moving strongly away from the mid-level confirms a higher conviction move.
Identify Optimal Pullback Entries: Waiting for price to pull back to the dynamic mid-level after a Supertrend direction change can provide better entry prices and potentially higher probability setups, capitalizing on established momentum. This approach helps avoid entering prematurely on weaker signals.
Gain Deeper Trend Insight: The position of the price relative to both the Supertrend line and the mid-level paints a clearer picture of the current trend's strength and potential for continuation or reversal.
Here's the technical edge you've been waiting for:
Enhanced Trend Confirmation: This indicator plots a mid-level derived from half the Average True Range (ATR) multiple, acting as a crucial intermediary for assessing trend strength.
Intra-Trend Strength Analysis:
Price above/below the mid-level: Indicates a strong trending move aligned with the Supertrend direction.
Price between the mid-level and the Supertrend line: Suggests a weaker trend and a higher probability of consolidation or reversal.
Early Reversal Detection: Price crossing the mid-level can serve as an early warning signal of a potential trend change.
Higher Timeframe Clarity: The user-configurable higher timeframe (HTF) input provides a robust, multi-timeframe trend bias.
Dynamic Entry Levels: Potential entry levels based on the mid-level are plotted for visual guidance.
Clear Visual Representation: Color-coded lines and filled areas simplify trend and strength assessment.
How it works under the hood:
This indicator utilizes the standard Supertrend calculation on the chosen higher timeframe, incorporating the Average True Range (ATR) to determine volatility-adjusted bands. The unique addition is the "half trend" line, calculated by adding or subtracting half of the ATR-based trailing stop value from the Supertrend line. This mid-level acts as a crucial intermediary zone for evaluating the conviction of the current trend.
// Calculate the mid-level line
half_line = supertrend + (atr * half_factor)
Key Input Parameters:
ATR Length: Determines the period for calculating the Average True Range (default: 10).
Factor: The multiplier applied to the ATR to determine the Supertrend band width (default: 3). The mid-level dynamically adjusts based on half of this factor.
Timeframe: Allows you to select a higher timeframe for the Supertrend calculation, providing a broader trend context.
Up Color/Down Color: Customize the colors for uptrend and downtrend indications.
OTE & A-B-C Zone Indicator SwiftEdgeOTE & A-B-C Zone Indicator SwiftEdge
Overview
The OTE & A-B-C Zone Indicator SwiftEdge is a versatile tool designed to help traders identify high-probability trading setups using a combination of Optimal Trade Entry (OTE) zones, Fibonacci levels, and A-B-C price patterns. This indicator is particularly useful for traders who rely on price action and Fibonacci-based strategies to find entry points, set stop-losses, and target potential take-profit levels. By integrating swing point detection, trend analysis, and Fibonacci projections, SwiftEdge provides a clear visual framework for making informed trading decisions across various timeframes.
What It Does
SwiftEdge identifies key price levels and zones to guide your trading:
OTE Zone: Highlights the Optimal Trade Entry zone between swing points A (swing high) and B (swing low) using Fibonacci retracement levels (default: 0.618 to 0.786). This zone represents a high-probability area for price reversals, making it an ideal entry point for trades.
A-B-C Pattern: Marks the latest swing points as A (swing high), B (swing low), and C (projected take-profit level) with dashed lines and labels. A solid line connects A to B to C, visually illustrating the price movement from entry to target.
Take-Profit Zones: Projects three customizable take-profit levels (TP1, TP2, TP3) based on Fibonacci extensions (default: 1.272, 1.618, 2.0) from the A-B swing, helping traders plan exits with favorable risk-reward ratios.
How It Works
SwiftEdge combines several technical components to create a cohesive trading system:
Swing Point Detection: Identifies significant swing highs (A) and swing lows (B) using a dynamic lookback period that adjusts to the selected timeframe. On lower timeframes like 1-minute charts, an ATR-based filter reduces noise by requiring price movements to exceed a threshold (0.5 * ATR(14)).
Trend Analysis: Uses an Exponential Moving Average (EMA) to determine the trend direction (default: 50-period EMA on 1H). The indicator marks uptrends (price above EMA) in green and downtrends (price below EMA) in red, ensuring trades align with the market's direction.
Fibonacci Levels: Applies Fibonacci retracement to define the OTE zone between A and B, and Fibonacci extensions to project take-profit levels (C) beyond the initial swing. This approach leverages the natural tendency of markets to respect Fibonacci ratios for reversals and extensions.
Visual Clarity: Displays only the latest A-B-C pattern with three dashed lines (A, B, C) and a solid connecting line, ensuring the chart remains uncluttered and easy to interpret.
The combination of these elements creates a structured setup where the OTE zone (between A and B) serves as an entry point, while the projected C level offers a target, all within the context of the prevailing trend. This synergy makes SwiftEdge a powerful tool for traders seeking to combine price action, trend analysis, and Fibonacci strategies.
How to Use
Add the Indicator: Apply the indicator to your chart via TradingView's indicator menu.
Identify the Trend: The OTE zone and A-B-C pattern will be colored green in uptrends (price above EMA) or red in downtrends (price below EMA). Use this to determine the market direction.
Entry Point: Look for price reversals within the OTE zone (between A and B). This zone is typically between the 0.618 and 0.786 Fibonacci retracement levels of the A-B swing, making it a high-probability area for entries.
Stop-Loss: Place your stop-loss below the OTE zone in an uptrend (or above in a downtrend) to protect against false breakouts.
Take-Profit Targets: Use the projected take-profit zones (TP1, TP2, TP3) as potential exit levels. These are based on Fibonacci extensions and can be toggled on/off in the settings.
Customization:
Adjust the Fibonacci levels for the OTE zone (Fibonacci Level 1 and Fibonacci Level 2) to suit your strategy.
Modify the take-profit levels (Fibonacci Extension Level for TP1/TP2/TP3) to target different extension ratios.
Change the lookback period (Base Lookback Period) and EMA period (Base EMA Period) to fine-tune swing point detection and trend sensitivity.
Customize colors for uptrends, downtrends, and A-B-C lines to match your preferences.
What Makes It Unique
SwiftEdge stands out by integrating swing point detection, Fibonacci-based OTE zones, and A-B-C price patterns into a single, visually intuitive indicator. Unlike standalone Fibonacci tools or trend indicators, SwiftEdge combines these elements to provide a complete trading setup: it identifies entry zones (OTE), confirms trend direction (EMA), and projects take-profit targets (Fibonacci extensions). The dynamic timeframe adjustment ensures consistent performance across all chart intervals, while the clean A-B-C visualization (with only the latest pattern displayed) prevents chart clutter, making it easier to focus on the most relevant price levels.
Notes
This indicator is designed for traders familiar with price action and Fibonacci strategies. It does not guarantee profits and should be used in conjunction with other analysis tools and proper risk management.
Performance may vary depending on market conditions and timeframe. Test the indicator on a demo account before using it in live trading.
nineLivesUtilLibLibrary "nineLivesUtilLib"
isDateInRange(currentTime, useTimeFilter, startDate, endDate)
Checks if the current time is within the specified date range.
Parameters:
currentTime (int) : The current bar's time (time).
useTimeFilter (bool) : Bool 📅: Enable the date range filter.
startDate (int) : Timestamp 📅: The start date for the filter.
endDate (int) : Timestamp 📅: The end date for the filter.
Returns: True if the current time is within the range or filtering is disabled, false otherwise.
@example
inDateRange = nineLivesUtilLib.isDateInRange(time, useTimeFilter, startDate, endDate)
if inDateRange
// Execute trading logic
checkVolumeCondition(currentVolume, useVolumeFilter, volumeThresholdMultiplier, volumeLength)
Checks if the current volume meets the threshold condition.
Parameters:
currentVolume (float) : The current bar's volume (volume).
useVolumeFilter (bool) : Bool 📊: Enable the volume filter.
volumeThresholdMultiplier (float) : Float 📊: Volume threshold relative to average (e.g., 1.5 for 1.5x average).
volumeLength (int) : Int 📊: Lookback length for the volume average.
Returns: True if the volume condition is met or filtering is disabled, false otherwise.
@example
volumeOk = nineLivesUtilLib.checkVolumeCondition(volume, useVolumeFilter, volumeThreshold, volumeLength)
if volumeOk
// Proceed with trading logic
checkMultiTimeframeCondition(currentClose, currentOpen, htfClose, htfOpen, useMultiTimeframe, alignment)
Checks alignment with higher timeframe direction.
Parameters:
currentClose (float) : Float: The current bar's closing price (close).
currentOpen (float) : Float: The current bar's opening price (open).
htfClose (float) : Float: The closing price from the higher timeframe (must be fetched by the calling script using request.security).
htfOpen (float) : Float: The opening price from the higher timeframe (must be fetched by the calling script using request.security).
useMultiTimeframe (bool) : Bool ⏱️: Enable multi-timeframe analysis.
alignment (string) : String ⏱️: Desired alignment ("same", "opposite", "any").
Returns: True if the timeframe alignment condition is met or analysis is disabled, false otherwise.
@example
// In the calling script:
= request.security(syminfo.tickerid, higherTimeframe, )
tfOk = nineLivesUtilLib.checkMultiTimeframeCondition(close, open, htfClose, htfOpen, useMultiTimeframe, tfAlignment)
if tfOk
// Proceed with trading logic
checkMarketRegime(useMarketRegime, regimeIndicator, regimeThreshold, regimeLength, regimeMode)
Detects the market regime (trending or ranging) and checks if trading is allowed.
Parameters:
useMarketRegime (bool) : Bool 🔍: Enable market regime detection.
regimeIndicator (string) : String 🔍: Indicator to use ("ADX" or "Volatility").
regimeThreshold (int) : Int 🔍: Threshold for trend strength/volatility.
regimeLength (simple int) : Int 🔍: Lookback length for the indicator.
regimeMode (string) : String 🔍: Trading mode based on regime ("trend_only", "range_only", "adaptive").
Returns: A tuple containing:
: conditionMet (bool) - True if trading is allowed based on the regime mode and detection, false otherwise.
: inTrendingRegime (bool) - True if the current regime is trending based on the indicator and threshold.
@example
= nineLivesUtilLib.checkMarketRegime(useMarketRegime, regimeIndicator, regimeThreshold, regimeLength, regimeMode)
if regimeOk
// Proceed with trading logic
applyCooldown(buySignal, sellSignal, cooldownBars)
Applies a cooldown period after a signal.
Parameters:
buySignal (bool) : Bool: Buy signal (potentially after primary entry logic).
sellSignal (bool) : Bool: Sell signal (potentially after primary entry logic).
cooldownBars (int) : Int ⏳: The number of bars to wait after a signal before allowing another.
Returns: A tuple containing:
: cooldownFilteredBuy (bool) - Buy signal after cooldown filter.
: cooldownFilteredSell (bool) - Sell signal after cooldown filter.
@example
= nineLivesUtilLib.applyCooldown(rawBuySignal, rawSellSignal, iCool)
applyAllFilters(rawBuy, rawSell, inDateRange, tradeDirection, volumeOk, tfOk, regimeOk, drawdownOk, cooldownOkBuy, cooldownOkSell)
Applies all filtering conditions to the buy and sell signals.
Parameters:
rawBuy (bool) : Bool: The initial buy signal candidate (from primary entry logic, e.g., after cooldown).
rawSell (bool) : Bool: The initial sell signal candidate (from primary entry logic, e.g., after cooldown).
inDateRange (bool) : Bool 📅: Result from isDateInRange.
tradeDirection (string) : String 🔄: Overall trade direction preference ("longs_only", "shorts_only", "both").
volumeOk (bool) : Bool 📊: Result from checkVolumeCondition.
tfOk (bool) : Bool ⏱️: Result from checkMultiTimeframeCondition.
regimeOk (bool) : Bool 🔍: Result from checkMarketRegime.
drawdownOk (bool) : Bool 📉: Result from checkDrawdownExceeded (or equivalent).
cooldownOkBuy (bool) : Bool ⏳: Result from applyCooldown for buy.
cooldownOkSell (bool) : Bool ⏳: Result from applyCooldown for sell.
Returns: A tuple containing:
: finalBuySignal (bool) - The final buy signal after all filters.
: finalSellSignal (bool) - The final sell signal after all filters.
@example
= nineLivesUtilLib.applyAllFilters(cooldownBuy, cooldownSell, inDateRange, tradeDirection, volumeOk, tfOk, regimeOk, !drawdownExceeded, cooldownBuy, cooldownSell)
NOTE: This function filters signals generated by your primary entry logic (e.g., EMA crossover).
checkDrawdownExceeded(currentEquity, useMaxDrawdown, maxDrawdownPercent)
Tracks maximum equity and checks if current drawdown exceeds a threshold.
Parameters:
currentEquity (float) : Float: The strategy's current equity (strategy.equity).
useMaxDrawdown (bool) : Bool 📉: Enable max drawdown protection.
maxDrawdownPercent (float) : Float 📉: The maximum allowed drawdown as a percentage.
Returns: True if drawdown protection is enabled and the current drawdown exceeds the threshold, false otherwise.
@example
drawdownExceeded = nineLivesUtilLib.checkDrawdownExceeded(strategy.equity, useMaxDrawdown, maxDrawdownPercent)
if drawdownExceeded
// Consider stopping entries or exiting positions in the strategy script
calculateExitPrice(positionAvgPrice, percentage, isStop, isLong)
Calculates a stop loss or take profit price based on a percentage from the average entry price.
Parameters:
positionAvgPrice (float) : Float: The average price of the current position (strategy.position_avg_price).
percentage (float) : Float: The stop loss or take profit percentage (e.g., 2.0 for 2%).
isStop (bool) : Bool: True if calculating a stop loss price, false if calculating a take profit price.
isLong (bool) : Bool: True if the position is long, false if short.
Returns: The calculated stop price or take profit price, or na if no position or percentage is invalid.
@example
longSL = nineLivesUtilLib.calculateExitPrice(strategy.position_avg_price, stopLossPercent, true, true)
shortTP = nineLivesUtilLib.calculateExitPrice(strategy.position_avg_price, takeProfitPercent, false, false)
calculateTrailingStopLevel(positionAvgPrice, trailOffsetPercent, trailPercent, currentHigh, currentLow, isLong)
Calculates the current trailing stop level for a position.
Parameters:
positionAvgPrice (float) : Float: The average price of the current position (strategy.position_avg_price).
trailOffsetPercent (float) : Float 🔄: The percentage price movement to activate the trailing stop.
trailPercent (float) : Float 🔄: The percentage distance the stop trails behind the price.
currentHigh (float) : Float: The current bar's high (high).
currentLow (float) : Float: The current bar's low (low).
isLong (bool) : Bool: True if the position is long, false if short.
Returns: The calculated trailing stop price if active, otherwise na.
@example
longTrailStop = nineLivesUtilLib.calculateTrailingStopLevel(strategy.position_avg_price, trailOffset, trailPercent, high, low, true)
shortTrailStop = nineLivesUtilLib.calculateTrailingStopLevel(strategy.position_avg_price, trailOffset, trailPercent, high, low, false)
if not na(longTrailStop)
strategy.exit("Long Trail", from_entry="Long", stop=longTrailStop)
[blackcat] L3 Cloud PioneerOVERVIEW
The L3 Cloud Pioneer indicator combines elements of the Ichimoku Kinko Hyo system with Donchian Channels to provide a robust trend-following tool. This enhanced version includes detailed trade signal labels and alerts, helping traders identify potential entry and exit points more clearly. By plotting dynamic cloud areas and providing visual cues, this indicator aids in making informed trading decisions 📊📉↗️.
FEATURES
Calculates key Ichimoku components using custom Donchian Channel logic:
Conversion Line (based on highest/highest values over specified periods).
Base Line.
Leading Spans.
Lagging Span 2.
Plots a dynamic cloud area between Leading Span 1 and Leading Span 2, colored based on trend direction 🎨.
Identifies trend changes and provides clear entry/exit signals:
LE: Long Entry (when trend turns bullish).
SE: Short Entry (when trend turns bearish).
XL: Exit Long (price crosses below Leading Span 1 during an uptrend).
RL: Re-enter Long (price crosses above Leading Span 1 during an uptrend).
XS: Exit Short (price crosses above Leading Span 1 during a downtrend).
RS: Re-enter Short (price crosses below Leading Span 1 during a downtrend).
Displays corresponding labels on the chart for easy visualization, complete with tooltips for additional information 🏷️.
Generates alerts for each signal event to keep users informed about potential trades 🔔.
Supports customizable input parameters for conversion line, base line, and lagging span periods ⚙️.
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Adjust the input parameters (Conversion Line Periods, Base Line Periods, Lagging Span 2 Periods) to fit your preferences.
Observe the plotted cloud and labels for trend direction and potential trade opportunities.
Set up alerts based on the generated signals to receive notifications when conditions are met 📲.
Combine this indicator with other tools for confirmation before making trading decisions.
DETAILED SIGNAL LOGIC
Trend Determination:
The script determines the trend direction by comparing leading_line1 and leading_line2.
If leading_line1 is above leading_line2, the trend is considered bullish (isBullish). Otherwise, it's bearish (isBearish).
Signal Conditions:
Long Entry (LE): Triggered when the trend turns bullish from bearish.
Short Entry (SE): Triggered when the trend turns bearish from bullish.
Exit Long (XL): Triggered when the price crosses below leading_line1 during an uptrend.
Re-enter Long (RL): Triggered when the price crosses above leading_line1 during an uptrend.
Exit Short (XS): Triggered when the price crosses above leading_line1 during a downtrend.
Re-enter Short (RS): Triggered when the price crosses below leading_line1 during a downtrend.
Label Styling:
Labels are color-coded for quick identification:
Green for long entries and re-entries.
Red for short entries and exits.
Blue for exiting long positions.
Orange for re-entering short positions.
Tooltips provide additional context for each label.
Alert Configuration:
Alerts are generated for each signal condition, ensuring traders are notified promptly.
Users can set up these alerts within TradingView by creating new alerts and selecting the appropriate conditions.
LIMITATIONS
The indicator may lag behind price action due to its use of moving averages and channel calculations 🕒.
False signals can occur in choppy or sideways markets 🌪️.
Users should always confirm signals with other forms of analysis.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Customize the appearance and parameters as needed to fit your trading strategy.
For better risk management, consider integrating stop-loss and take-profit levels into your trading plan.
To optimize performance, manage old labels by deleting them after a certain period to avoid clutter on the chart.
Gaussian Channel StrategyGaussian Channel Strategy — User Guide
1. Concept
This strategy builds trades around the Gaussian Channel. Based on Pine Script v4 indicator originally published by Donovan Wall. With rework to v6 Pine Script and adding entry and exit functions.
The channel consists of three dynamic lines:
Line Formula Purpose
Filter (middle) N-pole Gaussian filter applied to price Market "equilibrium"
High Band Filter + (Filtered TR × mult) Dynamic upper envelope
Low Band Filter − (Filtered TR × mult) Dynamic lower envelope
A position is opened when price crosses a user-selected line in a user-selected direction.
When the smoothed True Range (Filtered TR) becomes negative, the raw bands can flip (High drops below Low).
The strategy automatically reorders them so the upper band is always above the lower band.
Visual colors still flip, but signals stay correct.
2. Entry Logic
Choose a signal line for longs and/or shorts: Filter, Upper band, or Lower band.
Choose a cross direction (Cross Up or Cross Down).
A signal remains valid for Lookback bars after the actual cross, as long as price is still on the required side of the line.
When the opposite signal appears, the current position is closed or reversed depending on Reverse on opposite.
3. Parameters
Group Setting Meaning
Source & Filter Source Price series used (close, hlc3, etc.)
Poles (N) Number of Gaussian filter poles (1-9). More poles ⇒ smoother but laggier
Sampling Period Main period length of the channel
Filtered TR Multiplier Width of the bands in fractions of smoothed True Range
Reduced Lag Mode Adds a lag-compensation term (faster but noisier)
Fast Response Mode Blends 1-pole & N-pole outputs for quicker turns
Signals Long → signal line / Short → signal line Which line generates signals
Long when price / Short when price Direction of the cross
Lookback bars for late entry Bars after the cross that still allow an entry
Trading Enable LONG/SHORT-side trades Turn each side on/off
On opposite signal: reverse True: reverse -- False: flat
Misc Start trading date Ignores signals before this timestamp (back-test focus)
4. Quick Start
Add the strategy to a chart. Default: hlc3, N = 4, Period = 144.
Select your signal lines & directions.
Example: trend trading – Long: Filter + Cross Up, Short: Filter + Cross Down.
Disable either side if you want long-only or short-only.
Tune Lookback (e.g. 3) to catch gaps and strong impulses.
Run Strategy Tester, optimise period / multiplier / stops (add strategy.exit blocks if needed).
When satisfied, connect alerts via TradingView webhooks or use the builtin broker panel.
5. Notes
Commission & slippage are not preset – adjust them in Properties → Commission & Slippage.
Works on any market and timeframe, but you should retune Sampling Period and Multiplier for each symbol.
No stop-loss / take-profit is included by default – feel free to add with strategy.exit.
Start trading date lets you back-test only recent history (e.g. last two years).
6. Disclaimer
This script is for educational purposes only and does not constitute investment advice.
Use entirely at your own risk. Back-test thoroughly and apply sound risk management before trading real capital.
Auto Trend Channel + Buy/Sell AlertsThis indicator automatically detects trend channels using a linear regression line, and dynamically plots upper and lower channel boundaries based on standard deviation. It helps traders identify potential Buy and Sell zones with clear visual signals and customizable alerts.
💡 How It Works:
🧠 Regression-Based Channel: Calculates the central trend line using ta.linreg() over a user-defined length.
📏 Dynamic Boundaries: Upper and lower channel lines are offset by a multiplier of the standard deviation for precision volatility tracking.
✅ Buy Signals: Triggered when price crosses above the lower boundary — potential bounce entry.
❌ Sell Signals: Triggered when price crosses below the upper boundary — potential reversal exit.
🔔 Alerts Enabled: Get real-time alerts when price touches the channel lines.
ICT SMC Liquidity Grabs and OBsICT SMC Liquidity Grabs + Order Blocks + Fibonacci OTE Levels
A High-Probability Entry Engine for Smart Money Concept Traders
This script combines three powerful Smart Money Concepts (SMC) into a single tool: Liquidity Grabs, Order Block Zones, and Fibonacci OTE Levels, allowing traders to identify institutional entry models with clean, rule-based visual signals.
It’s designed to simplify SMC trading by highlighting confluence zones where price is likely to reverse or continue — with clear visual zones, entry arrows, and take profit projections.
🔍 What This Script Does:
Detects Liquidity Grabs
Identifies when price sweeps above/below the highest high or lowest low within a user-defined lookback period and closes back inside.
Plots orange labels on the chart to signal potential liquidity events (LG-H / LG-L).
Plots Order Blocks After Liquidity Grabs
After a liquidity grab, the script looks for displacement candles (strong bullish or bearish moves) and draws highlighted OB zones extending several bars to the right.
These zones represent potential institutional footprints for price reversals.
Draws Fibonacci OTE Levels (Optimal Trade Entry)
Uses recent swing high and low pivots to automatically calculate OTE zones (default: 62% and 75% retracement levels).
Draws these retracement zones for both bullish and bearish setups.
Marks Valid OTE Entry Zones
Buy/Sell zones only trigger when:
A liquidity grab occurs,
Price enters the OTE zone,
And a strong confirming candle is present.
Plots green/red arrows for valid buy/sell OTE entries.
Auto-Draws Take Profit Zones
TP1 = Previous swing high/low
TP2 = Risk-based R-multiplied extension (e.g., 1.5R — customizable)
Alerts
Triggers alerts when valid buy or sell OTE setups are detected.
⚙️ Customization Features:
Toggle each feature: Liquidity Grabs, Order Blocks, Fibonacci OTE levels
Set Fibonacci retracement percentages (e.g., 0.62 / 0.75)
Adjust lookback window for liquidity detection
Customize the take-profit multiplier (R-based)
Full control over visuals: colors, labels, and lines
💡 How to Use:
Use this script to scan for high-confluence trade setups based on Smart Money principles.
Combine with session timing (e.g., New York open), major swing structure, or Kill Zone windows for maximum edge.
Look for arrows inside OB zones or OTE levels following liquidity sweeps for cleaner entries.
🔗 Works Best With:
✅ First FVG — Opening Range Fair Value Gap Detector: Identify early inefficiencies to set the narrative for the day.
✅ Liquidity Levels — Smart Swing Lows: Spot key structural lows that can fuel stop hunts and reversals.
✅ ICT Turtle Soup — Liquidity Reversal: Add a classic reversal pattern to your toolkit to catch fakeouts cleanly.
Together, these tools build a complete Smart Money ecosystem for entry precision, risk management, and price behavior forecasting.
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.