Advanced Pattern Detection System [50+ Patterns]【Advanced Pattern Detection System - Auto-detects 50+ Chart Patterns】
Introducing the most powerful pattern detection indicator for TradingView!
◆ What is this?
An automated tool that finds and displays over 50 chart patterns on your charts. It detects all the patterns professional traders use - Double Tops, Triangles, Head & Shoulders, and more - all in ONE indicator.
◆ Main Features
・Detects 50+ patterns in real-time
・Shows visual explanation of WHY each pattern was identified
・Automatically calculates theoretical target prices
・Displays confidence levels in % (60-95%)
・Choose panel position from 9 locations
・Works on all timeframes (1min to Monthly)
◆ Detectable Patterns
1. Classic Patterns (Double Top/Bottom, Head & Shoulders, etc.)
2. Triangle Patterns (Ascending, Descending, Symmetrical, Expanding)
3. Continuation Patterns (Flags, Pennants, Wedges, etc.)
4. Harmonic Patterns (Gartley, Butterfly, Bat, etc.)
5. Price Action (Pin Bar, Engulfing, Hammer, etc.)
6. Special Patterns (Cup & Handle, V-formations, etc.)
◆ What Makes It Different
・Not just detection - shows the reasoning behind it
・Auto-draws pivot points and necklines
・Displays target prices with % gain/loss from current price
・Detects multiple patterns simultaneously, sorted by confidence
・Available in both Japanese and English versions
◆ Perfect For
✓ Anyone tired of using multiple indicators
✓ Beginners wanting to learn pattern trading
✓ Traders who don't want to miss entry points
✓ Those looking to improve discretionary trading accuracy
◆ How to Use (Easy 3 Steps)
1. Open TradingView and paste code in Pine Editor
2. Click "Add to Chart"
3. Enable only the patterns you need in settings
◆ Color Meanings
Green → Bullish potential (Buy signal)
Red → Bearish potential (Sell signal)
Yellow → Neutral direction (Wait and see)
◆ Recommended Settings
Scalping: Detection period 20, Sensitivity 0.0025
Day Trading: Detection period 50, Sensitivity 0.002
Swing Trading: Detection period 100, Sensitivity 0.0015
◆ Real Trading Example
"Detects Double Bottom → 85% confidence → Enter on neckline break → Take profit at displayed target price"
This is how you can use it in practice.
◆ Important Notes
・This is an analysis tool, not investment advice
・Always combine with other indicators
・Always set stop losses
・Practice on demo account before live trading
◆ Performance
If running slow, turn OFF unused pattern categories. Reducing max display count to 3 also helps.
◆ Summary
This single tool provides functionality that would normally require multiple paid indicators (worth $100-200 total). It's the ultimate pattern detection system recommended for all traders, from beginners to professionals.
Give it a try if interested! Feel free to ask questions in the comments.
Indicadores y estrategias
Smart Money Footprint & Cost Basis Engine [AlgoPoint]Smart Money Footprint & Cost Basis Engine
This indicator is a comprehensive market analysis tool designed to identify the "footprints" of Smart Money (institutions, whales) and pinpoint high-probability reaction zones. Instead of relying on lagging averages, this engine analyzes the very structure of the market to find where large players have shown their hand.
How It Works: The Core Logic
The indicator operates on a multi-stage confirmation process to identify and validate Smart Money zones:
Smart Money Detection (The Trigger): The engine first scans the chart for signs of intense, urgent buying or selling. It does this by identifying Fair Value Gaps (FVGs) created by large, high-volume Displacement Candles. This is our initial Point of Interest (POI).
Cost Basis Calculation (The Average Price): Once a potential Smart Money move is detected, the indicator calculates the Volume-Weighted Average Price (VWAP) for that specific move. This gives us a highly accurate estimate of the average price at which the large players entered their positions.
Historical Confirmation (The "Memory"): This is the indicator's most unique feature. It checks its historical database to see if a similar Smart Money move (in the same direction) has occurred in the same price area in the past. If a match is found, the zone's significance is confirmed.
Verified Cost Basis Zone (The Final Output): A zone that passes all the above checks is drawn on the chart as a high-probability Verified Cost Basis Zone. These are the "memory zones" where the market is likely to react upon a re-visit.
How to Use This Indicator
Cost Basis Zones (The Boxes):
Green Boxes: Bullish zones where Smart Money likely accumulated positions. When the price returns here, a BUY reaction is expected.
Red Boxes: Bearish zones where Smart Money likely distributed positions. When the price returns here, a SELL reaction is expected.
Zone Strength (★★★): Each zone is created with a star rating. More stars indicate a higher-confidence zone (based on factors like volume intensity and historical confirmation).
BUY/SELL Signals: A signal is only generated when the price enters a zone AND the confirmation filters (if enabled in the settings) are passed.
Zone Statuses:
Green/Red: Active and waiting to be tested.
Gray: The zone has been tested, and a signal was produced.
Dark Gray (Invalidated): The zone was broken decisively and is no longer considered valid support/resistance.
Key Settings
Signal Accuracy Filters: You can enable/disable three powerful filters to balance signal quantity and quality:
Momentum Confirmation (Stoch): Waits for momentum to align with the zone's direction.
Candlestick Confirmation (Engulfing): Waits for a strong reversal candle inside the zone.
Lower Timeframe MSS Confirmation: The most advanced filter; waits for a trend shift on a lower timeframe before giving a signal.
Historical Confirmation:
Require Historical Confirmation: Toggle the "Memory" feature on/off. Turn it off to see all potential SM zones.
Tolerance Calculation Method: Choose between a dynamic ATR Multiplier (recommended for all-around use) or a fixed Percentage to define the zone size.
Trendline Breakout with TP/SLTRENDLINE BREAKOUT STRATEGY
This indicator provides dynamic trendline detection with comprehensive TP/SL management.
FEATURES:
- Automatic trendline construction using pivot analysis
- Breakout signal detection with volume confirmation
- ATR-based take profit and stop loss calculations
- Support/resistance level integration
- Customizable risk management system
METHODOLOGY:
Uses mathematical pivot point analysis to identify trend patterns and generate trading signals with calculated risk parameters.
TECHNICAL IMPLEMENTATION:
- Custom data structures for efficient line management
- Dynamic slope calculations for trend projection
- Volume oscillator for breakout validation
- Multi-level profit targeting system
DISCLAIMER: Educational purposes only. Past performance doesn't guarantee future results.
GainzAlgo ProI bought an indicator from GainzAlgo, but it turned out they are deceiving people with advertising and selling a fake indicator.
Don’t trust the videos they show on TikTok and other social media.
This is the indicator and script they are selling.
You can try it if you want, but my recommendation is: GainzAlgo is a scam, they trick people and take their money.
Moon Scalper v3 + VSAMoon Scalper v3 is a high-precision scalping indicator optimized for the 15-minute chart. It delivers clean buy/sell signals with TP1 (1:1 risk-reward) exits using layered confirmations:
• **Volatility Bands** — SMA + multiplier detect expansion zones
• **EMA Filter (200)** — ensures trades align with trend
• **RSI Range Filter** — avoids extreme overbought/oversold traps (buy: 52–62, sell: 38–48)
• **Volume Spike Filter** — filters for institutional activity (vol > 1.4×SMA)
• **VSA Confirmation** — requires wide-spread, high-volume bars with reclaim (volume × 1.4, spread × 1.5, reclaim 50%)
**Usage Notes:**
Best used on 15m timeframe for liquid pairs (e.g., BTCUSDT, ETHUSDT). Signals appear as “BUY” / “SELL” labels on chart. Defaults yield high TP1 hit rate; use only during active sessions (e.g., London/NY) for best accuracy.
**Disclaimer:**
This indicator is for educational purposes only. Past performance is not a guarantee of future results. Always backtest before live trading and manage risk responsibly.
TMA +BB Bands Indicator//@version=5
indicator(shorttitle="BB", title="Bollinger Bands", overlay=true, timeframe="", timeframe_gaps=true)
length = input.int(20, minval=1)
maType = input.string("SMA", "Basis MA Type", options = )
src = input(close, title="Source")
mult = input.float(2.0, minval=0.001, maxval=50, title="StdDev")
ma(source, length, _type) =>
switch _type
"SMA" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"SMMA (RMA)" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
basis = ma(src, length, maType)
dev = mult * ta.stdev(src, length)
upper = basis + dev
lower = basis - dev
offset = input.int(0, "Offset", minval = -500, maxval = 500, display = display.data_window)
plot(basis, "Basis", color=#2962FF, offset = offset)
p1 = plot(upper, "Upper", color=#F23645, offset = offset)
p2 = plot(lower, "Lower", color=#089981, offset = offset)
fill(p1, p2, title = "Background", color=color.rgb(33, 150, 243, 95))
Ai Golden Support and Resistance Adaptive Support & Resistance (ADR-scaled ABCD + Breakout/Retest Zones)
What it does
This indicator detects actionable support/resistance zones from swing structure and breakout events, then keeps each zone active until it’s invalidated by price. It adapts zone sensitivity using Average Daily Range (ADR) so the same rules scale across symbols and vol regimes.
Core Logic (high level)
Swing & ABCD pattern seed
Detects alternating pivots (high–low–high–low or low–high–low–high) using a user-selected lookback.
Validates basic AB–BC–CD proportions: BC must retrace a portion of AB; CD must extend BC within a set range.
From a valid sequence, sets a candidate level (top for bearish, bottom for bullish).
Breakout confirmation
A level becomes confirmed when price closes beyond it (crossover/crossunder).
On confirmation, the script draws a dotted reference line and records how many bars elapsed from the seed pivot to breakout. That count defines the lookback window used for local extremes.
Zone construction
Supply (bearish): builds a box around the most recent local range near the bearish seed;
Demand (bullish): builds a box around the most recent local range near the bullish seed.
Each zone’s height is derived from nearby extremes and the seed swing, so boxes reflect local structure rather than fixed pip widths.
Volatility normalization (ADR%)
ADR is computed from daily candles.
The Risk Profile input (“High/Medium/Low”) scales required move sizes using ADR%, and adjusts pivot sensitivity (fewer/more bars).
Higher risk → more sensitive (smaller ADR %, tighter pivot lookback).
Lower risk → stricter filters (larger ADR %, wider pivot lookback).
Explosive-move filter (streak logic)
Searches the seeded lookback for consecutive same-color candles (config via the risk profile).
Requires the cumulative % move of that streak to exceed an ADR-scaled threshold.
When found, the zone is tagged as originating from an “explosive” move (potentially higher reaction probability).
Zone persistence & invalidation
Zones persist and auto-extend to the right until invalidated.
Invalidation occurs when price closes through a rule-based threshold derived from the seed structure (stored per zone).
Once invalidated, the zone is marked inactive and stops updating.
Inputs & Controls
Risk Profile: High / Medium / Low (sets pivot lookback, streak length, and ADR% thresholds).
Labels & Visuals: Toggle labels and level lines; set line width.
Colors/Boxes: Supply (red), Demand (green); dotted breakout references.
No broker/session settings are required; the script adapts per symbol via ADR.
On-Chart Elements
Dotted breakout lines at confirmed levels (with measured bars-to-breakout).
Supply/Demand boxes that extend until invalidation.
Optional labels for clarity; minimal clutter by default.
How to Use
Context: Use higher-TF context for bias; apply zones on your trading TF.
Confluence: Combine zones with your own triggers (structure breaks, rejection wicks, momentum shifts).
Invalidation: If price closes beyond a zone’s invalidation threshold, treat that zone as inactive.
Sensitivity: If too many zones appear, switch to Medium/Low Risk (stricter ADR% & pivots); if too few, use High Risk.
Notes & Limitations
Logic is rule-based; there is no machine learning.
Daily ADR is computed from D timeframe, so intraday charts inherit daily volatility context.
Results vary by symbol and timeframe; validate settings per market.
This is an indicator (no orders or P/L).
Crypto Perp Calc v1Advanced Perpetual Position Calculator for TradingView
Description
A comprehensive position sizing and risk management tool designed specifically for perpetual futures trading. This indicator eliminates the confusion of calculating leveraged positions by providing real-time position metrics directly on your chart.
Key Features:
Interactive Price Selection: Click directly on chart to set entry, stop loss, and take profit levels
Accurate Lot Size Calculation: Instantly calculates the exact position size needed for your margin and leverage
Multiple Entry Support: DCA into positions with up to 3 entry points with customizable allocation
Multiple Take Profit Levels: Scale out of positions with up to 3 TP targets
Comprehensive Risk Metrics: Shows dollar P&L, account risk percentage, and liquidation price
Visual Risk/Reward: Color-coded boxes and lines display your trade setup clearly
Real-time Info Table: All critical position data in one organized panel
Perfect for traders using perpetual futures who need precise position sizing with leverage.
---------
How to Use
Quick Start (3 Clicks)
1. Add the indicator to your chart
2. Click three times when prompted:
First click: Set your entry price
Second click: Set your stop loss
Third click: Set your take profit
3. Read the TOTAL LOTS value from the info table (highlighted in yellow)
4. Use this lot size in your exchange when placing the trade
Detailed Setup
Step 1: Configure Your Account
Enter your account balance (total USDT in account)
Set your margin amount (how much USDT to risk on this trade)
Choose your leverage (1x to 125x)
Select Long or Short position
Step 2: Set Price Levels
Main levels use interactive clicking (Entry, SL, TP)
For multiple entries or TPs, use the settings panel to manually input prices and percentages
Step 3: Read the Results
The info table shows:
TOTAL LOTS - The position size to enter on your exchange
Margin Used - Your actual capital at risk
Notional - Total position value (margin × leverage)
Max Risk - Dollar amount you'll lose at stop loss
Total Profit - Dollar amount you'll gain at take profit
R:R Ratio - Risk to reward ratio
Account Risk - Percentage of account at risk
Liquidation - Price where position gets liquidated
Step 4: Advanced Features (Optional)
Multiple Entries (DCA):
Enable "Use Multiple Entries"
Set up to 3 entry prices
Allocate percentage for each (must total 100%)
See individual lot sizes for each entry
Multiple Take Profits:
Enable "Use Multiple TPs"
Set up to 3 TP levels
Allocate percentage to close at each level (must total 100%)
View profit at each target
Visual Elements
Blue lines/labels: Entry points
Red lines/labels: Stop loss
Green lines/labels: Take profit targets
Colored boxes: Visual risk (red) and reward (green) zones
Info table: Can be positioned anywhere on screen
Alerts
Set price alerts for:
Entry zones reached
Stop loss approached
Take profit levels hit
Works with TradingView's alert system
Tips for Best Results
Always verify the lot size matches your intended risk
Check the liquidation price stays far from your stop loss
Monitor the account risk percentage (recommended: keep under 2-3%)
Use the warning indicators if risk exceeds margin
For quick trades, use single entry/TP; for complex strategies, use multiple levels
Example Workflow
Find your trade setup using your analysis
Add this indicator and click to set levels
Check risk metrics in the table
Copy the TOTAL LOTS value
Enter this exact position size on your exchange
Set alerts for key levels if desired
This tool bridges the gap between TradingView charting and exchange execution, ensuring your position sizing is always accurate when trading with leverage.
Disclaimer, this was coded with help of AI, double check calculations if they are off.
Divergence & Volume ThrustThis document provides both user and technical information for the "Divergence & Volume Thrust" (DVT) Pine Script indicator.
Part 1: User Guide
1.1 Introduction
The DVT indicator is an advanced tool designed to automatically identify high-probability trading setups. It works by detecting divergences between price and key momentum oscillators (RSI and MACD).
A divergence is a powerful signal that a trend might be losing strength and a reversal is possible. To filter out weak signals, the DVT indicator includes a Volume Thrust component, which ensures that a divergence is backed by significant market interest before it alerts you.
🐂 Bullish Divergence: Price makes a new low, but the indicator makes a higher low. This suggests selling pressure is weakening.
🐻 Bearish Divergence: Price makes a new high, but the indicator makes a lower high. This suggests buying pressure is weakening.
1.2 Key Features on Your Chart
When you add the indicator to your chart, here's what you will see:
Divergence Lines:
Bullish Lines (Teal): A line will be drawn on your chart connecting two price lows that form a bullish divergence.
Bearish Lines (Red): A line will be drawn connecting two price highs that form a bearish divergence.
Solid lines represent RSI divergences, while dashed lines represent MACD divergences.
Confirmation Labels:
"Bull Div ▲" (Teal Label): This label appears below the candle when a bullish divergence is detected and confirmed by a recent volume spike. This is a high-probability buy signal.
"Bear Div ▼" (Red Label): This label appears above the candle when a bearish divergence is detected and confirmed by a recent volume spike. This is a high-probability sell signal.
Volume Spike Bars (Orange Background):
Any price candle with a faint orange background indicates that the volume during that period was unusually high (exceeding the average volume by a multiplier you can set).
1.3 Settings and Configuration
You can customize the indicator to fit your trading style. Here's what each setting does:
Divergence Pivot Lookback (Left/Right): Controls the sensitivity of swing point detection. Lower numbers find smaller, more frequent divergences. Higher numbers find larger, more significant ones. 5 is a good starting point.
Max Lookback Range for Divergence: How many bars back the script will look for the first part of a divergence pattern. Default is 60.
Indicator Settings (RSI & MACD):
You can toggle RSI and MACD divergences on or off.
Standard length settings for each indicator (e.g., RSI Length 14, MACD 12, 26, 9).
Volume Settings:
Use Volume Confirmation: The most important filter. When checked, labels will only appear if a volume spike occurs near the divergence.
Volume MA Length: The lookback period for calculating average volume.
Volume Spike Multiplier: The core of the "Thrust" filter. A value of 2.0 means volume must be 200% (or 2x) the average to be considered a spike.
Visuals: Customize colors and toggle the confirmation labels on or off.
1.4 Strategy & Best Practices
Confluence is Key: The DVT indicator is powerful, but it should not be used in isolation. Look for its signals at key support and resistance levels, trendlines, or major moving averages for the highest probability setups.
Wait for Confirmation: A confirmed signal (with a label) is much more reliable than an unconfirmed divergence line.
Context Matters: A bullish divergence in a strong downtrend might only lead to a small bounce, not a full reversal. Use the signals in the context of the overall market structure.
Set Alerts: Use the TradingView alert system with this script. Create alerts for "Confirmed Bullish Divergence" and "Confirmed Bearish Divergence" to be notified of setups automatically.
Money Flow | Lyro RSMoney Flow | Lyro RS
The Money Flow is a momentum and volume-driven oscillator designed to highlight market strength, exhaustion, and potential reversal points. By combining smoothed Money Flow Index readings with volatility, momentum, and RVI-based logic, it offers traders a deeper perspective on money inflow/outflow, divergences, and overbought/oversold dynamics.
Key Features
Smoothed Money Flow Line
EMA-smoothed calculation of the MFI for noise reduction.
Clear thresholds for overbought and oversold zones.
Normalized Histogram
Histogram plots show bullish/bearish money flow pressure.
Color-coded cross logic for quick trend assessment.
Relative Volatility Index (RVI) Signals
Detects overbought and oversold conditions using volatility-adjusted RVI.
Plots ▲ and ▼ markers at exhaustion points.
Momentum Strength Gauge
Calculates normalized momentum strength from ROC and volume activity.
Displays percentage scale of current momentum force.
Divergence Detection
Bullish divergence: Price makes lower lows while money flow makes higher lows.
Bearish divergence: Price makes higher highs while money flow makes lower highs.
Plotted as diamond markers on the oscillator.
Signal Dashboard (Table Overlay)
Displays real-time status of Money Flow signals, volatility, and momentum.
Color-coded readouts for instant clarity (Long/Short/Neutral + Momentum Bias).
How It Works
Money Flow Calculation – Applies EMA smoothing to MFI values.
Normalization – Scales oscillator between relative high/low values.
Trend & Signals – Generates bullish/bearish signals based on midline and histogram cross logic.
RVI Integration – Confirms momentum exhaustion with overbought/oversold markers.
Divergences – Identifies hidden market imbalances between price and money flow.
Practical Use
Trend Confirmation – Use midline crossovers with histogram direction for money flow bias.
Overbought/Oversold Reversals – Watch RVI ▲/▼ markers for exhaustion setups.
Momentum Tracking – Monitor momentum percentage to gauge strength of current trend.
Divergence Alerts – Spot early reversal opportunities when money flow diverges from price action.
Customization
Adjust length, smoothing, and thresholds for different markets.
Enable/disable divergence detection as needed.
Personalize visuals and dashboard display for cleaner charts.
⚠️ Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used alongside other methods and proper risk management. The creator is not responsible for financial decisions made using this script.
Trend Fibo 1.618FIBONACCI TRENDLINE BREAKOUT SYSTEM
Advanced indicator combining dynamic trendlines with ZigZag-based Fibonacci projections for precise entry and exit points.
KEY FEATURES:
- Dynamic trendline detection using pivot analysis
- ZigZag-based Fibonacci level calculations
- Multiple take profit targets (1.618, 2.618, 3.618, 4.618)
- Automatic breakout signal generation
- Historical price level visualization
METHODOLOGY:
Detects trendline breakouts and automatically draws Fibonacci retracements/extensions based on recent ZigZag swing points. Provides clear entry zones and multiple profit targets.
USAGE:
Best suited for swing trading on higher timeframes (4H-Daily). Combine with trend analysis for optimal results.
DISCLAIMER: Educational purposes only. Past performance doesn't guarantee future results.
Advanced Dynamic Swing Anchored VWAP (Adaptive, Smart Pivots)🔹 Overview
The Advanced Dynamic Swing Anchored VWAP is a powerful trading tool that automatically anchors VWAP to detected swing highs and lows, while adapting dynamically to market volatility using ATR-based tracking.
Unlike static VWAP lines, this adaptive version provides smarter trend tracking, real-time pivot detection, and swing labeling (HH, HL, LH, LL) to help traders identify market structure shifts with precision.
✨ Key Features
✅ Swing Pivot Detection – Automatic detection of swing highs & lows based on your chosen period.
✅ Adaptive ATR Tracking – VWAP responsiveness adjusts dynamically with volatility.
✅ Smart Labels – Marks pivots with HH, HL, LH, LL to track market structure.
✅ Trend-Based Coloring – VWAP changes color based on bullish or bearish direction.
✅ Alerts – Get notified instantly on new swing pivots or trend shifts.
✅ Multi-Market Ready – Works across Forex, Crypto, Stocks, and Indices.
🔍 How to Use
Identify Trend Direction – Green VWAP line = bullish swings; Red = bearish swings.
Watch Pivots – HH/HL indicate bullish structure, while LH/LL indicate bearish structure.
Combine With Confirmation – Best used with RSI, MACD, or Price Action for confluence.
Set Alerts – Never miss a trend shift with built-in TradingView alerts.
🎯 Best For
Swing traders looking for precision pivot detection.
Trend-following traders using VWAP-based support/resistance.
Scalpers who need adaptive VWAP levels that adjust to volatility.
Multi-asset traders (Crypto, Forex, Stocks, Futures).
📈 Why This Indicator?
The standard VWAP is static. Anchored VWAP requires manual anchoring. This advanced version automates the process, adapts to volatility, and visually shows pivots for smarter entries and exits.
By combining anchored VWAP logic with adaptive ATR filtering, this tool gives a next-gen trading edge for both discretionary and systematic traders.
RSI Divergence Indicator with Strength and LabelsHere's a complete Pine Script (version 5) for a TradingView indicator that detects and plots bullish and bearish RSI divergences. This is based on a proven method that tracks price and RSI swings while RSI is in oversold/overbought territories, then checks for mismatched highs/lows within a configurable bar distance.
Multi-Timeframe Support & Resistance Lines with alerts🚨 New Early Warning Alerts:
⚡ Approaching Resistance Alert
Triggers when: High gets within your specified distance of resistance (but hasn't touched yet)
Message: "Price approaching resistance level - watch for reaction"
Use case: Get ready for potential rejection or breakout
⚡ Approaching Support Alert
Triggers when: Low gets within your specified distance of support (but hasn't touched yet)
Message: "Price approaching support level - watch for reaction"
Use case: Get ready for potential bounce or breakdown
⚙️ New Setting:
Alert Distance (%): How close price needs to get before alerting (default: 0.1%)
0.1% = Very close, fewer false alerts
0.5% = Medium distance, more advance warning
1.0% = Far distance, maximum advance warning
📊 Complete Alert System:
"Approaching Resistance" - Early warning before touch
"Approaching Support" - Early warning before touch
"Resistance Breakout" - Actual break above
"Support Breakdown" - Actual break below
Algo + Trendlines :: Medium PeriodThis indicator helps me to avoid overlooking Trendlines / Algolines. So far it doesn't search explicitly for Algolines (I don't consider volume at all), but it's definitely now already not horribly bad.
These are meant to be used on logarithmic charts btw! The lines would be displayed wrong on linear charts.
The biggest challenge is that there are some technical restrictions in TradingView, f. e. a script stops executing if a for-loop would take longer than 0.5 sec.
So in order to circumvent this and still be able to consider as many candles from the past as possible, I've created multiple versions for different purposes that I use like this:
Algo + Trendlines :: Medium Period : This script looks for "temporary highs / lows" (meaning the bar before and after has lower highs / lows) on the daily chart, connects them and shows the 5 ones that are the closest to the current price (=most relevant). This one is good to find trendlines more thoroughly, but only up to 4 years ago.
Algo + Trendlines :: Long Period : This version looks instead at the weekly charts for "temporary highs / lows" and finds out which days caused these highs / lows and connects them, Taking data from the weekly chart means fewer data points to check whether a trendline is broken, which allows to detect trendlines from up to 12 years ago! Therefore it misses some trendlines. Personally I prefer this one with "Only Confirmed" set to true to really show only the most relevant lines. This means at least 3 candle highs / lows touched the line. These are more likely stronger resistance / support lines compared to those that have been touched only twice.
Very important: sometimes you might see dotted lines that suddenly stop after a few months (after 100 bars to be precise). This indicates you need to zoom further out for TradingView to be able to load the full line. Unfortunately TradingView doesn't render lines if the starting point was too long ago, so this is my workaround. This is also the script's biggest advantage: showing you lines that you might have missed otherwise since the starting bars were outside of the screen, and required you to scroll f. e back to 2015..
One more thing to know:
Weak colored line = only 2 "collision" points with candle highs/lows (= not confirmed)
Usual colored line = 3+ "collision" points (= confirmed)
Make sure to move this indicator above the ticker in the Object Tree, so that it is drawn on top of the ticker's candles!
More infos: www.reddit.com
EMA Percentile Rank [SS]Hello!
Excited to release my EMA percentile Rank indicator!
What this indicator does
Plots an EMA and colors it by short-term trend.
When price crosses the EMA (up or down) and remains on that side for three subsequent bars, the cross is “confirmed.”
At the moment of the most recent cross, it anchors a reference price to the crossover point to ensure static price targets.
It measures the historical distance between price and the EMA over a lookback window, separately for bars above and below the EMA.
It computes percentile distances (25%, 50%, 85%, 95%, 99%) and draws target bands above/below the anchor.
Essentially what this indicator does, is it converts the raw “distance from EMA” behavior into probabilistic bands and historical hit rates you can use for targets, stop placement, or mean-reversion/continuation decisions.
Indicator Inputs
EMA length: Default is 21 but you can use any EMA you prefer.
Lookback: Default window is 500, this is length that the percentiles are calculated. You can increase or decrease it according to your preference and performance.
Show Accumulation Table: This allows you to see the table that shows the hits/price accumulation of each of the percentile ranges. UCL means upper confidence and LCL means lower confidence (so upper and lower targets).
About Percentiles
A percentile is a way of expressing the position of a value within a dataset relative to all the other values.
It tells you what percentage of the data points fall at or below that value.
For example:
The 25th percentile means 25% of the values are less than or equal to it.
The 50th percentile (also called the median) means half the values are below it and half are above.
The 99th percentile means only 1% of the values are higher.
Percentiles are useful because they turn raw measurements into context — showing how “extreme” or “typical” a value is compared to historical behavior.
In the EMA Percentile Rank indicator, this concept is applied to the distance between price and the EMA. By calculating percentile distances, the script can mark levels that have historically been reached often (low percentiles) or rarely (high percentiles), helping traders gauge whether current price action is stretched or within normal bounds.
Use Cases
The EMA Percentile Rank indicator is best suited for traders who want to quantify how far price has historically moved away from its EMA and use that context to guide decision-making.
One strong use case is target setting after trend shifts: when a confirmed crossover occurs, the percentile bands (25%, 50%, 85%, 95%, 99%) provide statistically grounded levels for scaling out profits or placing stops, based on how often price has historically reached those distances. This makes it valuable for traders who prefer data-driven risk/reward planning instead of arbitrary point targets. Another use case is identifying stretched conditions — if price rapidly tags the 95% or 99% band after a cross, that’s an unusually large move relative to history, which could signal exhaustion and prompt mean-reversion trades or protective actions.
Conversely, if the accumulation table shows price frequently resides in upper bands after bullish crosses, traders may anticipate continuation and hold positions longer . The indicator is also effective as a trend filter when combined with its EMA color-coding : only taking trades in the trend’s direction and using the bands as dynamic profit zones.
Additionally, it can support multi-timeframe confluence (if you align your chart to the timeframes of interest), where higher-timeframe trend direction aligns with lower-timeframe percentile behavior for higher-probability setups. Swing traders can use it to frame pullbacks — entering near lower percentile bands during an uptrend — while intraday traders might use it to fade extremes or ride breakouts past the median band. Because the anchor price resets only on EMA crosses, the indicator preserves a consistent reference for ongoing trades, which is especially helpful for managing swing positions through noise .
Overall, its strength lies in transforming raw EMA distance data into actionable, probability-weighted levels that adapt to the instrument’s own volatility and tendencies .
Summary
This indicator transforms a simple EMA into a distribution-aware framework: it learns how far price tends to travel relative to the EMA on either side, and turns those excursions into percentile bands and historical hit rates anchored to the most recent cross. That makes it a flexible tool for targets, stops, and regime filtering, and a transparent way to reason about “how stretched is stretched?”—with context from your chosen market and timeframe.
I hope you all enjoy!
And as always, safe trades!
Volatility Forecast/*==============================================================================
Volatility Forecast — Publishable Documentation
Author: @BB_9791
License: Mozilla Public License 2.0
WHAT THIS INDICATOR SHOWS
- A daily volatility estimate in percent points, called sigma_day.
- A slow volatility anchor, the 10-year EMA of sigma_day.
- A blended volatility series in percent points:
sigma_blend = (1 − p) * sigma_day + p * EMA_10y(sigma_day)
where p is the Slow weight %, default 30.
- Optional annualization by multiplying by 16, this is a daily-to-annual
conversion used by Robert Carver in his writings.
METHODOLOGY, CREDIT
The estimator follows the approach popularized by Robert Carver
("Systematic Trading", "Advanced Futures Trading Strategies", blog qoppac).
Current daily volatility is computed as an exponentially weighted standard
deviation of daily percent returns, with alpha = 2 / (span + 1).
The slow leg is a long EMA of that volatility series, about 10 years.
The blend uses fixed weights. This keeps the slow leg meaningful through
large price level changes, since the blend is done in percent space first.
MATH DETAILS
Let r_t be daily percent return:
r_t = 100 * (Close_t / Close_{t−1} − 1)
EWMA mean and variance:
m_t = α * r_t + (1 − α) * m_{t−1}
v_t = α * (r_t − m_t)^2 + (1 − α) * v_{t−1}
where α = 2 / (span_current + 1)
Current daily sigma in percent points:
sigma_day = sqrt(v_t)
Slow leg:
sigma_10y = EMA(sigma_day, span_long)
Blend:
sigma_blend = (1 − p) * sigma_day + p * sigma_10y
Annualized option:
sigma_ann = 16 * sigma_blend
INPUTS
- Threshold (percent points): horizontal guide level on the chart.
- Short term span (days): EW stdev span for sigma_day.
- Long term span (days): EMA span for the slow leg, choose about 2500 for 10 years.
- Slow weight %: p in the blend.
- Annualize (x16): plot daily or annualized values.
- Show components: toggles Current and 10y EMA lines.
- The script uses the chart symbol by default.
PLOTS
- Blended σ% as the main line.
- Optional Current σ% and 10y EMA σ%.
- Editable horizontal threshold line in the same units as the plot
(percent points per day or per year).
- Optional EMA 9 and EMA 20 cloud on the blended series, green for uptrend
when EMA 9 is above EMA 20, red otherwise. Opacity is configurable.
HOW TO READ
- Values are percent points of movement per day when not annualized,
for example 1.2 means about 1.2% typical daily move.
- With annualize checked, values are percent points per year, for example 18
means about 18% annualized volatility.
- Use the threshold and the EMA cloud to mark high or low volatility regimes.
NOTES
- All calculations use daily data via request.security at the chart symbol.
- The blend is done in percent space, then optionally annualized, which avoids
bias from the price level.
- This script does not produce trading signals by itself, it is a risk and
regime indicator.
CREDITS
Volatility forecasting method and scaling convention credited to Robert Carver.
See his books and blog for background and parameter choices.
VERSION
v1.0 Initial public release.
==============================================================================*/
FVG SuiteSupercharge your charts with FVG Suite! Detect Smart Money structures, Fair Value Gaps, and key Multi-Timeframe levels—all in one powerful indicator. Perfect for both intraday and swing traders.
⚡ Highlights:
📈 Smart Money Structure: BoS & CHoCH signals with customizable colors and sensitivity.
💎 Fair Value Gaps: Bullish & Bearish FVGs with filters, max extension, and automatic cleanup.
🕒 Multi-Timeframe Levels: Daily, Weekly, and Monthly Highs & Lows with solid/dashed/dotted lines.
📊 Volume Activity: Real-time 4H & 24H volume analysis in a neat table.
🎨 Fully Customizable: Colors, transparency, and labels for a clean, easy-to-read chart.
Make smarter trade decisions with clear market structure insights and gap detection! 🚀
Quantum Edge Scalper - Adaptive Precision Trading [KedArc Quant]Strategy Overview
Quantum Edge Scalper is a multi-regime intraday strategy engineered for adaptability across equities. It fuses EMA trend & slope, RSI sanity checks, ATR-based volatility gating, and candle-shape filters. Regime detection (ATR%% z-score) tunes thresholds on-the-fly, while an optional OSS — Oversold Short Override captures late-session breakdowns. Robust day-level controls include trade caps, cooldowns, and loss-streak stops. A compact panel summarizes live session stats.
Key Features
• Preset modes: Aggressive / Aggressive+ / Conservative / Hybrid / Custom.
• EMA Fast/Slow trend filter + EMA-separation slope gate.
• ATR volatility floor (percent-of-price) to avoid dead markets.
• Candle-shape and wick-ratio filters to curb false breakouts.
• Regime adaptation using ATR% z-score (HIGH / LOW / NEUTRAL).
• Hybrid+ LOW-regime extras: tighter SL, adaptive TP, mid-session pause, loss-streak blocker.
• OSS (Oversold Short Override): validators for micro-pullback, range expansion, structure break, and time window.
• Daily caps & loss-streak protection; cooldown management post wins/losses.
• Clean summary labels + compare panel; optional debug labels.
Nakurviator (for Long @ 5m interval) v1.6.0Nakurviator v1.6.4 represents a refined evolution of our proprietary trading indicator, meticulously calibrated for long entry signals while operating exclusively on 5-minute timeframes. This sophisticated system leverages higher timeframe data through advanced multi-timeframe analysis, incorporating 1-hour, 4-hour, and daily perspectives to enhance signal accuracy and market context. The indicator employs a sophisticated scoring mechanism that combines technical analysis with supply/demand zones, ensuring optimal entry points through comprehensive market structure analysis. With its exclusive 5M operation requirement and enhanced "Source Timeframes" configuration, Nakurviator delivers precision-engineered long signals backed by robust higher timeframe validation.
The indicator contains over 1000 lines of code and is highly configurable.
SETTINGS:
Source Timeframes
Enable 1h - Enables signal analysis on 1-hour timeframes.
Enable 4h - Enables signal analysis on 4-hour timeframes.
Enable 1d - Enables signal analysis on daily timeframes.
POI
POI display mode - Determines how POI zones are displayed (Stacked/Exclusive).
POI detection mode - Sets POI zone detection mode (Auto/Auto+Manual/Manual/Simple).
HTF OB body multiplier - Multiplier for HTF zone candle body size.
HTF OB lookback for avg body - Number of bars back to calculate average body.
Max bars in POI zone - Maximum number of bars in POI zone.
HTF OB buffer (ATR mult) - HTF zone buffer expressed as ATR multiplier.
Manual POI
Manual POI 1 active - Enables manual POI zone 1.
Manual POI 1 low - Lower level of manual POI zone 1.
Manual POI 1 high - Upper level of manual POI zone 1.
Manual POI 1 weight - Weight of manual POI zone 1 (0-35).
Manual POI 1 type - Type of manual POI zone 1 (Bull/Bear/Both).
Manual POI 2 active - Enables manual POI zone 2.
Manual POI 2 low - Lower level of manual POI zone 2.
Manual POI 2 high - Upper level of manual POI zone 2.
Manual POI 2 weight - Weight of manual POI zone 2 (0-35).
Manual POI 2 type - Type of manual POI zone 2 (Bull/Bear/Both).
Indicators
ATR - Period length for Average True Range.
RSI - Period length for Relative Strength Index.
MACD fast - Fast MACD line.
MACD slow - Slow MACD line.
MACD signal - MACD signal line.
MFI - Period length for Money Flow Index.
Thresholds
Displacement body >= ATR mult - ATR multiplier for candle body displacement.
FVG min-gap (ATR mult) - Minimum FVG gap expressed as ATR multiplier.
CHoCH pivot >= ATR mult - ATR multiplier for Change of Character pivots.
Trend EMA length - EMA length for trend (10-400).
Sweep lookback (bars back) - Number of bars back for sweep analysis (3-50).
Require sweep for signals - Requires sweep for signal generation.
FVG
Include micro (1-candle) gaps - Includes micro single-candle gaps.
Entry zone % (50..66) - Entry zone percentage (50-66%).
Show FVG zones - Displays FVG zones on chart.
SMT
Enable SMT - Enables SMT (Smart Money Tracking) analysis.
Benchmark - Benchmark instrument for SMT.
Lookback - Lookback period for SMT analysis (min. 5).
Asymmetry threshold - Asymmetry threshold for SMT (min. 0.01).
HTF trend
HTF TF for trend - HTF timeframe for trend analysis.
HTF EMA length - HTF EMA length (min. 20).
HTF trend bias (+/-) - HTF trend bias (0-30).
HTF EMA tolerance (ATR) - HTF EMA tolerance expressed as ATR.
Scoring/Display
Grade A >= - Threshold for Grade A (50-100).
Grade B >= - Threshold for Grade B (20-80).
Require POI for signals - Requires POI for signal generation.
Require POI only if counter-HTF - Requires POI only for counter-HTF signals.
Block LONG in PREMIUM zone - Blocks LONG signals in PREMIUM zone.
Show debug labels - Displays debug labels.
Show POI zones on chart - Displays POI zones on chart.
Show tooltip on signals - Displays tooltip on signals.
Max signals / day - Maximum number of signals per day (1-40).
Min distance same-dir (ATR) - Minimum distance between same-direction signals.
Max 1 signal per bar (all TF) - Maximum 1 signal per bar (all timeframes).
Counter-HTF requires Grade A - Counter-HTF requires Grade A rating.
Cooldown (bars) - Cooldown period between signals (min. 1).
No-flip window (bars) - No-flip window (min. 1).
Alerts 1h - Alerts for 1-hour timeframes.
Alerts 4h - Alerts for 4-hour timeframes.
Alerts 1d - Alerts for daily timeframes.
Combined alert (any TF) - Combined alert for all timeframes.
PT FinderThis is mostly helpful to find potential price targets for Daytrades on the daily chart (if stronger resistances / supports are too far away).
Shows highs / lows of nearby "pivot" candles (higher high / lower low than both candles around) - depending on expected trade direction. Based on my experience these can be potential (albeit weak) resistance / support.
If it shows values only in the wrong trade direction: set a checkmark at "Invert bullish / bearish price targets" in the indicator settings
Also shows the ADR (blue line = yesterday's close MINUS Average Day Range) - which is helpful for Daytrades to see what price movement you could potentially expect for the day!
As a nice bonus it also shows gaps as yellow areas - in case you maybe missed them because you zoomed in / out too much on your daily chart.
More infos: www.reddit.com
Liquidity levels + Order BlocksThis script mark liquidity levels, and monthly, weekly and daily candle open. The order blocks indicator is on construction.
SMA MAD SuperTrend | OquantThe SMA MAD SuperTrend | Oquant is an trend-following indicator designed to help traders identify potential trend directions and reversals using a unique combination of a Simple Moving Average (SMA), Mean Absolute Deviation (MAD), and a SuperTrend mechanism. This script aims to provide clear visual signals for trend entries and exits, making it suitable for traders looking to capture trends.
This indicator innovatively combines the smoothing properties of an SMA with the volatility-adaptive qualities of MAD to create dynamic SuperTrend bands. Unlike traditional SuperTrend indicators that rely on Average True Range (ATR) for volatility, this script uses Mean Absolute Deviation(MAD) to measure the average absolute deviation from the mean price, providing a different perspective on price volatility. The result is a SuperTrend system that adapts to market conditions with a focus on price deviation, offering a unique tool for trend detection.
Components and Calculations
Simple Moving Average (SMA):
The SMA is a widely used indicator that calculates the average of a specified number of closing prices. It smooths price data to identify the overall trend direction. In this script, the SMA serves as the baseline for calculating dynamic upper and lower bands.
Mean Absolute Deviation (MAD):
MAD measures the average absolute deviation of the price from its mean. It quantifies volatility by calculating how far prices deviate from the mean price, offering an alternative to ATR.
SuperTrend Mechanism:
This SuperTrend indicator generates dynamic upper and lower bands around the Simple Moving Average (SMA) using mean absolute deviation as measure of volatility.
It tracks trend direction by comparing the close price to the bands:
If the price crosses above the upper band, the trend turns bullish, and the SuperTrend follows the lower band.
If the price crosses below the lower band, the trend turns bearish, and the SuperTrend follows the upper band.
The bands adjust based on their previous values, updating only when the price crosses a band or the band shifts in the correct direction, reducing false signals and ensuring stable trend detection.
How to Use the Indicator
Trend Signals:
Green Line: Indicates a bullish trend (price above the SuperTrend line).
Purple Line: Indicates a bearish trend (price below the SuperTrend line).
Bar and Candle Coloring: Bars and candles are colored green for bullish trends and purple for bearish trends, making it easy to visualize trend direction.
Filled Areas: The area between the price and the SuperTrend line is filled with transparent colors (green for bullish, purple for bearish) to highlight trend.
Inputs:
Source: Choose the price data for calculations.
SMA Length: Adjust the period for the SMA. Longer periods smooth the trend further.
MAD Length: Set the period for MAD calculation. Shorter periods make the MAD more sensitive.
Factor: Control the distance of the SuperTrend bands from the SMA. Higher values widen the bands, reducing sensitivity to price fluctuations.
Alerts:
The script includes alert conditions for trend changes:
SMA MAD SuperTrend Long: Triggered when the trend turns bullish.
SMA MAD SuperTrend Short: Triggered when the trend turns bearish.
Set up alerts in TradingView to receive notifications for these conditions.
Why Use This Script?
The SMA MAD SuperTrend | Oquant offers a fresh take on trend-following by integrating SMA as baseline and MAD for volatility measurement, providing an alternative to ATR-based SuperTrend indicators. Its clear visual signals, customizable inputs, and alert conditions make it versatile for traders of all levels.
⚠️ Disclaimer: This indicator is intended for educational and informational purposes only. Trading/investing involves risk, and past performance does not guarantee future results. Always test and evaluate indicators/strategies before applying them in live markets. Use at your own risk.