H12 Candle DirectionDisplays a green dot if the preceding H12 candle closed bullish or red if it was bearish.
캔들스틱 분석
Smoothed EMA Heiken AshiSmoothed EMA Heikinashi for trading.
Default is : (Before HA) 10 / (After HA) 10
Swing Trading is : 20 / 20 * Only a recommendation
Scalping is: 5 / 5 * Only a recommendation
Engulfing Candles (ATR-Based)This indicator detects Engulfing Patterns with an ATR-based filtering mechanism and trend confirmation. Unlike a basic engulfing pattern indicator that only checks if a current candle engulfs the previous one, this script incorporates trend detection using either the 50-period SMA alone or a combination of 50 and 200-period SMAs to ensure that signals align with the broader trend. The indicator identifies Bullish Engulfing patterns when a strong bullish candle engulfs a smaller bearish candle in a downtrend and Bearish Engulfing patterns when a strong bearish candle engulfs a smaller bullish candle in an uptrend. It also generates alerts and visually marks these patterns with labels ("BU" for bullish and "BE" for bearish) while highlighting the background accordingly.
What sets this indicator apart from a normal engulfing indicator is its ATR-based filtering system, which ensures that only significant engulfing candles are considered. Instead of accepting any engulfing pattern, the script measures candle body size relative to 1.5x ATR (configurable) to filter out weak signals. It also differentiates between long-bodied and small-bodied candles to confirm that the engulfing pattern represents real momentum shifts. This approach reduces false signals caused by small, insignificant candles and ensures that traders focus on high-probability reversal patterns. By integrating trend-based filtering and ATR-based confirmation, this indicator provides more reliable and context-aware engulfing signals than a standard engulfing pattern detector.
Multi-Timeframe Reversal StrategyThis is my first published indicator. In spirit of this community it is free and I welcome any input to make it better. working on future projects on volume and taking tips from more experienced developers.
多头策略[75U+100x杠杆]+移动止盈A high leverage, long position trading system based on volume surges and POC trends, combined with a mobile take profit mechanism, suitable for cryptocurrency markets (such as BTC/USDT contract trading)
Ambush against the trend, filter out fake breakthroughs
Key indicators: Volume moving average volMA/POC trend pocTrend/Price moving average priceMA
Candle Pattern Color PainterThis helps you isolate the most powerful candles on the chart. Use with significant levels and enter and exit at better times. The inside, outside, doji, hammer, shooter and engulfing candles can be colored to your own preference! enjoy
OHLC Line ViewerThis indicator allows you to look at the chart differently.
How many times have we had that we wanted to look at pure LOW and HIGH data as a line?
Now it's possible!
Now you can look at all these candlesticks as lines and with bonuses!
The following options are available for viewing: Open, High, Low, Close.
Also, if you want, when some data rises/falls, your color will change.
There are also points on each of the data, which will make it convenient to look at the graph.
There are flags for quick viewing: purely Open and Close, as well as purely High and Low.
The color changes in "Styles".
Color 0 -> base color / growing color
Color 1 -> falling color
Morning & Evening Star Strategy (1% TP, 0.5% SL)Morning star and evening star indicator which allows you to identify the trader basis on this price action pattern. It is only for education purpose and nothing else
50%er(Miyagi)50%er (Miyagi Version)
The 50%er (Miyagi Version) is a TradingView script that calculates and plots the 50% retracement levels of the previous candle for various timeframes. It includes additional timeframes and profit targets to enhance trading strategies.
Features:
Timeframes:
Daily, Weekly, Monthly, Quarterly, Yearly
12-Hour Candle 50% (for 0-day ETFs/options on Fridays)
6-Hour Candle 50% (for SPX)
690-Minute Candle 50% (for Futures)
Profit Targets (PTs) for each timeframe.
How It Works:
Displays the 50% level of the previous candle for the selected timeframe.
Displays only relevant 50% levels based on the selected timeframe to avoid clutter.
What sets this version of 50%er different from the original is it is modified to plot the 50% level of the 12 hour candle, 6 hour candle (SPX), and 690 candle (Futures), as well as the profit targets for each.
● 12 hour candle 50% (Only for 0Day ETF's and 0day Individuals Option Contracts on Fridays)
● 6 hour candle 50% (Only for SPX)
● 690 minute candle 50% (Only for futures)
● Profit takes for all of those unique timeframes.
For example, IWM below is in a 1-3-1 candle pattern on the 12 hour timeframe.
If the current green candle (after the last 1 candle) stays above the 12hr 50% at market open, then we will look to take shorts to the 1st red PT and possibly beyond.
If the last candle (after the last 1 candle) opens below the 12hr 50% at market open, we will look to go long to the 1st green PT and possibly beyond.
This rule also applies to the 6 hour timeframe for SPX and 690 timeframe for futures.
Must have tradingview's real-time data, as well as premarket or extended hours session enabled!
Visualization:
The 50% retracement levels and profit targets are clearly marked on the chart, offering both clarity and actionable insights for intra-day and longer-term traders alike.
BIX Candle MarkerBIX Candle Marker (by Bogdan Ilie)
"BIX Candle Marker" is a visual indicator designed to automatically mark the High and Low levels of specific candles at user-defined times and sessions directly on the main chart, facilitating easy intraday analysis.
**How does it work?**
- The indicator automatically fetches the High and Low values from a user-specified timeframe and draws horizontal lines at these levels at precise user-defined session times.
- You can configure up to 4 different sessions per trading day, each with its own customizable color and timing.
- Marked levels are automatically reset at the start of each new trading day.
**Customizable Settings:**
- **Timezone Offset:** Adjust the indicator according to your chart's timezone.
- **Candle Time Frame:** Choose the timeframe from which the candle data will be extracted.
- **Marker Length:** Set the length (number of bars) of the displayed horizontal lines.
- **Line Thickness & Style:** Customize the thickness and style of the lines (solid, dotted, dashed).
- **Sessions (1-4):** Independently configure the hour, minute, and color for each of the four possible sessions.
**Suggested Use:**
- Quickly identify intraday support and resistance levels based on key session candles.
- Ideal for breakout and reversal-based trading strategies.
---
**Disclaimer:**
This indicator is intended solely for chart analysis and educational purposes. It does not constitute financial advice. Always use it in conjunction with your personal trading strategy and risk management practices.
Author: Bogdan Ilie
Pine Script Version: v6
License: Mozilla Public License 2.0
---
BIX Candle Marker (by Bogdan Ilie)
"BIX Candle Marker" este un indicator vizual care marchează automat nivelurile High și Low ale lumânărilor specifice din sesiuni predefinite pe graficul principal, facilitând analiza punctelor-cheie intraday.
**Cum funcționează?**
- Indicatorul preia automat nivelurile maxime și minime dintr-un timeframe personalizabil și afișează linii orizontale pentru aceste nivele exact la orele și minutele configurate.
- Permite definirea a până la 4 sesiuni diferite într-o zi, fiecare având culori și setări proprii.
- Liniile marcate se resetează automat la începutul fiecărei zile de tranzacționare.
**Setări personalizabile:**
- **Timezone Offset:** ajustează indicatorul în funcție de fusul orar al graficului.
- **Candle Time Frame:** selectează timeframe-ul din care se vor prelua datele.
- **Marker Length:** stabilește lungimea (numărul de bare) liniilor orizontale afișate.
- **Line Thickness & Style:** grosimea și stilul liniilor pot fi personalizate (solid, punctat, întrerupt).
- **Sesiuni (1-4):** ora, minutul și culoarea fiecărei sesiuni pot fi configurate independent.
**Sugestii de utilizare:**
- Folosește indicatorul pentru a identifica rapid zonele de suport și rezistență create de lumânări-cheie pe parcursul zilei.
- Poate fi util pentru strategii bazate pe breakout sau reversal.
---
**Disclaimer:**
Acest indicator este destinat exclusiv analizei grafice și nu reprezintă sfaturi financiare. Utilizează-l împreună cu propriile strategii și tehnici de gestionare a riscului.
Autor: Bogdan Ilie
Versiune Pine Script: v6
Licență: Mozilla Public License 2.0
SMT Divergence with Session Highs/Lows (NQ, ES)This is an SMT indicator to see where the SMT s are with YM and ES. Also, this is session based
Marcadorde Entradas Long y Short Javier JoseScript Logic
I have integrated the following elements:
Trend Indicators: I use 9-period and 21-period Exponential Moving Averages (EMAs) to quickly detect the price direction.
Momentum Confirmation: I combine the RSI and MACD to validate the strength and direction of the movement.
Volume Filter: I only accept signals if the volume exceeds its 20-period moving average, ensuring market interest.
Volatility Filter: I use the ATR (Average True Range) to avoid signals in flat or low-volatility markets.
Candlestick Patterns: I include detection of engulfing patterns (bullish for "Long," bearish for "Short") as additional confirmation.
Support and Resistance: I use pivot points to ensure signals occur near key levels.
The result is a robust system that filters out weak signals and prioritizes the most reliable ones.
Condition Details
Trend (EMA Crossover)
Long: The fast EMA (9) crosses above the slow EMA (21).
Short: The fast EMA (9) crosses below the slow EMA (21).
Momentum
RSI:
"Long" requires RSI > 40 (avoids extreme oversold zones).
"Short" requires RSI < 60 (avoids extreme overbought zones).
MACD:
"Long" when the MACD line is above the signal line.
"Short" when the MACD line is below the signal line.
Volume
The current volume must exceed the 20-period Simple Moving Average (SMA) of volume.
Volatility (ATR)
The current ATR must exceed its 14-period SMA to ensure sufficient market movement.
Candlestick Patterns
Bullish Engulfing: Confirms "Long" when the current candle closes above the previous candle’s open and engulfs its range.
Bearish Engulfing: Confirms "Short" when the current candle closes below the previous candle’s open and engulfs its range.
Support and Resistance
Support: For "Long," the price must be near (within 1%) a previous low pivot.
Resistance: For "Short," the price must be near (within 1%) a previous high pivot.
Timeframes
The script operates only on the specified timeframes: 15 minutes, 30 minutes, 1 hour, 2 hours, 4 hours, and daily.
30 Second Opening RangeDisplaying the first 30 seconds of RTH.
Range high and low between 8:30 and 8:30:30 CST. (9:30 and 9:30:30 New York time.)
The can be used as a directional basis and breakout strategy, to spot trends and entry/exit points. For the use on US Equities NQ, ES, YM.
The option to adjust:
• High and low line color
• Mid line color
• Background color
• History (amount)
*The indicator has limitations, based around your TradingView plan and amount of data shown.
RecoveryPLAN - XAUUSD 1DCopyright RecoveryPLAN
This indicator utilizes the probability opportunities of the XAUUSD candlestick habits which are specifically designed for the 1D timeframe and have minimal risk because they use a relatively small stop loss.
Advanced ORB IndicatorAdvanced ORB (Opening Range Breakout) Indicator
Overview
The Advanced ORB Indicator is a sophisticated trading tool designed to capture high-probability breakout opportunities across multiple markets. By identifying the opening range of a trading session and detecting meaningful breakouts, this indicator helps traders enter trending moves with strong momentum while filtering out false signals.
Core Concept
The Opening Range Breakout strategy is based on the principle that the initial trading range of a session often defines key support and resistance levels. When price breaks convincingly beyond this range with proper confirmation, it frequently indicates the beginning of a directional move that can persist throughout the session.
Key Features
### Intelligent Market Detection
- Automatically identifies market type (US Stocks, Forex, Crypto, EU/Asia Stocks)
- Applies optimal default timings based on market characteristics
- Configurable time zones (Exchange, UTC, Local) for precise session timing
Customizable Session Settings
- Adjustable opening range duration (15-240 minutes)
- Flexible reset periods (Daily, Weekly, Monthly, or Never)
- Custom session start times to match specific market opens or pre-market periods
Advanced Signal Filtering
- Multi-factor confirmation system requiring strong candle bodies, proper wick ratios, and minimum breakout percentages
- Smart cooldown periods preventing clustered signals
- Retracement detection that resets signals after meaningful pullbacks
Quality Control Mechanisms
- Volume threshold filter for stronger conviction entries
- RSI-based filters to avoid overbought/oversold conditions
- Trend alignment validation using EMA and directional analysis
- Consecutive candle confirmation for higher reliability
Visual Clarity
- Clear high/low boundary visualization
- Comprehensive status panel showing current levels, trend status, and filter conditions
- Clean, non-repainting signal triangles at breakout points
Trading Applications
Stocks & ETFs
Perfect for capturing morning momentum after market open, especially effective on US equities where the first 30-60 minutes often set the tone for the day. Excellent for gap fills, trend continuations, and reversal confirmations.
Forex & Futures
Ideal for session-based strategies around London/New York opens, capturing institutional order flow as major players enter the market. Can be configured for H4/H1 longer-term breakouts in 24-hour markets.
Cryptocurrency
Powerful for identifying key breakout levels in volatile crypto markets, with adjustable parameters to filter out noise while catching significant moves. Especially effective during high-volume periods following consolidation.
Strategic Implementation
The indicator excels when used as part of a complete trading system. Consider these approaches:
1. Pure Momentum Strategy: Enter on signal, exit at fixed R:R or end of session
2. Trend Continuation: Only take signals in the direction of the higher timeframe trend
3. Support/Resistance Validation: Combine with key S/R levels for higher probability entries
4. Volume Profile Confirmation: Use in conjunction with volume profile to verify breakout significance
Optimization Tips
- Adjust Opening Range Duration based on market volatility (shorter for choppy markets, longer for trending)
- Increase filter requirements during uncertain market conditions
- Loosen filters during strong trending environments
- Use longer durations (120+ minutes) for swing trading setups
- Consider Weekly/Monthly reset periods for positional trading approaches
Performance Notes
The Advanced ORB Indicator is designed to produce fewer, higher-quality signals rather than frequent low-conviction entries. The multiple confirmation requirements mean you'll catch fewer false breakouts at the expense of occasionally later entries.
For best results, combine with proper risk management, position sizing, and an understanding of the broader market context.
*This indicator works on all timeframes but performs optimally on 1-minute to 15-minute charts for intraday trading and 1-hour to 4-hour charts for swing trading opportunities.*
// @version=5
indicator("Advanced ORB Indicator", overlay=true)
// ===================================================================
// SIGNAL REQUIREMENTS DOCUMENTATION
// ===================================================================
//
// BULL SIGNAL REQUIREMENTS:
// - ORB period must be completed (not in the opening range duration anymore)
// - Price must close above the ORB high (if waitForClose is enabled)
// - Candle must have a strong body (body to range ratio >= minBodyToRangeRatio)
// - Valid upper wick (upper wick to body ratio <= wickThreshold)
// - Bullish candle (close > open)
// - Consecutive candle confirmation (if enabled, requires multiple candles meeting criteria)
// - Volume filter (if enabled, volume > average volume * threshold)
// - RSI filter (if enabled, RSI must not be overbought)
// - EMA filter (if enabled, price must be above short EMA)
// - Trend filter (if enabled, must be in an uptrend)
// - Cooldown period satisfied (minimum bars between signals)
// - Not already signaled a bull breakout for this ORB (unless reset by retracement)
//
// BEAR SIGNAL REQUIREMENTS:
// - ORB period must be completed (not in the opening range duration anymore)
// - Price must close below the ORB low (if waitForClose is enabled)
// - Candle must have a strong body (body to range ratio >= minBodyToRangeRatio)
// - Valid lower wick (lower wick to body ratio <= wickThreshold)
// - Bearish candle (close < open)
// - Consecutive candle confirmation (if enabled, requires multiple candles meeting criteria)
// - Volume filter (if enabled, volume > average volume * threshold)
// - RSI filter (if enabled, RSI must not be oversold)
// - EMA filter (if enabled, price must be below short EMA)
// - Trend filter (if enabled, must be in a downtrend)
// - Cooldown period satisfied (minimum bars between signals)
// - Not already signaled a bear breakout for this ORB (unless reset by retracement)
//
// SIGNAL RESET CONDITIONS (for both bull and bear):
// - A significant price retracement happens (determined by retracePercent)
// - Cooldown period expires (minimum bars between signals)
// ===================================================================
// ===================================================================
// SETTINGS GUIDE - DETAILED EXPLANATION
// ===================================================================
//
// MARKET SETTINGS
// ---------------------------------------------------------------------
// Market Type: Select your market or use auto-detection
// - US Stocks: NYSE, NASDAQ, etc. (9:30 AM default open)
// - Forex: Currency pairs (uses midnight or London open)
// - Crypto: Digital currencies (uses midnight UTC)
// - EU Stocks: European exchanges (9:00 AM default)
// - Asia Stocks: Asian exchanges (9:00 AM default)
// - Custom: Manually set your preferred session time
//
// Auto-Detect Market Type: Automatically identifies the market from symbol
// - Enable for convenience when switching between different markets
// - Disable to manually set your preferred market type
//
// Use Market Default Timing: Applies optimal session start times for selected market
// - Enable to use proven default timings for the market
// - Disable to set custom session start times
//
// Time Zone: Sets the reference time zone for session calculations
// - Exchange: Uses the exchange's native time zone (recommended)
// - UTC: Uses Coordinated Universal Time
// - Local: Uses your local computer's time zone
//
// TIME SETTINGS
// ---------------------------------------------------------------------
// Session Start Hour/Minute: Sets when the opening range begins
// - Only active when "Use Market Default Timing" is disabled
// - US Stocks typically use 9:30 AM
// - For pre-market analysis, try 4:00 AM (US) or 8:00 AM (EU)
//
// Opening Range Duration: How long to measure the initial range (minutes)
// - 30-60 mins: Standard for daily ORB strategies
// - 15 mins: More responsive, good for volatile markets
// - 120 mins: More stable, fewer false signals
//
// Reset Period: When to calculate a new opening range
// - Daily: Most common, resets each trading day
// - Weekly: Weekly opening range breakout strategy
// - Monthly: Long-term support/resistance levels
// - Never: Continuous tracking without resetting
//
// SIGNAL QUALITY SETTINGS
// ---------------------------------------------------------------------
// Minimum Bars Between Signals: Prevents clustering of multiple signals
// - Higher values (8-10): Fewer signals, better quality
// - Lower values (3-5): More signals, requires more filtering
//
// Required Retracement % Before New Signal: How far price must pull back
// - Higher values (50-60%): Only signals after significant pullbacks
// - Lower values (20-30%): More signals, may include false breakouts
//
// Minimum Breakout % Required: Strength needed for valid breakout
// - Higher values (0.5-1.0%): Stronger confirmation, fewer false breakouts
// - Lower values (0.1-0.3%): More sensitive, good for low-volatility
//
// Minimum Body to Range Ratio %: Requires strong candles for signals
// - Higher values (70-80%): Only strong momentum candles trigger signals
// - Lower values (40-50%): More signals, includes weaker breakouts
//
// BREAKOUT SETTINGS
// ---------------------------------------------------------------------
// Max Wick to Body Ratio: Controls acceptable candle shape
// - Lower values (0.2-0.3): Only clean breakout candles
// - Higher values (0.5-0.6): More signals, includes wicks
//
// Use Close Price: Uses close instead of High/Low for breakouts
// - Enable for more reliable but delayed confirmation
// - Disable for earlier signals using High/Low prices
//
// Wait for Candle Close: Only signals after candle completes
// - Enable to avoid false breakouts (recommended)
// - Disable for earlier entry but higher risk
//
// FILTER SETTINGS
// ---------------------------------------------------------------------
// Filter Signals Based on Trend: Aligns signals with the overall trend
// - Enable to filter out counter-trend signals (recommended)
// - Disable for range-bound markets or counter-trend strategies
//
// Trend Detection Period: Lookback period for trend calculation
// - Longer periods (50-100): Identifies major trends
// - Shorter periods (20-30): More responsive to recent price action
//
// Trend Strength Threshold: How strong trend must be
// - Higher values (0.7-0.8): Only strong trends generate signals
// - Lower values (0.5-0.6): More signals in choppy markets
//
// Use Volume Filter: Requires above-average volume for signals
// - Enable for stocks and futures (recommended)
// - May disable for some forex pairs with unreliable volume data
//
// Volume Threshold: How much above average volume is required
// - Higher values (2.0-3.0x): Only significant volume spikes
// - Lower values (1.2-1.5x): More signals, less volume confirmation
//
// Use RSI Filter: Prevents signals in overbought/oversold conditions
// - Enable to avoid exhausted moves
// - Disable for strong trend following
//
// Use EMA Alignment Filter: Ensures price is in the right direction
// - Enable for trend confirmation (recommended)
// - Disable for early reversal signals
//
// Require Consecutive Candle Confirmation: Needs multiple confirming candles
// - Enable for higher quality signals
// - Disable for faster but riskier entries
//
// DISPLAY SETTINGS
// ---------------------------------------------------------------------
// Show Label with Values: Displays current ORB levels and status
// Show Range Boundaries: Displays high/low lines on chart
// High/Low Boundary Color: Customize appearance
//
// ===================================================================
// RECOMMENDED SETTINGS BY MARKET TYPE
// ===================================================================
//
// US STOCKS - STANDARD
// ---------------------------------------------------------------------
// - Market Type: US Stocks
// - Opening Range Duration: 30 minutes
// - Reset Period: Daily
// - Wait for Candle Close: Enabled
// - Use Volume Filter: Enabled (Volume Threshold: 1.5-2.0x)
// - Use Trend Filter: Enabled
// - Minimum Breakout %: 0.3-0.5%
//
// US STOCKS - EARNINGS/HIGH VOLATILITY
// ---------------------------------------------------------------------
// - Opening Range Duration: 60 minutes (more stable)
// - Minimum Breakout %: 0.7-1.0% (stronger moves required)
// - Minimum Bars Between Signals: 8-10 (avoid whipsaws)
// - Required Retracement %: 40-50% (deeper pullbacks)
// - Volume Threshold: 2.5-3.0x (higher volume confirmation)
//
// CRYPTO
// ---------------------------------------------------------------------
// - Market Type: Crypto
// - Opening Range Duration: 120 minutes (crypto needs longer)
// - Reset Period: Daily
// - Minimum Breakout %: 1.0-1.5% (higher volatility needs stronger breakouts)
// - Volume Threshold: 2.0-2.5x
// - Consider disabling RSI Filter (trending crypto often stays overbought/oversold)
//
// FOREX - MAJOR PAIRS
// ---------------------------------------------------------------------
// - Market Type: Forex
// - Session Start: Consider 8:00 AM (London open) or 5:00 PM (Asian open)
// - Opening Range Duration: 60-120 minutes
// - Min Body to Range Ratio: 50-60% (forex can have smaller bodies)
// - Consider disabling Volume Filter (unreliable on some platforms)
// - Trend Strength Threshold: 0.6-0.7 (forex tends to trend well)
//
// EU STOCKS
// ---------------------------------------------------------------------
// - Market Type: EU Stocks
// - Opening Range Duration: 60 minutes
// - Reset Period: Daily
// - Use EMA Alignment: Enabled
// - Use Volume Filter: Enabled
//
// SMALL CAP/VOLATILE STOCKS
// ---------------------------------------------------------------------
// - Opening Range Duration: 15-30 minutes (captures early moves)
// - Minimum Breakout %: 1.0-2.0% (needs stronger breakouts)
// - Volume Threshold: 3.0x (needs significant volume)
// - Max Wick to Body Ratio: 0.3 (cleaner breakouts)
// - Use Consecutive Candle Confirmation: Enabled (2-3 candles)
//
// LOW VOLATILITY ENVIRONMENT
// ---------------------------------------------------------------------
// - Opening Range Duration: 30-60 minutes
// - Minimum Breakout %: 0.2-0.3% (lower threshold for tight ranges)
// - Required Retracement %: 20-30% (smaller pullbacks)
// - Consider disabling Consecutive Candle Confirmation
//
// HIGH VOLATILITY ENVIRONMENT
// ---------------------------------------------------------------------
// - Opening Range Duration: 60-120 minutes (more stable)
// - Minimum Breakout %: 0.8-1.5% (stronger confirmation)
// - Required Retracement %: 50-60% (deeper pullbacks)
// - Minimum Bars Between Signals: 8-10 (avoid choppy signals)
// - Use Consecutive Candle Confirmation: Enabled (2-3 candles)
// ===================================================================
Original Gann Swing Chart Rules [AlgoFuego]🔵 Original Gann Swing Chart Rules
An advanced indicator built on W.D. Gann’s original rules, enhanced with innovative mechanical trend-following methods.
🔹 Description
This indicator functions by balancing short-term adaptability with long-term trend analysis.
The indicator incorporates Gann’s principles alongside mechanical trend-following techniques to offer a structured method for analyzing trends and detecting potential market reversals.
Golden Rule: Non-trend bars are excluded from analysis, and each new bar is compared with the previous trend bar, it highlights significant swing points with greater clarity.
🔸 The core concept behind the golden rule on which this indicator is built.
The person watching the tide coming, wanting to pinpoint the exact spot that signals the high tide, places a stick in the sand at the points where the incoming waves reach until the stick reaches a position where the waves no longer rise, and eventually recedes enough to show that the tide has shifted.
This method is effective for monitoring and identifying tides and floods in the stock market.
🔸Rule 1: The trend bar is everything.
→It is a bar that forms a new high, low, or both.
🔸Rule 2: The professional traders track new highs and lows.
🔸Rule 3: The hidden bar is nothing.
→It is a bar that does not form a new high, low, or both.
🔸Rule 4: The sea has a wavy nature, and the market as well.
🔸Rule 5: The slope is the immediate direction of the swing.
Downward slope
→The downslope is the descending slope of a swing, shows a decline, reflecting a bearish price trend.
Upward slope
→The upslope is the ascending slope of a swing, shows an incline, reflecting a bullish price trend.
🔸Rule 6: The start and end of the movement are the swing points.
→The lowest or highest price of the last bar in the direction of the slope represents the swing point after the slopes direction changes.
Valley
→It is the lowest price of the last bar in a downslope before the market turns to a upslope.
End=> Downward slope and Start=> Upward slope
Peak
→It is the highest price of the last bar in a upslope before the market turns to an downslope.
End=> Upward slope and Start=> Downward slope
🔸Rule 7: The Golden Rule: Ignore all no-trend bars and compare the new bar with the previous trend bar.
→Applying the golden rule in upward slope
→Applying the golden rule in downward slope
🔸 Related content: Personal words of W.D Gann from the book Wall Street Stock Selector.
→"This was only one month's reaction the same as March 1925. The market held in a dull narrow range for about 2 months while accumulation was taking place and in June the main trend turned up again."
→The beginning of the main trend and the formation of the Valley.
→The beginning of the main trend and the formation of the Peak.
🔸 Rule 8: The Closing Price of the Bar to Understand Movement Direction.
Sequence is important
→ Downward bar
→ Upward bar
🔸 Outside Bar Rules
→Explanation of rules and calculations.
🔸 How does a trend start?
Upward trend
Trend change from Downward to Upward.
Prices must take out the nearest 'Peak' and the Trend was previously Downward.
A breakout above the previous peak signals a bullish reversal.
→ Model 1 - Dropping Valley Reversal
The market forms a dropping valley, followed by a breakout above the previous peak.
→ Model 2 - Equal Valley Reversal
The market forms an equal valley, followed by a breakout above the previous peak.
→ Model 3 - Rising Valley Reversal
The market forms a rising valley, followed by a breakout above the previous peak.
Downward trend
Trend change from Upward to Downward.
Prices must take out the nearest ‘Valley' and the Trend was previously Upward.
A breakdown below the previous valley signals a bearish reversal.
→ Model 1 - Rising Peak Reversal
The market forms a rising peak, followed by a breakdown below the previous valley.
→ Model 2 - Equal Peak Reversal
The market forms an equal peak, followed by a breakdown below the previous valley.
→ Model 3 - Dropping Peak Reversal
The market forms a dropping peak, followed by a breakdown below the previous valley.
🔸 The fractal nature of markets
Rising wave
→ The rising wave is the entire bull market between turning points
High point : When the Main trend turns from upward to downward, the peak of the primary trend is formed.
Dropping wave
→ The Dropping wave is the entire bear market between turning points.
Low point : When the Main trend turns from downward to upward, the primary trend valley is formed.
Fractal nature application.
Everything in one picture.
🔹 Features
Strict adherence to the rules: Follows the Original Gann Swing Chart Rules to detect swing points.
Fractal analysis: Uses trend bars and fractal analysis to identify swing points.
Robust functionality: Engineered to handle complex market conditions with advanced logic.
Custom alerts: Alerts for peak/valley completion, main and primary trend reversals & continuations.
Golden rule application: Filters out non-trend bars by comparing only with the last trend bar.
Reversal & trend detection: Applies eight outside bar rules to detect trend reversals and continuations.
Dynamic customization: Fully customizable settings.
🔹 Settings overview
Fine-tune the indicator to match your unique trading strategy by adjusting trend settings, customizing alerts, and modifying visualization options.
1. Main trend settings
Hide/Show Main trend options: Instantly hide all main trend options (alerts remain separate).
Main trendline display & alerts: Toggle trendline visibility and set alerts for peaks and valleys.
Trendline customization: Adjust styles, colors, and slopes for upward/downward trends.
Peaks & Valleys markers: Show/hide points and customize their color and size.
Opposite Main trend turning points: Enable alerts and modify style, width, color, and offset.
Breakout/Breakdown points: Set alerts and customize their appearance.
2. Primary trend settings
Hide/Show primary trend options: Instantly hide all primary trend options (alerts remain separate).
Primary trendline display & alerts: Toggle trendline visibility and set alerts for peaks and valleys.
Trendline customization: Adjust styles, colors, and slopes for upward/downward trends.
Peaks & Valleys markers: Show/hide points and customize their color and size.
Opposite primary trend turning points: Enable alerts and modify style, width, color, and offset.
Breakout/Breakdown points: Set alerts and customize their appearance.
3. Additional options
Tooltips display: Control tooltip visibility for labels and languages.
Candle/Bar coloring: Customize candle and bar colors based on algorithm-selected trends.
🔸 Additional features
🔹Custom reading of bars.
The arrow represents the direction of the slope, the dot is the type of trend, and the line is the closing price.
🔹 Advanced Moving Average Activator
The Advanced Moving Average Activator, this setting calculates the average closing prices of trend bars only, which are the only bars considered by Gann.
The advantage of this method is that it helps avoid hidden bars that are not accounted for, making the difference more evident in a ranging market. The values are updated only when new highs or lows occur.
Additionally, you can set alerts when the price closes above or below the moving average.
🔹 Bar Counter
After a trend change, you can see exactly when the shift occurred and customize the type of trend you want to track.
For example, by conducting your own research on the assets you trade, based on historical data, you might discover valuable insights, such as the primary trend possibly lasting longer than 20 bars!
You can use these insights to refine your trading strategy and make more data-driven decisions.
🔹 How to use
Step 1: Configure the settings and choose your trading approach
Adjust the indicator settings to match your trading style and market conditions.
Effectively using the indicator starts with selecting your preferred trading style.
You can trade in alignment with the primary trend, capitalize on market reversals, or take advantage of breakouts.
Trading with the primary trend: Best for traders who prefer longer-term positions with higher stability.
Trading reversals: Ideal for those looking to enter at potential turning points but requires additional confirmation.
Trading breakouts: Suitable for traders targeting strong price movements after key level breakouts.
Adapting to market volatility: Monitor changing volatility and adjust your strategy accordingly for optimal results.
Step 2: Analyze the chart
Apply the indicator to your TradingView chart and interpret swing signals for informed decisions.
Carefully study the chart patterns to detect subtle signals.
Check if similar signals worked well in past market conditions.
Use multi-timeframe analysis for a broader perspective.
Step 3: Trade with the primary trend
Utilize trend direction to align trades with prevailing market movements.
Always trade in the direction of the primary trend.
Confirm the trend direction using multiple indicators or by relying on the primary trend as confirmation!.
Avoid trading against strong market momentum.
Step 4: Identify entry signals
Use indicator signals to identify ideal trade entry points.
Look for confirmation before entering a trade.
Wait for clear signals to avoid false entries.
Practice on a demo account to build confidence in your entry strategy.
Step 5: Apply risk management
Define stop-loss and take-profit levels to protect your capital effectively.
Set stop-loss orders at strategic levels to limit potential losses.
Risk only a small percentage of your capital per trade.
Adjust risk levels based on your overall portfolio performance.
Step 6: Confirm with trend analysis
Validate trends using additional indicators for a higher probability of success.
Use complementary tools to confirm trend direction.
Monitor trend changes to adjust your strategy promptly.
Keep an eye on volume indicators for added confirmation.
Step 7: Execute the trade
Enter trades based on confirmed signals and predefined strategy rules.
Ensure all your criteria are met before executing a trade.
Stay disciplined and stick to your strategy.
Review market conditions right before execution.
Step 8: Monitor the trade
Track trade performance and make adjustments as necessary.
Keep an eye on market conditions throughout the trade.
Be ready to adjust your strategy if unexpected events occur.
Use trailing stops to secure profits while allowing for gains.
Step 9: Implement exit strategy
Close trades strategically based on your pre-established exit plan.
Plan your exit strategy in advance and adhere to it.
Consider partial exits to secure profits along the way.
Avoid emotional decisions when closing trades.
Step 10: Review performance
Analyze past trades to continuously refine and improve your strategy.
Regularly review and document your trades for insights.
Identify patterns in both your successes and mistakes.
Update your strategy based on comprehensive performance reviews.
🔹 Disclosure
While this script is useful and provides insight into market tops, bottoms, and trend trading, it's critical to understand that past performance is not necessarily indicative of future results and there are many more factors that go into being a profitable trader.
Session Start & Day BackgroundThis indicator visually enhances your TradingView charts by highlighting the start of each new trading day and coloring the background based on the day of the week.
The first candle of each new trading day is marked in gray for better session separation.
The background color changes based on the current day of the week, making it easier to recognize market patterns and trends at a glance.
Works across all markets including Forex, Stocks, and Crypto.
Designed to improve chart readability and market structure visualization.
Ideal for traders who want a clearer overview of daily sessions and better differentiation between trading days! 🚀
Ichimoku BoxIntroducing Ichimoku Box Indicator:
Key Features:
Customizable Box Periods: Adjustable box periods with default settings of 9, 26, and 52.
Shifted Span A and Span B Points: Easily adjustable shifts and colors.
Additional Box Option: Capability to add an extra box for more detailed analysis.
High and Low Markers: Identifies the highest and lowest candle within each box with distinct markers.
Candle Countdown Timer: Displays the remaining candles before a box loses its high or low.
Drag-and-Drop Functionality: Move boxes to any position on the chart with a vertical line.
Automatic Box Drawing: When the indicator is first applied, a vertical line appears on the mouse cursor, and clicking on any point automatically draws the boxes.
How It Works:
The indicator allows users to visualize Ichimoku periods as boxes, highlighting key price levels and shifts in market structure. It simplifies the analysis process by providing visual cues and customizable settings for enhanced flexibility.
Clean OHLC Lines | BaksPlots clean, non-repainting OHLC lines from higher timeframes onto your chart. Ideal for tracking key price levels (open, high, low, close) with precision and minimal clutter.
Core Functionality
Clean OHLC Lines = Historical Levels + Non-Repainting Logic
• Uses lookahead=on to anchor historical lines, ensuring no repainting.
• Displays OHLC lines for customizable timeframes (15min to Monthly).
• Optional candlestick boxes for visual context.
Key Features
• Multi-Timeframe OHLC:
Plot lines from 15min, 30min, 1H, 4H, Daily, Weekly, or Monthly timeframes.
• Non-Repainting Logic:
Historical lines remain static and never recalculate.
• Customizable Styles:
Adjust colors, line widths (1px-4px), and transparency for high/low/open/close lines.
• Candle Display:
Toggle candlestick boxes with bull/bear colors and adjustable borders.
• Past Lines Limit:
Control how many historical lines are displayed (1-500 bars).
User Inputs
• Timeframe:
Select the OHLC timeframe (e.g., "D" for daily).
• # Past Lines:
Limit historical lines to avoid overcrowding (default: 10).
• H/L Mode:
Draw high/low lines from the current or previous period.
• O/C Mode:
Anchor open/close lines to today’s open or yesterday’s close.
• Line Styles:
Customize colors, transparency, and styles (solid/dotted/dashed).
• Candle Display:
Toggle boxes/wicks and adjust bull/bear colors.
Important Notes
⚠️ Alignment:
• Monthly/weekly timeframes use fixed approximations (30d/7d).
• For accuracy, ensure your chart’s timeframe ≤ the selected OHLC timeframe (e.g., use 1H chart for daily lines).
⚠️ Performance:
• Reduce # Past Lines on low-end devices for smoother performance.
Risk Disclaimer
Trading involves risk. OHLC lines reflect historical price levels and do not predict future behavior. Use with other tools and risk management.
Open-Source Notice
This script is open-source under the Mozilla Public License 2.0. Modify or improve it freely, but republishing must follow TradingView’s House Rules.
📈 Happy trading!
Diamond PatternDiamond Pattern Indicator
This indicator is designed to detect the Diamond Pattern, a technical formation that often signals potential trend reversals. The diamond pattern can lead to strong price movements, making it a valuable tool for traders.
Features:
✅ Automatic Detection – Identifies diamond patterns on the chart.
✅ Trend Reversal Signals – Highlights potential price direction changes.
✅ Multi-Timeframe Compatibility – Works across all timeframes.
✅ User-Friendly – Simple to use with no complex settings required.
How to Use:
1. Add the indicator to your chart.
2. Monitor for the formation of a Diamond Pattern.
3. Use the breakout direction to guide your trading decisions.
TheRookAlgoPROThe Rook Algo PRO is an automated strategy that uses ICT dealing ranges to get in sync with potential market trends. It detects the market sentiment and then place a sell or a buy trade in premium/discount or in breakouts with the desired risk management.
Why is useful?
This algorithm is designed to help traders to quickly identify the current state of the market and easily back test their strategy over longs periods of time and different markets its ideal for traders that want to profit on potential expansions and want to avoid consolidations this algo will tell you when the expansion is likely to begin and when is just consolidating and failing moves to avoid trading.
How it works and how it does it?
The Algo detects the current and previous market structure to identify current ranges and ICT dealing ranges that are created when the market takes buyside liquidity and sellside liquidity, it will tell if the market is in a consolidation, expansion, retracement or in a potential turtle soup environment, it will tell if the range is small or big compared to the previous one. Is important to use it in a trending markets because when is ranging the signals lose effectiveness.
This algo is similar to the previously released the Rook algo with the additional features that is an automated strategy that can take trades using filters with the desired risk reward and different entry types and trade management options.
Also this version plots FVGS(fair value gaps) during expansions, and detects consolidations with a box and the mid point or average. Some bars colors are available to help in the identification of the market state. It has the option to show colors of the dealing ranges first detected state.
How to use it?
Start selecting the desired type of entry you want to trade, you can choose to take Discount longs, premium sells, breakouts longs and sells, this first four options are the selected by default. You can enable riskier options like trades without confirmation in premium and discount or turtle soup of the current or previous dealing range. This last ones are ideal for traders looking to enter on a counter trend but has to be used with caution with a higher timeframe reference.
In the picture below we can see a premium sell signal configuration followed by a discount buy signal It display the stop break even level and take profit.
This next image show how the riskier entries work. Because we are not waiting for a confirmation and entering on a counter trend is normal to experience some stop losses because the stop is very tight. Should only be used with a clear Higher timeframe reference as support of the trade idea. This algo has the option to enable standard deviations from the normal stop point to prevent liquidity sweeps. The purple or blue arrows indicate when we are in a potential turtle soup environment.
The algo have a feature called auto-trade enable by default that allow for a reversal of the current trade in case it meets the criteria. And also can take all possible buys or all possible sells that are riskier entries if you just want to see the market sentiment. This is useful when the market is very volatile but is moving not just ranging.
Then we configure the desired trade filters. We have the options to trade only when dealing ranges are in sync for a more secure trend, or we can disable it to take riskier trades like turtle soup trades. We can chose the minimum risk reward to take the trade and the target extension from the current range and the exit type can be when we hit the level or in a retracement that is the default setting. These setting are the most important that determine profitability of the strategy, they has be adjusted depending on the timeframe and market we are trading.
The stop and target levels can also be configured with standard deviations from the current range that way can be adapted to the market volatility.
The Algo allow the user to chose if it want to place break even, or trail the stop. In the picture below we can see it in action. This can work when the trend is very strong if not can lead to multiple reentries or loses.
The last option we can configure is the time where the trades are going to be taken, if we trade usually in the morning then we can just add the morning time by default is set to the morning 730am to 1330pm if you want to trade other times you should change this. Or if we want to enter on the ICT macro times can also be added in a filter. Trade taken with the macro times only enable is visible in the picture below.
Strategy Results
The results are obtained using 2000usd in the MNQ! In the 15minutes timeframe 1 contract per trade. Commission are set to 2USD, slippage to 1tick, the backtesting range is from May 2 2024 to March 2025 for a total of 119 trades, this Strategy default settings are designed to take trades on the daily expansions, trail stop and Break even is activated the exit on profit is on a retracement, and for loses when the stop is hit. The auto-trade option is enable to allow to detect quickly market changes. The strategy give realistic results, makes around 200% of the account in around a year. 1.4 profit factor with around 37% profitable trades. These results can be further improve and adapted to the specific style of trading using the filters.
Remember entries constitute only a small component of a complete winning strategy. Other factors like risk management, position-sizing, trading frequency, trading fees, and many others must also be properly managed to achieve profitability. Past performance doesn’t guarantee future results.
Summary of features
-Easily Identify the current dealing range and market state to avoid consolidations
-Recognize expansions with FVGs and consolidation with shaded boxes
-Recognize turtle soups scenarios to avoid fake out breakout
-Configurable automated trades in premium/discount or breakouts
-Auto-trade option that allow for reversal of the current trade when is no longer valid
-Time filter to allow only entries around the times you trade or on the macro times.
-Risk Reward filter to take the automated trades with visible stop and take profit levels
-Customizable trade management take profit, stop, breakeven level with standard deviations
-Trail stop option to secure profit when price move in your favor
-Option to exit on a close, retracement or reversal after hitting the take profit level
-Option to exit on a close or reversal after hitting stop loss
-Dashboard with instant statistics about the strategy current settings and market sentiment
Doji DetectorThis script is designed to detect Doji candlesticks, which are characterized by a small body compared to the overall candle range. The script identifies a Doji when:
✔ The body size is smaller than 10% of the total candle range, OR
✔ The body size is less than 3 pips.
How It Works:
The script calculates the body size of each candle (absolute difference between the open and close price).
It then compares the body size with the total candle range (high - low).
If the body size is smaller than 10% of the candle range or less than 3 pips, the script marks it as a Doji.
How to Use It:
Apply the script to your TradingView chart.
It will highlight Doji candles automatically.
Suitable for traders using price action analysis to identify potential market reversals or indecision zones.
🚀 Best suited for: Forex, Stocks, and Crypto markets.
🔔 Optional: You can modify the conditions to fit your trading strategy.
Sweep Engulf CHoCH📖 Indicator Overview
The Sweep Engulf CHoCH indicator is designed to detect the Sweep + Engulf + CHoCH (Change of Character) pattern on price charts. This indicator helps traders identify bullish and bearish entry opportunities based on the last three candles forming this pattern.
📊 How the Indicator Works
The indicator analyzes specific conditions in the last three candles:
🔹 Bullish Entry (Buy Signal)
✔️ Candle 1 must be bearish (close < open )
✔️ Candle 2 must sweep the low of candle 1 (low < low )
✔️ Candle 2 must also engulf candle 1 (close > close )
✔️ Candle 3 must break structure (CHoCH) by closing above the open of candle 1 (close > open )
🔻 Bearish Entry (Sell Signal)
✔️ Candle 1 must be bullish (close > open )
✔️ Candle 2 must sweep the high of candle 1 (high > high )
✔️ Candle 2 must also engulf candle 1 (close < open )
✔️ Candle 3 must break structure (CHoCH) by closing below the open of candle 1 (close < open )
Sweep Engulf 2 Candle🔍 Overview:
This script identifies Bullish Engulfing and Bearish Engulfing candlestick patterns on the chart. These formations are widely used in technical analysis to spot potential reversals in price action. The indicator helps traders quickly identify these patterns by marking them directly on the chart with small arrows.
📌 Features:
✅ Bullish Engulfing & Bearish Engulfing Detection
✅ Customizable Display Options (Enable/Disable Bullish or Bearish signals)
✅ Real-Time Alerts (Receive notifications when a pattern is formed)
✅ Optimized Marker Size (Smaller icons for better chart visibility)
📊 How It Works:
1. Bullish Engulfing Condition:
The second candle's low is lower than the first candle's low.
The second candle's close is higher than the first candle's open (if the first candle is bearish) OR higher than the first candle's close (if the first candle is bullish).
2. Bearish Engulfing Condition:
The second candle's high is higher than the first candle's high.
The second candle's close is lower than the first candle's close (if the first candle is bearish) OR lower than the first candle's open (if the first candle is bullish).
⚙️ How to Use:
Add the script to your TradingView chart.
Adjust settings to enable/disable Bullish or Bearish Engulfing patterns.
Enable alerts to receive real-time notifications when a pattern is detected.
Use this indicator to support your technical analysis and trade decisions.
📌 Notes:
This indicator is best used in combination with other technical analysis tools like support & resistance levels, trendlines, or volume analysis.
It works on all timeframes and asset