Frequent Swing Trading Supertrend Strategy (Daily)Made By Riddhiman Bandyopadhyay
How to Use-
Set Chart to Daily: Ensure your TradingView chart is set to a daily timeframe (D).
Add Strategy: Copy the Pine Script code into TradingView’s Pine Editor, compile, and add it to your NIFTY chart.
Logic Behind the Backtest : Use TradingView’s Strategy Tester to evaluate performance over the past few months (e.g., March to June 2025). Check if the buy/sell signals occur more frequently and capture shorter swings.
Fine-Tune: If signals are too frequent (leading to whipsaws), increase atr Period to 12 or factor to 3.5. If still not frequent enough, reduce maPeriod to 8 or lower the RSI thresholds to 65/35.
Why This Should Work Better
Increased Sensitivity: The Supertrend (ATR 10, factor 3.0) and 10-period SMA make the strategy more responsive to daily price movements, generating more signals.
Fewer Restrictions: Removing the 50-period SMA filter and loosening entry conditions allow trades in a wider range of market conditions.
Quicker Exits: The 3% profit target encourages faster exits, freeing up capital for new trades, thus increasing frequency.
Balanced Filtering: The RSI (70/30) still filters out extreme conditions, but it’s less restrictive, allowing more trades.
Corak carta
Adjustable Vertical LinesThe script provides an indicator which will plot lines - 15 min, 30 min and 60 min. You can customize the time intervals and go to as low as one minute, but I found the 15-minute and 30-minute intervals works best for me when trying to find setups, and the lower time-frame intervals, is just pointless to use if you're not scalping on the seconds timeframe.
You can customize inputs for the line style. Line thickness, colour, etc.
I've seen this work using the OBR theory and applying it to the one-minute candle then looking for other confluences like order blocks, or breakers, FVGs, BOS/CHoC for further confirmation for scalping. It's important to backtest though and see for yourself.
Thanks for the boost.
Alpha Pulse Intraday AI - Full Risk Mgmtpublic script for intraday trading idk what to say just let me publish this because i have an aniother tw account in my phone for getting signal
30-Minute Vertical Lines (Midnight to 23:30)Indicator plot 30-minute lines. You have the option to change the line style to how you like it. This has helped me with seeing setups easier.
15Min Opening Range & Midline (UTC+2) This TradingView script draws the 15-minute Opening Range of the day based on a user-defined start time and plots the high, low, and midline of this range. It works by capturing the high and low of the first 15 minutes of the session, and then extending them for the rest of the trading day. The midline is calculated as the average of the high and low values.
Key Features:
User-configurable start time: Define the hour and minute for when the opening range should start based on your local time zone.
Line customization: Choose the color and line style (solid, dashed, dotted) for the high, low, and midline.
Easy-to-read visual representation: The high and low lines extend across the chart from the range start, with the midline placed in the center.
Dynamic updates: The indicator resets at the start of each new trading day and updates the opening range lines accordingly.
Perfect for:
Traders looking to monitor the initial market range during the first 15 minutes of trading.
Identifying key support and resistance levels based on early price action.
Providing a midline to assess market bias and potential breakouts.
Notes:
The indicator calculates everything based on the local time zone you define and automatically adjusts to your desired start time.
It will not redraw lines; once drawn, they remain on the chart until the next session.
CNN Statistical Trading System [PhenLabs]📌 DESCRIPTION
An advanced pattern recognition system utilizing Convolutional Neural Network (CNN) principles to identify statistically significant market patterns and generate high-probability trading signals.
CNN Statistical Trading System transforms traditional technical analysis by applying machine learning concepts directly to price action. Through six specialized convolution kernels, it detects momentum shifts, reversal patterns, consolidation phases, and breakout setups simultaneously. The system combines these pattern detections using adaptive weighting based on market volatility and trend strength, creating a sophisticated composite score that provides both directional bias and signal confidence on a normalized -1 to +1 scale.
🚀 CONCEPTS
• Built on Convolutional Neural Network pattern recognition methodology adapted for financial markets
• Six specialized kernels detect distinct price patterns: upward/downward momentum, peak/trough formations, consolidation, and breakout setups
• Activation functions create non-linear responses with tanh-like behavior, mimicking neural network layers
• Adaptive weighting system adjusts pattern importance based on current market regime (volatility < 2% and trend strength)
• Multi-confirmation signals require CNN threshold breach (±0.65), RSI boundaries, and volume confirmation above 120% of 20-period average
🔧 FEATURES
Six-Kernel Pattern Detection:
Simultaneous analysis of upward momentum, downward momentum, peak/resistance, trough/support, consolidation, and breakout patterns using mathematically optimized convolution kernels.
Adaptive Neural Architecture:
Dynamic weight adjustment based on market volatility (ATR/Price) and trend strength (EMA differential), ensuring optimal performance across different market conditions.
Professional Visual Themes:
Four sophisticated color palettes (Professional, Ocean, Sunset, Monochrome) with cohesive design language. Default Monochrome theme provides clean, distraction-free analysis.
Confidence Band System:
Upper and lower confidence zones at 150% of threshold values (±0.975) help identify high-probability signal areas and potential exhaustion zones.
Real-Time Information Panel:
Live display of CNN score, market state with emoji indicators, net momentum, confidence percentage, and RSI confirmation with dynamic color coding based on signal strength.
Individual Feature Analysis:
Optional display of all six kernel outputs with distinct visual styles (step lines, circles, crosses, area fills) for advanced pattern component analysis.
User Guide
• Monitor CNN Score crossing above +0.65 for long signals or below -0.65 for short signals with volume confirmation
• Use confidence bands to identify optimal entry zones - signals within confidence bands carry higher probability
• Background intensity reflects signal strength - darker backgrounds indicate stronger conviction
• Enter long positions when blue circles appear above oscillator with RSI < 75 and volume > 120% average
• Enter short positions when dark circles appear below oscillator with RSI > 25 and volume confirmation
• Information panel provides real-time confidence percentage and momentum direction for position sizing decisions
• Individual feature plots allow granular analysis of specific pattern components for strategy refinement
💡Conclusion
CNN Statistical Trading System represents the evolution of technical analysis, combining institutional-grade pattern recognition with retail accessibility. The six-kernel architecture provides comprehensive market pattern coverage while adaptive weighting ensures relevance across all market conditions. Whether you’re seeking systematic entry signals or advanced pattern confirmation, this indicator delivers mathematically rigorous analysis with intuitive visual presentation.
Customizable WEMA Extension- Plots any EMA (1 for now)
- Plots table showing % of extensino from EMA
- Color coded: Red (Over-extended), Grey, Neutral, Green (underextende)
5M x20 Leverage Strategy - 30% TargetMaximum winning trades on 5m charts. The strategy is not working correctly at the moment but we are trying to improve it.
Sessions [Plug&Play]This indicator automatically highlights the three major FX trading sessions—Asia, London, and New York—on your chart and, at the close of each session, draws right-extended horizontal rays at that session’s high and low. It’s designed to help you visually identify when price is trading within each session’s range and to quickly see where the highest and lowest prices occurred before the next major session begins.
Key Features:
Session Boxes
Draws a semi-transparent box around each session’s timeframe (Asia, London, New York) based on your local UTC offset.
Each box dynamically expands in real time: as new candles form during the session, the box’s top and bottom edges update to match the highest high and lowest low seen so far in that session.
When the session ends, the box remains on your chart, anchored to the exact candles that formed its boundaries.
High/Low Rays
As soon as a session closes (e.g., London session ends at 17:00 UTC+0 by default), two horizontal rays are drawn at that session’s final high and low.
These rays are “pinned” to the exact candles where the high/low occurred, so they stay in place when you scroll or zoom.
Each ray extends indefinitely to the right, providing a clear reference of the key supply/demand levels created during that session.
Session Labels
Optionally places a small “London,” “New York,” or “Asia” label at the top edge of each completed session’s box.
Labels are horizontally centered within the session’s box and use a contrasting, easy-to-read font color.
Customizable Appearance
Show/Hide Each Session: Toggle display of London, New York, and Asia sessions separately.
Time Ranges: By default, London is 08:00–17:00 (UTC), New York is 13:00–22:00 (UTC), and Asia is 00:00–07:00 (UTC). You can override each session’s start/end times using the “Time Range” picker.
Color & Opacity: Assign custom colors to each session. Choose a global “Dark,” “Medium,” or “Light” opacity preset to adjust box fill transparency and border shading.
Show/Hide Labels & Outlines: Turn the text labels and the box borders on or off independently.
UTC Offset Support
If your local broker feed or price data is not in UTC, simply adjust the “UTC Offset (+/–)” input. The indicator will recalculate session start/end times relative to your chosen offset.
How to Use:
Add the Indicator:
Open TradingView’s Pine Editor, paste in this script, and click “Add to Chart.”
By default, you’ll see three translucent boxes appear once each session begins (Asia, London, New York).
Watch in Real Time:
As soon as a session starts, its box will appear anchored to the first candle. The top and bottom of the box expand if new extremes occur.
When the session closes, the final box remains visible and two horizontal rays mark that session’s high and low.
Analyze Key Levels:
Use the high- and low-level rays to gauge session liquidity zones—areas where stop orders, breakouts, or reversals often occur.
For example, if London’s high is significantly above current price, it may act as resistance in the New York session.
Customize to Your Needs:
Toggle specific sessions on/off (e.g., if you only care about London and New York).
Change each session’s color to match your chart theme.
Adjust the “UTC Offset” so sessions align with your local time.
Disable labels or box borders if you prefer a cleaner look.
Inputs Overview:
Show London/New York/Asia Session (bool): Show or hide each session’s box and its high/low rays.
Time Range (session): Defines the start/end of each session in “HHMM–HHMM” (24h) format.
Colour (color): Custom color for each session’s box fill, border, and high/low rays.
Show Session Labels (bool): Toggle the “London,” “New York,” “Asia” text that appears at the top of each completed box.
Show Range Outline (bool): Toggle the box border (if off, only a translucent fill is drawn).
Opacity Preset (Dark/Medium/Light): Controls transparency of box fill and border.
UTC Offset (+/–) (int): Adjusts session times for different time zones (e.g., +1 for UTC+1).
Why It’s Useful:
Quickly Identify Session Activity: Visually distinguish when each major trading session is active, then compare price action across sessions.
Pinpoint High/Low Liquidity Levels: Drawn rays highlight where the market hit its extremes—critical zones for stop orders or breakout entries.
Multi-Timeframe Context: By seeing historical session boxes and rays, you can locate recurring supply/demand areas, overlap zones, or session re-tests.
Fully Automated Workflow: Once added to your chart, the script does all the work of tracking session boundaries and drawing high/low lines—no manual box or line drawing necessary.
Example Use Cases:
London Breakout Traders: See where London’s high/low formed, then wait for price to revisit those levels during the New York session.
Range Breakout Strategies: If price consolidates inside the London box, use the boxed extremes as immediate targets for breakout entries.
Intraday Liquidity Swings: During quieter hours, watch Asia’s high/low to identify potential support/resistance before London’s opening.
Overlap Zones: Compare London’s range with Asia’s range to find areas of confluence—high-probability reversal or continuation zones.
Regression Channel (Interactive)Weighted Interactive Regression Channel (WIRC)
Overview
The Weighted Interactive Regression Channel improves on traditional regression channels by emphasizing key price points through intelligent weighting. Instead of treating all candles equally, WIRC adapts to market dynamics for better trend detection and channel accuracy.
Key Differences from Standard Channels
Weighted vs. Equal: Prioritizes significant events over uniform weighting
Dynamic vs. Static: Adapts in real time to market changes
Accurate vs. Basic: Reduces noise, enhances signal clarity
Customizable vs. Fixed: Full control over weights and visuals
Weighting Methods
Direction Change – Highlights reversal points via local peaks/troughs
Volume-Based – Emphasizes high-volume candles, ideal for breakouts
Price Range – Weights wide-range candles to capture volatility
Time Decay – Prioritizes recent data for current market relevance
Interactive Features
Data Range: Set channel start/end over 1–500 bars
Visuals: Line styles, color coding, fill options, reference lines
Stats: Slope, R², standard deviation, point count, weight method
Technical Implementation
Weighted Regression Formula: Uses weights for slope, intercept, and deviation
Channel Lines: Center = weighted regression; bounds = ± deviation × multiplier
Usage Scenarios
Trend Analysis: Use Direction Change + longer range
Breakouts: Use Volume weighting + fill + boundary watching
Volatility: Apply Price Range weighting + monitor standard deviation
Current Market: Use Time Decay + shorter ranges + stat display
Parameter Tips
Channel Width:
Narrow (1.0–1.5): Responsive
Standard (1.5–2.0): Balanced
Wide (2.0–3.0+): Conservative
Weighting Intensity:
Conservative (1.5–2.0)
Moderate (2.0–3.0)
Aggressive (3.0+)
Advanced Use
Multi-Timeframe: Use different weightings per timeframe
Market Structure: Detect swings, institutional zones
Risk Management: Dynamic S/R levels, volatility-driven sizing
Best Practices
Start with Direction Change
Test different ranges
Monitor stats
Combine with other indicators
Adjust to market context
Recalibrate regularly
Conclusion
WIRC delivers a smarter, more adaptive view of price action than standard regression tools. With real-time customization and multiple weighting options, it’s ideal for traders seeking precision across strategies—trend tracking, breakout confirmation, or volatility insight.
TCP arsh setup candle finder by AidinA powerful tool to identify specific TCP-style bullish and bearish candles with advanced filtering options.
Supports body color filters, relative candle size, and multi-level moving average confirmations (MA1–MA4).
Custom alerts notify you when valid setups appear in recent candles.
Perfect for traders seeking cleaner entries with contextual trend validation.
Supply/Demand Zones + Engulfment-based ExecutionSupply/Demand Zones + Engulfment-Based Execution
Strategy Overview
This strategy combines institutional trading concepts—supply/demand zones and engulfing candle patterns—to generate high-probability long and short trade setups. The system uses aggregated price action to identify potential reversal zones and confirms entries with engulfing candle patterns, ensuring trades are only taken when market structure shows commitment in the direction of the trade.
Core Concepts
• Supply & Demand Zones: These are automatically detected by analyzing aggregated bullish and bearish candle structures over user-defined intervals. Supply zones are formed after bearish continuation patterns; demand zones appear after bullish continuation patterns.
• Engulfing Entries: Once price enters a zone, the strategy waits for a bullish engulfing pattern (in a demand zone) or a bearish engulfing pattern (in a supply zone) before executing a trade. This adds confirmation and reduces false signals.
• Risk Management: Stop-loss is placed at the low (for long trades) or high (for short trades) of the engulfed candle. Take-profit can be calculated using a fixed R-multiple (risk-to-reward ratio) or a user-defined target price.
Key Features
Fully customizable aggregation factor for zone detection
Visual zone boxes, entry/SL/TP boxes, and engulfing pattern labels
Optional removal of mitigated zones for cleaner charting
Configurable trade mode (Long only, Short only, or Both)
Support for trading sessions and date filtering
Alerts for price entering supply or demand zones
How to Use
Select Aggregation Factor: Choose how many candles to group together for identifying key zones (e.g., 4x timeframe).
Enable Zones: Turn on supply and/or demand zones as needed.
Set Execution Parameters:
– Choose R-multiple (e.g., 2:1 risk-reward)
– Or use a fixed take-profit price
Define Trade Time Window:
– Set the date and time ranges to restrict execution
– Use Start Hour and End Hour to limit trades to specific sessions (e.g., London/New York)
Run on Desired Timeframe: Typically used on 15m–4H charts, depending on your strategy and the asset’s volatility.
Ideal For
• Traders using Smart Money Concepts (SMC)
• Those who value high-confluence entries
• Intraday to swing traders looking for structure-based automation
⚠️ Important Notes
• The strategy requires engulfing confirmation within the zone to enter a position.
• This script does not repaint and executes trades on a bar close basis.
• Backtest results may vary based on session filters and aggregation factor.
© Attribution
This strategy was developed by The_Forex_Steward and is licensed under the Mozilla Public License 2.0.
You are free to use, modify, and distribute it under the terms of that license.
IDRISPAULThe script handles support/resistance detection, breakouts, and retest detection based on user-configurable inputs.
Uses pivot points and tracks potential vs confirmed retests.
Includes support for non-repainting logic via selectable options.
Alerts v1This indicator provides a comprehensive approach to analyzing various aspects of the market by synthesizing multiple factors and presenting them in a format that aims to deliver useful insights to the user. Designed to accommodate a broad range of trading strategies and preferences, it dynamically processes inputs and applies a series of calculations whose underlying logic is both robust and adaptable, depending on market conditions. While certain visual cues and signals may be displayed at select intervals, the actual methodology may vary in its implementation across different assets or timeframes, ensuring a flexible application for diverse market environments. The indicator may at times integrate a combination of well-established techniques with proprietary elements to enhance its overall effectiveness, although the precise weighting or significance of each factor may not be readily apparent to the end user. In some cases, the tool might respond to a unique blend of momentum, trend, and volatility measures, producing outputs that could be interpreted in several ways depending on the broader context. Users are encouraged to experiment with its configurable settings, which are designed to adjust in subtle or pronounced ways according to individual preference and evolving market dynamics. Ultimately, the goal of this indicator is to offer a nuanced perspective that balances simplicity with sophistication, providing actionable information while leaving ample room for interpretation and adaptation. As with all analytical tools, results may differ based on how it is employed and what supplementary information is considered alongside its outputs, making it a versatile yet enigmatic component of any technical analysis toolkit.
Auto Fractal [theUltimator5]This indicator is what I call the Auto Fractal. It is a unique algorithm that looks back in time, finds a segment on the chart that closest matches the recent price action, then projects the price forwards. It effectively finds chart patterns and shows you what the price did the last time the same/similar chart pattern was observed.
Creating an algorithm to match abstract curves to other abstract curves and provide a confidence score was the fundamental problem that needed to be solved in order to create this indicator, which curve matches with surprising accuracy.
The most effective method to "curve match" that I found is the Pearson Coefficient, set by a segment length and a lookback period. After the highest coefficient curve is located, the curve then gets scaled and offset to match the current price.
The past segment is drawn over the current price (orange line), giving a visualization of the two curves and how closely they match each other. The indicator then projects the price forwards in time based on the price action of the chart from the historical segment (dashed fuchsia line).
A bounding box also gets drawn around the historical segment to give you a clear visual of where the price is getting pulled from for proper analysis and ease of use.
The Pearson Coefficient % is shown in a table in the top right-hand corner of the chart and can be toggled off if desired. The values range from -100% (perfectly inverse correlation) to +100% (perfectly correlated) with 0 meaning no correlation whatsoever. The closer to +100% the value is, the better the segment match.
As with most/all of my indicators, user interface and simplicity was at the top of my priority list. I designed this to be easily readable and intuitive to both novice and veteran traders, without cluttering the chart.
Note:
This indicator is extremely heavy in terms of memory usage due to nested for loops, and takes several seconds to initially load the chart overlay. If the lookback period is increased too high (>600) then the indicator may time out and fail to load anything. If nothing loads on the chart, try reducing the lookback length and wait up to 10 seconds for lines to appear.
abusuhil bullish breakAbusuhil Bullish Break is a price action-based confirmation tool that identifies a bullish reversal pattern consisting of:
Two consecutive bearish candles followed by
A strong bullish candle that closes above the high of both.
The script includes:
Optional dual MACD filter (current timeframe + higher timeframe)
Configurable stop-loss and multiple take-profit levels
Visual lines for targets and stop
Custom styling for all elements
It’s a clean, logic-driven entry confirmation tool for intraday and swing trading.
⚠️ Open-source and fully customizable.
مؤشر Abusuhil Bullish Break هو أداة تأكيد لانعكاسات الاتجاه الصاعد بناءً على حركة السعر (Price Action)، ويكتشف نموذجًا يتكون من:
شمعتين هابطتين متتاليتين
تتبعهما شمعة صاعدة قوية تغلق فوق أعلى الشمعتين السابقتين
يحتوي المؤشر على:
فلتر MACD مزدوج اختياري (للفريم الحالي وفريم أعلى)
إعدادات مخصصة للوقف والأهداف المتعددة
خطوط مرئية احترافية للأهداف والوقف
تحكم كامل في الألوان والنمط والعرض
مناسب للتداول اللحظي والسوينج.
✅ مفتوح المصدر وقابل للتعديل بالكامل.
NDOG & NWOG Indicatorndicator automatically identifies and displays New Day Opening Gaps (NDOG) and New Week Opening Gaps (NWOG) directly on your chart. It focuses on gaps based on specific session times in the New York (NY) timezone.
Key Features:
NDOG: Identifies the gap between the NY 4:59 PM (daily close) and the NY 6:00 PM (daily open).
NWOG: Identifies the gap between the Friday NY 4:59 PM (weekly close) and the Sunday NY 6:00 PM (weekly open).
Draws customizable lines for the high and low levels of each gap.
Option to show an additional mid-level line for each gap.
Includes options for line colors, styles, and width.
Allows filtering gaps by a minimum size.
Control the maximum number of recent NDOGs and NWOGs displayed.
Optionally shows text labels on the lines and a summary table on the chart.
This tool can help traders visualize potential areas of interest related to these specific opening gaps.
Note: Calculations are based on the "America/New_York" timezone.
Disclaimer: Trading involves risk and may not be suitable for all investors. This indicator is provided for informational and educational purposes only and does not constitute financial advice or a recommendation to trade. Use at your own risk.
Strict Break + Supertrend + Cooldown + AlertsI created this through Chat gpt. I am not a coder but i wanted to make this indicator because i couldnt find what i was looking for.
What this indicator does is print signals of engulfing candles with adjustable body size. I added a lookback period so you can filter out repeated signals. i added the supertrend filter to print only the proper signals of the current trend.
200MA + MACD + 成交量放量警報🚀 200MA + MACD 金叉 + 成交量放量警報指標 🔥
簡介:
全幣種通用合約日內神器!
結合 200MA 均線趨勢判斷、MACD 金叉死叉動能確認,再搭配 成交量放量過濾假突破,有效提升入場勝率!
支援警報通知,自動提醒多空訊號。
👉 喜歡記得按 ❤️ 收藏,開圖表通知 🔔
🚀 200MA + MACD Golden Cross + Trading Volume Alert Indicator 🔥
Introduction:
A universal tool for all currencies for intraday contracts!
Combined with 200MA moving average trend judgment, MACD Golden Cross and Dead Cross kinetic energy confirmation, and combined with trading volume to filter false breakthroughs, it effectively improves the entry success rate!
Supports alarm notifications and automatically reminds long and short signals.
👉 If you like it, remember to press ❤️ to collect it and open the chart notification 🔔
Big_RSI_EMA_FibStrategy Name: Big Candle + RSI + EMA + Fibonacci
This Pine Script strategy combines multiple indicators and price action logic to generate long and short trading signals. It includes:
🔧 Inputs
RSI Period – default: 14 (Relative Strength Index to identify overbought/oversold conditions).
EMA Period – default: 50 (Exponential Moving Average for trend confirmation).
Fibonacci Retracement – default: 0.618 (used to identify pullback zones after a big candle).
Minimum Body Size % – default: 1.5% (the minimum percentage of candle body relative to full range to qualify as a "big candle").
📈 Indicators Used
RSI: Filters overbought/oversold conditions.
EMA (50): Confirms trend direction.
Big Candle Detection: Candles with body size greater than a specified percentage of their full range.
Fibonacci Levels: A retracement level (default 61.8%) is calculated from the body of the big candle.
✅ Long Entry Conditions
Big bullish candle (close > open)
Body size greater than threshold
RSI is below 70
Price is above EMA(50)
❌ Short Entry Conditions
Big bearish candle (close < open)
Body size greater than threshold
RSI is above 30
Price is below EMA(50)
🎯 Strategy Actions
Enters long or short positions based on the above conditions.
On each entry, a horizontal line is drawn at the entry price (close) and extended forward for 3 bars to visually mark the trade level.
Green line for long entries.
Red line for short entries.
📐 Visual Elements
EMA line (orange)
Buy/Sell Labels: Up/down labels on the chart at entry points.
Fibonacci Level (purple): Retracement level based on the big candle.
Horizontal Trade Lines: Lines marking the entry price for quick visual tracking.
⏱️ Multi-Timeframe Data
Fetches high/low from:
5-minute chart
1-hour chart
(Prepared for potential additional filtering or breakout logic.)
Prev Candle Before Biggest Body (3-7am EST)This indicator automatically identifies and marks, for each trading day, the candle immediately preceding the largest open-to-close movement (in pips) during the key London session window from 3:00am to 7:00am EST (New York time). The largest candle is determined by the absolute difference between its open and close prices, measured in pips. The candle just before this “biggest” move is highlighted with a distinctive pink flag above the bar. This tool is especially useful for traders seeking to analyze pre-breakout price action or to identify key levels and setups that occur right before significant volatility during the early London session.
3 Bar Reversal3 Bar Reversal
This pattern is described in John Carter's "Mastering the Trade"
The 3 Bar Reversal indicator is a simple but effective price action tool designed to highlight potential short-term reversals in market direction. It monitors consecutive bar behavior and identifies turning points based on a three-bar pattern. This tool can assist traders in spotting trend exhaustion or early signs of a reversal, particularly in scalping or short-term trading strategies.
How It Works
This indicator analyzes the relationship between consecutive bar closes:
It counts how many bars have passed since the price closed higher than the previous close (barssince(close >= close )) — referred to as an "up streak".
It also counts how many bars have passed since the price closed lower than the previous close (barssince(close <= close )) — known as a "down streak".
A reversal condition is met when:
There have been exactly 3 bars in a row moving in one direction (up or down), and
The 4th bar closes in the opposite direction.
When this condition is detected, the script performs two actions:
Plots a triangle on the chart to signal the potential reversal:
A green triangle below the bar for a possible long (buy) opportunity.
A red triangle above the bar for a possible short (sell) opportunity.
Triggers an alert condition so users can set notifications for when a reversal is detected.
Interpretation
Long Signal: The market has printed 3 consecutive lower closes, followed by a higher close — suggesting bullish momentum may be emerging.
Short Signal: The market has printed 3 consecutive higher closes, followed by a lower close — indicating possible bearish momentum.
These patterns are common in market retracements and can act as confirmation signals when used with other indicators such as RSI, MACD, support/resistance, or volume analysis.
Usage Examples
Scalping: Use the reversal signal to quickly enter short-term trades after a short-term exhaustion move.
Swing Trading: Combine this with trend indicators (e.g., moving averages) to time pullbacks within larger trends.
Confirmation Tool: Use this indicator alongside candlestick patterns or support/resistance zones to validate entry or exit points.
Alert Setup: Enable alerts based on the built-in alertcondition to receive instant notifications for potential trade setups.
Limitations
The 3-bar reversal logic does not guarantee a trend change; it signals potential reversals, which may need confirmation.
Best used in conjunction with broader context such as trend direction, market structure, or other technical indicators.