RSI adaptive zones [AdaptiveRSI]This script introduces a unified mathematical framework that auto-scales oversold/overbought and support/resistance zones for any period length. It also adds true RSI candles for spotting intrabar signals.
Built on the Logit RSI foundation, this indicator converts RSI into a statistically normalized space, allowing all RSI lengths to share the same mathematical footing.
What was once based on experience and observation is now grounded in math.
✦ ✦ ✦ ✦ ✦
💡 Example Use Cases
RSI(14): Classic overbought/oversold signals + divergence
Support in an uptrend using RSI(14)
Range breakouts using RSI(21)
Short-term pullbacks using RSI(5)
✦ ✦ ✦ ✦ ✦
THE PAST: RSI Interpretation Required Multiple Rulebooks
Over decades, RSI practitioners discovered that RSI behaves differently depending on trend and lookback length:
• In uptrends, RSI tends to hold higher support zones (40–50)
• In downtrends, RSI tends to resist below 50–60
• Short RSIs (e.g., RSI(2)) require far more extreme threshold values
• Longer RSIs cluster near the center and rarely reach 70/30
These observations were correct — but lacked a unifying mathematical explanation.
✦ ✦ ✦ ✦ ✦
THE PRESENT: One Framework Handles RSI(2) to RSI(200)
Instead of using fixed thresholds (70/30, 90/10, etc.), this indicator maps RSI into a normalized statistical space using:
• The Logit transformation to remove 0–100 scale distortion
• A universal scaling based on 2/√(n−1) scaling factor to equalize distribution shapes
As a result, RSI values become directly comparable across all lookback periods.
✦ ✦ ✦ ✦ ✦
💡 How the Adaptive Zones Are Calculated
The adaptive framework defines RSI zones as statistical regimes derived from the Logit-transformed RSI .
Each boundary corresponds to a standard deviation (σ) threshold, scaled by 2/√(n−1), making RSI distributions comparable across periods.
This structure was inspired by Nassim Nicholas Taleb’s body–shoulders–tails regime model:
Body (±0.66σ) — consolidation / equilibrium
Shoulders (±1σ to ±2.14σ) — trending region
Tails (outside of ±2.14σ) — rare, high-volatility behavior
Transitions between these regimes are defined by the derivatives of the position (CDF) function :
• ±1σ → shift from consolidation to trend
• ±√3σ → shift from trend to exhaustion
Adaptive Zone Summary
Consolidation: −0.66σ to +0.66σ
Support/Resistance: ±0.66σ to ±1σ
Uptrend/Downtrend: ±1σ to ±√3σ
Overbought/Oversold: ±√3σ to ±2.14σ
Tails: outside of ±2.14σ
✦ ✦ ✦ ✦ ✦
📌 Inverse Transformation: From σ-Space Back to RSI
A final step is required to return these statistically normalized boundaries back into the familiar 0–100 RSI scale. Because the Logit transform maps RSI into an unbounded real-number domain, the inverse operation uses the hyperbolic tangent function to compress σ-space back into the bounded RSI range.
RSI(n) = 50 + 50 · tanh(z / √(n − 1))
The result is a smooth, mathematically consistent conversion where the same statistical thresholds maintain identical meaning across all RSI lengths, while still expressing themselves as intuitive RSI values traders already understand.
✦ ✦ ✦ ✦ ✦
Key Features
Mathematically derived adaptive zones for any RSI period
Support/resistance zone identification for trend-aligned reversals
Optional OHLC RSI bars/candles for intrabar zone interactions
Fully customizable zone visibility and colors
Statistically consistent interpretation across all markets and timeframes
Inputs
RSI Length — core parameter controlling zone scaling
RSI Display : Line / Bar / Candle visualization modes
✦ ✦ ✦ ✦ ✦
💡 How to Use
This indicator is a framework , not a binary signal generator.
Start by defining the question you want answered, e.g.:
• Where is the breakout?
• Is price overextended or still trending?
• Is the correction ending, or is trend reversing?
Then:
Choose the RSI length that matches your timeframe
Observe which adaptive zone price is interacting with
Interpret market behavior accordingly
Example: Long-Term Trend Assesment using RSI(200)
A trader may ask: "Is this a long term top?"
Unlikely, because RSI(200) holds above Resistance zone , therefore the trend remains strong.
✦ ✦ ✦ ✦ ✦
👉 Practical tip:
If you used to overlay weekly RSI(14) on a daily chart (getting a line that waits 5 sessions to recalculate), you can now read the same long-horizon state continuously : set RSI(70) on the daily chart (~14 weeks × 5 days/week = 70 days) and let the adaptive zones update every bar .
Note: It won’t be numerically identical to the weekly RSI due to lookback period used, but it tracks the same regime on a standardized scale with bar-by-bar updates.
✦ ✦ ✦ ✦ ✦
Note: This framework describes statistical structure, not prediction. Use as part of a complete trading approach. Past behavior does not guarantee future outcomes.
framework ≠ guaranteed signal
---
Attribution & License
This indicator incorporates:
• Logit transformation of RSI
• Variance scaling using 2/√(n−1)
• Zone placement derived from Taleb’s body–shoulders–tails regime model and CDF derivatives
• Inverse TANH(z) transform for mapping z-scores back into bounded RSI space
Released under CC BY-NC-SA 4.0 — free for non-commercial use with credit.
© AdaptiveRSI
Educational
[ICT] [SMC] True Market Structure [TDT]Introduction
The True Market Structure indicator is designed to help Smart Money Concepts (SMC) and ICT traders visualize the "True" mechanical structure of the market. Unlike standard ZigZag indicators that often repaint or react to minor noise, this script utilizes a strict Fractal Swing algorithm to identify valid Highs and Lows.
It automatically maps out the market trend by distinguishing between BOS (Break of Structure) for trend continuation and CHoCH (Change of Character) for trend reversals, while highlighting the "Protected" or "Strong" structural points.
How It Works
The indicator relies on a generic fractal calculation (Swing High/Low) determined by the user-defined length.
Trend Identification: The script tracks a state machine (Bullish/Bearish).
Weak Structure (Target): In a bullish trend, the recent High is the "Weak High" (the target to break).
Strong Structure (Protected): The Low responsible for breaking the High becomes the "Strong Low."
BOS vs. CHoCH:
BOS: When price breaks a Weak High (in an uptrend), it confirms continuation.
CHoCH: When price breaks a Strong Low (in an uptrend), it signals a potential reversal.
Key Features
True Fractal Detection: Uses a centered lookback period (Input: Swing Fractal Length) to find significant pivot points.
Confirmation Modes: Choose between candle Close (more conservative, filters wicks) or High/Low (more aggressive) for structure breaks.
Structure Mapping:
Solid Lines: Represent BOS (Trend Continuation).
Dashed Lines: Represent CHoCH (Trend Reversal).
Origin Dots (Protected Levels):
These dots mark the exact swing point that caused the break.
Usage: In an uptrend, the dot marks the Strong Low. If price closes below this dot, the trend flips.
Settings Guide
Swing Fractal Length: The lookback period to define a Swing High/Low.
Default: 3 (Standard ICT Intermediate Term High/Low).
Increase this number to see higher timeframe structure (e.g., set to 10-20 for major swings).
Break Confirmation:
Close: Price body must close beyond the structure level to confirm a break.
High/Low: A wick breaking the level is sufficient.
Visuals: Toggle lines and dots on/off and customize colors to fit your chart theme.
How to Use (Trading Strategy)
Trend Following: Wait for a BOS (Solid Line). Identify the Origin Dot created by that move. This is your "Protected Low/High." Look for entries (FVG/Order Blocks) between the current price and that Dot.
Reversal Trading: Watch for a CHoCH (Dashed Line). This indicates the "Strong Structure" has failed, and the bias has shifted.
Stop Placement: The Origin Dots serve as excellent invalidation points for Stop Losses.
Disclaimer
This tool is for educational purposes and market analysis only. It does not provide financial advice or guarantee future results. Always manage your risk.
Prev/Current Day Open & Close (RamtinFX)Draws three transparent vertical lines marking the previous day’s close, the current day’s open, and the current day’s close.
Consolidation Breakout PRO — Clean Boxes + 200 EMA Trend Filter High-probability range breakout detector that draws perfect, always-visible consolidation boxes and only alerts when price breaks out with strong volume and (optionally) in the direction of the prevailing trend.
Features
Automatically draws and extends clean consolidation boxes in real time
Boxes stop extending the moment the breakout occurs — no more “ghost” lines
Optional but powerful 200 EMA trend filter (dramatically reduces false breakouts)
Stronger volume confirmation (default 1.8× the 20-period average, fully adjustable)
Auto-deletes old boxes so your chart stays perfectly clean even after hundreds of signals
Clear “BREAKOUT ↑” and “BREAKDOWN ↓” labels + ready-to-use alerts
Works on any market and any timeframe (best on 1H, 4H, Daily)
How to trade it (edge > 65 % when used correctly)
Wait for the labeled breakout candle to close
Enter on pullback/retest of the box edge (or on strong close + retest)
Stop-loss just outside the opposite side of the box
Take-profit: minimum 1:2, ideally measured move (box height added/subtracted) or trailing with the 20 EMA
This is the cleanest and most professional public consolidation breakout tool available in 2025 — no repainting, no lag, no chart clutter.
Created and continuously improved with love for the TradingView community.
Auto Position CalculatorA position sizing tool that automatically detects the instrument you're trading and calculates the correct position size based on your risk parameters.
What It Does
This indicator calculates how many contracts, lots, or shares to trade based on your account size, risk percentage, and stop loss distance. It auto-detects the instrument type and adjusts the point/pip value accordingly.
Supported Instruments
Futures: NQ, MNQ, ES, MES, YM, MYM, RTY, M2K, CL, MCL, GC, MGC
Forex: All major pairs (USD, EUR, GBP, JPY, etc.)
Index CFDs: NAS100, US500, US30, GER40, UK100
Metals: XAU, XAG
Crypto and Stocks: Automatic detection
How to Use
Set your account size and risk % in settings
Click the settings icon and place Entry, Stop Loss, and Take Profit on the chart
The position size and risk calculations appear automatically
Levels auto-reset at your chosen session (Asia, London, or New York open)
Limitations
CFD and forex pip values assume standard lot sizing - your broker may differ
Auto-detection relies on ticker naming conventions, which vary by broker/data feed
Session reset times are based on ET (Eastern Time)
ATR Trailing Stop (Long or Short Selectable)The ATR Trailing Stop (Long or Short Selectable) will start calculating on a set date that you specify. This is great because you want to trail the price from the breakout day or even after exceeding specific price level (can be your breakeven level or even to capture more of the upside after the price target is met).
Entry price: If you act at the close of the day, you can leave this value as 0 and it will take the close of the day for the initial protective stop-loss calculation. You can choose to add a value such as the pattern boundary and in that case it will subtract the initial protective stop-loss from the pattern boundary and not the close of the day. If you use a scaling in tactic during the day (buying in tranches intraday as the breakout takes place) and your average purchase price is different than the close of the day, you can also plug that number in to calculate the initial protective stop-loss.
This is a modified version as many followers asked for ATR trailing for short setups. Now you can select the Long/Short trade setup from the drop down menu.
ATR period: You can select the ATR period. It can be 10 day, 14 day or 30 day or any ATR period of your choice.
ATR Multiplier for Stop-loss: This is the multiplier that you want to trail the price with. From the highest level price reached it will trail the price with a 3 x ATR () distance. The higher the number, the wider the trailing stop-loss. A multiplier of 1 will trail the price so close that and adverse movement can result in triggering the stop-loss.
Custom Value for First day Trailing Stop: This is my favorite part. For aggressive risk management, your initial protective stop can be smaller than what the ATR Trailing Stop will use in its calculation after entry day. In this case you can take 1xATR () or even with FX and Futures you can apply 0.5xATR() as the first day to calculate initial protective stop. The protective stop turns into a trailing stop after the first day.
Buy vs Sell Volume//@version=5
indicator("Buy vs Sell Volume", overlay=false)
buyVol = close > open ? volume : 0
sellVol = close < open ? volume : 0
plot(buyVol, "Buy Volume", color=color.green)
plot(sellVol, "Sell Volume", color=color.red)
Josh FXJoshFX Multi-Timeframe Levels & Fair Value Gap Indicator
This powerful TradingView indicator provides a comprehensive view of key market levels and trends across multiple timeframes. Designed for traders who want precise entries and market context, it includes:
Previous Daily Levels: Automatically marks the previous day’s High, Low, and 50% midpoint.
Multi-Timeframe Trend: Displays the trend direction for 5-minute, 15-minute, 1-hour, and 4-hour charts directly on your current chart.
Daily Candle Display: Shows the current daily candle for quick visual reference.
Pivot Points: Accurately marks technical highs and lows (pivot points) to the exact unit on the chart.
Fair Value Gaps (FVGs): Highlights areas of imbalance for potential high-probability trade setups.
JoshFX Telegram Watermark: Includes branding for the JoshFX community.
This all-in-one tool is perfect for traders combining price action, liquidity concepts, and multi-timeframe analysis to find high-quality setups efficiently.
Candle Identification + Cardwell Strength (w/ Slope Velocity)Identifies candle patterns pin bar, inside bar, outside bar, and shaved bars. The script also indicates the strength of the candle formation based upon Cardwell RSI principles, ADX, and price in relation to the VWAP.
The settings are available to the user to adjust for there specific style of trading.
MYPYBiTE.com – Cloud + VWAPFor Bitcoin we found that the 3 day chart consistently indicates a pattern that anyone can back test and determine the trend confirmation is broken. Of course we won't tell you here what it is because you have to do the work or be familiar with the communities I participate in.
We decided to make this available because we realized many folks do not incorporate cloud charting. This is to help noobies and we hope to incorporate other factors in time.
StockInfo: Sector/Industry /MarketCapThis indicator is designed to give traders a quick, accurate, and clean snapshot of the business fundamentals behind any Indian stock — directly on the chart. With a focus on the needs of retail investors, swing traders, and position traders, this tool displays the most important classification details used in market analysis:
✔ Sector
✔ Industry
✔ Market-Cap Category (Large / Mid / Small Cap – SEBI aligned)
✔ Stock Symbol (Exchange:Ticker)
All information is shown in a compact, customizable table, positioned neatly on the chart without disturbing your technical analysis.
Why this indicator is useful
1️⃣ Know what you are trading — instantly
Many traders unknowingly enter trades without checking whether a stock is:
part of the right sector cycle
in a strong or weak industry
a large, mid, or small cap
This tool puts that information right in front of you, saving time and preventing mistakes.
2️⃣ Helps identify sector rotation & industry strength
Sector and industry trends often drive strong multi-week moves.
This indicator allows you to:
Quickly compare a stock’s sector with others
Spot sector rotation early
Filter stocks based on industry strength
Perfect for momentum, trend, and positional traders.
3️⃣ Automatic Market-Cap Classification (SEBI-aligned)
The script automatically categorizes stocks into:
LARGE CAP (safe, stable, institutional favourites)
MID CAP (growth stage, volatile but rewarding)
SMALL CAP (high-risk, high-reward)
Great for risk profiling and deciding correct position size and portfolio allocation.
4️⃣ Fully Customisable User Interface
You can change:
Table position (all four corners)
Font size (Tiny → Huge)
Header & value colors
Background colors
Border color & width
Which rows to display
This keeps the indicator clean and flexible for every type of chart layout.
5️⃣ Perfect for Traders Who Combine Fundamentals + Technicals
This is not a heavy fundamental tool.
Instead, it gives you exactly the core business details you need while performing technical analysis.
Useful for:
Swing traders
Position traders
Portfolio allocation
Index-relative comparison
Sector/industry-based screening
How traders typically use this indicator
Identify the sector leader in a breakout
Avoid weak or declining industries
Confirm if a stock fits your risk profile
Quickly check classification during live market
Build thematic watchlists (Auto, IT, Pharma, PSU, Defense, etc.)
Avoid mixing small-caps into large-cap strategies
Compare sector rotation with Nifty, Bank Nifty & broader indices
Conclusion
This indicator enhances any chart by adding high-level business intelligence directly on screen.
It improves decision-making, reduces time spent switching between windows, and keeps your analysis complete — all in one place.
If you trade Indian equities, this is one of the simplest yet most powerful fundamental overlays you can add to your workflow.
SPX +10 / -10 From 9:30 Open//@version=5
indicator("SPX +10 / -10 From 9:30 Open", overlay=true)
// Exchange Time (New York)
sess = input.session("0930-1600", "Regular Session (ET)")
// Detect session and 9:30 AM bar
inSession = time(timeframe.period, sess)
// Capture the 9:30 AM open
var float open930 = na
if inSession
// If this is the first bar of the session (9:30 AM)
if time(timeframe.period, sess) == na
open930 := open
else
open930 := na
// Calculate movement from 9:30 AM open
up10 = close >= open930 + 10
dn10 = close <= open930 - 10
// Plot reference lines
plot(open930, "9:30 AM Open", color=color.orange)
plot(open930 + 10, "+10 Level", color=color.green)
plot(open930 - 10, "-10 Level", color=color.red)
// Alert conditions
alertcondition(up10, title="SPX Up +10", message="SPX moved UP +10 from the 9:30 AM open")
alertcondition(dn10, title="SPX Down -10", message="SPX moved DOWN -10 from the 9:30 AM open")
// Plot signals on chart
plotshape(up10, title="+10 Hit", style=shape.labelup, color=color.green, text="+10", location=location.belowbar, size=size.tiny)
plotshape(dn10, title="-10 Hit", style=shape.labeldown, color=color.red, text="-10", location=location.abovebar, size=size.tiny)
SPX +10 / -10 From 9:30 Open//@version=5
indicator("SPX +10 / -10 From 9:30 Open", overlay=true)
// Exchange Time (New York)
sess = input.session("0930-1600", "Regular Session (ET)")
// Detect session and 9:30 AM bar
inSession = time(timeframe.period, sess)
// Capture the 9:30 AM open
var float open930 = na
if inSession
// If this is the first bar of the session (9:30 AM)
if time(timeframe.period, sess) == na
open930 := open
else
open930 := na
// Calculate movement from 9:30 AM open
up10 = close >= open930 + 10
dn10 = close <= open930 - 10
// Plot reference lines
plot(open930, "9:30 AM Open", color=color.orange)
plot(open930 + 10, "+10 Level", color=color.green)
plot(open930 - 10, "-10 Level", color=color.red)
// Alert conditions
alertcondition(up10, title="SPX Up +10", message="SPX moved UP +10 from the 9:30 AM open")
alertcondition(dn10, title="SPX Down -10", message="SPX moved DOWN -10 from the 9:30 AM open")
// Plot signals on chart
plotshape(up10, title="+10 Hit", style=shape.labelup, color=color.green, text="+10", location=location.belowbar, size=size.tiny)
plotshape(dn10, title="-10 Hit", style=shape.labeldown, color=color.red, text="-10", location=location.abovebar, size=size.tiny)
Minervini VCP Pattern -Indian ContextThis script implements Mark Minervini's Trend Template and VCP (Volatility Contraction Pattern) pattern, specifically adapted for Indian stock markets (NSE). It helps identify stocks that are in strong uptrends and ready to break out.
Core Concepts Explained
1. What is the Minervini Trend Template?
Mark Minervini's method identifies stocks in Stage 2 uptrends - the sweet spot where institutional money is accumulating and stocks show the strongest momentum. Think of it as finding stocks that are "leaders" rather than "laggards."
2. What is VCP (Volatility Contraction Pattern)?
A VCP occurs when:
Stock price consolidates (moves sideways) after an uptrend
Price swings get tighter and tighter (like a coiled spring)
Volume dries up (fewer people trading)
Then it breaks out with force.
You can customize the strategy settings without editing code.
Key Settings:
Minimum Price (₹50): Filters out penny stocks that are too volatile
Min Distance from 52W Low (30%): Stock should be at least 30% above its yearly low
Max Distance from 52W High (25%): Stock should be within 25% of its yearly high (showing strength)
Moving Average Periods: 10, 50, 150, 200 days (industry standard)
Minimum Volume (100,000 shares): Ensures the stock is liquid enough to trade
Indian Market Adaptation: The default values (₹50 minimum, volume thresholds) are adjusted for NSE stocks, which behave differently than US markets.
The script pulls weekly chart data even when you're viewing daily charts.
Why it matters: Weekly trends are more reliable than daily noise. Professional traders use weekly charts to confirm the bigger picture.
What are Moving Averages (MAs)?
Simple averages of closing prices over X days
They smooth out price action to show trends
Think of them as the "average cost" of buyers over different time periods
The 4 Key MAs:
10 MA (Fast): Very short-term trend
50 MA: Short to medium-term trend
150 MA: Medium to long-term trend
200 MA: Long-term trend (the "grandfather" of all MAs)
Why Weekly MAs?
The script also calculates 10 and 50 MAs on weekly data for additional confirmation of the bigger trend.
The script Finds the highest and lowest prices over the past 52 weeks (1 year).
Why it matters:
Stocks near 52-week highs are showing strength (institutions buying)
Stocks far from 52-week lows have "room to run" upward
This is a psychological level that influences trader behaviour.
What is Volume here ?
The number of shares traded each day
High volume = many traders interested (conviction)
Low volume = lack of interest (weakness or consolidation)
Volume in VCP:
During consolidation (sideways movement), volume should dry up - this shows sellers are exhausted and buyers are holding. When volume spikes on a breakout, it confirms the move.
NSE Context: Indian stocks often have different volume patterns than US stocks, so the 50-day average is used as a baseline.
Relative Strength vs Nifty:
Example:
If your stock is up 20% and Nifty is up 10%, your stock has strong RS
If your stock is up 5% and Nifty is up 15%, your stock has weak RS (avoid it!)
Why it matters: The best performing stocks almost always have strong relative strength before major moves.
The 13 Minervini Conditions:-
Condition 1: Price > 50/150/200 MA
Meaning: Current price must be above ALL three major moving averages.
Why: This confirms the stock is in a clear uptrend. If price is below these MAs, the stock is weak or in a downtrend.
Condition 2: MA 50 > 150 > 200
Meaning: The moving averages themselves must be in proper order.
Analogy: Think of this like layers in a cake - short-term on top, long-term at bottom. If they're tangled, the trend is unclear.
Condition 3: 200 MA Rising (1 Month)
Meaning: The 200 MA today must be higher than it was 20 days ago.
Why: This confirms the long-term trend is UP, not flat or down. The means "20 bars ago."
Condition 4: 50 MA Rising
Meaning: The 50 MA today must be higher than 5 days ago.
Why: Confirms short-term momentum is accelerating upward.
Condition 5: Within 25% of 52-Week High
Meaning: Current price should be within 25% of its 1-year high.
Example:
52-week high = ₹1000
Current price must be above ₹750 (within 25%)
Why: Strong stocks stay near their highs. Weak stocks fall far from highs.
Condition 6: 30%+ Above 52-Week Low (OPTIONAL)
Meaning: Stock should be at least 30% above its yearly low.
Note: The script marks this as "SECONDARY - Optional" because the other conditions are more important. However, it's still a good confirmation.
Condition 7: Price > 10 MA
Meaning: Very short-term strength - price above the 10-day moving average.
Why: Ensures the stock hasn't just rolled over in the immediate term.
Condition 8: Price >= ₹50
Meaning: Filters out stocks below ₹50.
Why: In Indian markets, stocks below ₹50 tend to be penny stocks with poor liquidity and higher manipulation risk.
Condition 9: Weekly Uptrend
Meaning: On the weekly chart, price must be above both weekly MAs, and they must be properly aligned.
Why: Confirms the bigger picture trend, not just daily fluctuations.
Condition 10: 150 MA Rising
Meaning: The 150 MA is trending upward over the past 10 days.
Why: Another confirmation of medium-term trend health.
Condition 11: Sufficient Volume
Meaning: Average volume must exceed 100,000 shares (or your custom setting).
Why: Ensures you can actually buy/sell the stock without moving the price too much (liquidity).
Condition 12: RS vs Nifty Strong
Meaning: The stock's relative strength vs Nifty must be improving.
Why: You want stocks that are outperforming the market, not underperforming.
Condition 13: Nifty in Uptrend
Meaning: The Nifty 50 index itself must be above its 50 MA.
Why: "A rising tide lifts all boats." It's easier to make money in individual stocks when the overall market is bullish.
VCP Requirements:
Volatility Contracting: Price swings getting tighter (coiling spring)
Volume Drying Up: Fewer shares trading + trending lower
The Setup: When volatility contracts and volume dries up WHILE all 13 trend conditions are met, you have a VCP setup ready to explode.
What You See on Chart:
Colored Lines: 10 MA (green), 50 MA (blue), 150 MA (orange), 200 MA (red)
Blue Background: Trend template conditions met (watch zone)
Green Background: Full VCP setup detected (buy zone)
↟ Symbol Below Price: New VCP buy signal just triggered
Information Table:
What it does: Creates a checklist table on your chart showing the status of all conditions.
Table Structure:
Column 1: Condition name
Column 2: Status (✓ green = met, ✗ red = not met)
Final Row: Shows "BUY" (green) or "WAIT" (red) based on full VCP setup status.
Dos:
Example:
Account size: ₹5,00,000
Risk per trade: 1% = ₹5,000
Entry: ₹1000
Stop loss: ₹920 (8% below)
Distance to stop: ₹80
Shares to buy: ₹5,000 / ₹80 = 62 shares
Exit Strategy:
Sell 1/3 at +20% profit
Sell another 1/3 at +40% profit
Let the final 1/3 run with a trailing stop
Always exit if price closes below 10 MA on heavy volume
What This Script Does NOT Do:
Guarantee profits - No strategy works 100% of the time
Account for news events - Earnings, regulatory changes, etc.
Consider fundamentals - Company financials, debt, management quality
Adapt to market crashes - Works best in bull markets
Best Market Conditions:
✅ Nifty in uptrend (above 50 MA)
✅ Market breadth positive (more stocks advancing)
✅ Sector rotation happening
❌ Avoid in bear markets or high volatility periods
References:
Trade Like a Stock Market Wizard by Mark Minervini
Think & Trade Like a Champion by Mark Minervini
Chart attached: AU Small Finance Bank as on EoD dated 28/11/25
This script is a powerful tool for educational purpose only, remember: It's a tool, not a crystal ball. Use it to find high-probability setups, then apply proper risk management and patience. Good luck!
Distance Dashboard (50DMA / 52W High / 20DMA)Distance Dashboard – Summary
The Distance Dashboard indicator provides a quick snapshot of where price is positioned relative to three key reference points:
Distance of current HIGH from the 50-day moving average (50DMA)
Helps gauge how extended price is above or below medium-term trend support.
Distance of current LOW from the 52-week HIGH
Shows how far price has pulled back from long-term highs.
Distance of current HIGH from the 20-day moving average (20DMA)
Measures short-term extension and potential overbought/overextended behaviour.
The indicator displays these values in a clean, movable table directly on the price chart.
It does not affect chart scaling and is designed for quick visual assessment of trend extension and relative strength.
rahulp33It is a 15-min high-low for the day; this will help the fellow chartist understand a trend emerging for the day. This indicator, along with others, gives a general sense of the daily trend, but it's not the sole factor to consider.
BHUVANA Fib 50–61.8 • Turn Alerts when FIB directions change
Detects step-up / step-down on both Fib 50 & 61.8 (your “stairs” logic).
Triggers BUY/SELL on that slope change (optionally also requires price to be above/below the line).Spot volatility compression around the 50%–61.8% Fibonacci mid-band of the current swing, then trade the first expansion with clean, rules-based entries and auto SL references.
Swing mapping: Finds the active high/low over a user-defined lookback and computes Fib 50% and Fib 61.8%.
Squeeze detection: Measures the distance between 50% and 61.8%. If the band width is ≤ (ATR × multiplier), the zone is flagged as a Squeeze.
Breakout entries (on close):
Long when price crosses up through 50% while squeezed.
Short when price crosses down through 61.8% while squeezed.
Risk framework: Auto-plots stop lines from the signal bar:
Long SL = swing low; Short SL = swing high.
Visuals: Fib lines (50/61.8) + optional yellow zone highlight during squeeze.
Signals evaluate on bar close (no forward-looking data).
Works well on XAUUSD / US30 intraday (5–15m) during London/NY sessions.
Add your own alertcondition() lines if you want push alerts on Long/Short entries.
rahulpatkiIt is a 15-min high-low for the day; this will help the fellow chartist understand a trend emerging for the day. This indicator, along with others, provides a general idea of the daily trend, but it is not the only one to consider.
RSI Regimes + Cardwell Sweet SpotsRSI based upon Cardwell principles, with a strength evaluation based upon the ADX, VWAP, velocity of both, and Cardwell RSI principles of a sweet spot of a RSI.
Unusual Volume//@version=5
indicator("Unusual Volume", overlay=false)
// --- Inputs ---
len = input.int(20, "Average Volume Length", minval=1)
mult = input.float(2.0, "Unusual Volume Multiplier", step=0.1)
// --- Calculations ---
avgVol = ta.sma(volume, len)
ratio = volume / avgVol
isBigVol = ratio > mult
// --- Plots ---
plot(volume, "Volume", style=plot.style_columns,
color = isBigVol ? color.new(color.green, 0) : color.new(color.gray, 60))
plot(avgVol, "Average Volume", color=color.orange)
// Mark unusual volume bars
plotshape(isBigVol, title="Unusual Volume Marker",
location=location.bottom, style=shape.triangleup,
color=color.green, size=size.tiny, text="UV")
// Optional: show ratio in Data Window
var label ratioLabel = na
Average Volume LabelAverage Volume Label Indicator
This TradingView Pine Script creates a customizable label that displays the average trading volume over a specified period directly on your price chart.
Core Functionality:
Calculates the simple moving average (SMA) of volume over a user-defined number of days (default: 20 days)
Displays this average in a positioned label at the top of the chart
The label shows text like "20-Day Avg Volume: 1.2M" with automatic volume formatting
Key Customization Options:
Volume Calculation:
Adjustable lookback period (1-200 days) for the volume average
Label Appearance:
Text color, background color, and transparency controls
Five size options (Tiny to Huge)
Configurable horizontal position (how many bars back from the current bar to place the label)
Technical Implementation:
Updates only on the most recent bar to optimize performance
Positions the label at the highest price point within the visible range for consistent top-of-chart placement
Includes safety checks to prevent runtime errors with lookback periods
Also plots the average volume data (visible in the data window for reference)
This indicator is useful for traders who want to quickly assess whether current volume is above or below the recent average without cluttering their chart with additional panes.
Price Action Edge Finder [PUCHON]📊 Price Action Edge Finder
The Price Action Edge Finder is a powerful quantitative tool designed to turn standard candlestick patterns into actionable statistical data. Instead of just showing where a pattern occurs, this indicator calculates the **probability of success** and **expected return** over a specific lookahead period, giving traders a statistical edge.
✨ Key Features:
- 🕯️ Comprehensive Pattern Detection: Detects 15+ classic candlestick patterns including:
- Reversal: Engulfing, Morning/Evening Star, Harami, Piercing/Dark Cloud, Tweezers, Doji Stars, Three Inside Up/Down.
- Momentum: Three White Soldiers / Three Black Crows.
- 📊 Statistical Dashboard: A real-time table displaying:
- Count: Total occurrences of each pattern.
- Prob Up/Down %: Historical probability of price moving up or down after 'n' bars.
- Avg Return %: Average percentage return for winning moves.
- 📉 Trend Filter: Optional Moving Average (SMA/EMA) filter to trade with the trend.
- Bullish patterns are only valid above the MA.
- Bearish patterns are only valid below the MA.
- Visuals: Dynamic MA color (Green/Red) and background fill to clearly show trend direction.
- ⚙️ Fully Customizable: Enable/Disable specific patterns, adjust lookahead period, change table position, and more.
🧮 How It Works:
The indicator uses a "lookback" method to calculate performance without repainting.
1. Detection: Identifies if a pattern occurred on the current bar.
2. Lookahead: Checks the price action `n` bars later (user-defined).
3. Statistics: Updates the global stats (Count, Win Rate, Avg Return) based on the outcome.
// Example: Updating stats for a Bullish Engulfing pattern
if show_bull_engulf and bull_engulf_detected
entry_price = close
exit_price = close
// Calculate % change and update probability stats
update_stats(stats_bull_engulf, entry_price, exit_price)
💡 Usage Tips:
- Use the Trend Filter to filter out low-probability counter-trend signals.
- Adjust the Lookahead Bars (n) to match your trading style (e.g., lower 'n' for scalping, higher 'n' for swing trading).
- Focus on patterns with high Prob % and Avg Return in the dashboard.
⚠️ Disclaimer:
Past performance is not indicative of future results. This tool provides historical statistics to aid decision-making but does not guarantee future profits. Always manage your risk.






















