Market Structure Pivots TrendThis indicator identifies and visualizes key market structure by plotting confirmed, non-repainting pivot points. It goes beyond simple markers by classifying the pivots, extending dynamic support/resistance lines, and providing a visual representation of the current trend state.
Key Features:
Non-Repainting Pivot Detection:
Uses a standard lookback method (left and right bars) to identify historical pivot points.
Note on Confirmation: Pivots are only confirmed after the Pivot Right Bars input has passed. This is essential for ensuring the signal is non-repainting, but it introduces an inherent lag.
Automatically classifies the sequence of pivots according to Dow Theory: Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL).
Pivot Classification Filter:
Price Tolerance Filter: A user-defined percentage tolerance filters out insignificant market noise. A pivot is only classified as 'Higher' or 'Lower' if its price exceeds the previous one by more than the set tolerance, leading to more robust signals.
Equal Pivot Detection: The tolerance also enables the detection of Equal Highs (EH) and Equal Lows (EL), highlighting consolidation zones.
Dynamic Support & Resistance Lines:
When enabled, the indicator extends a horizontal line from the most recent confirmed pivot high and low.
These lines update in real-time, providing clear S/R levels.
Lines automatically terminate if the price decisively breaks through them or if a new pivot of the same type is formed.
Trend State Visualization:
A built-in state machine analyzes the sequence of pivots and breaks to determine the current market trend (Uptrend, Downtrend, or Neutral).
Plots a dynamic step-line based on recent highs/lows to visually represent the current trend state.
Full Customization & Alerts:
Display Options: Choose between simple triangles or detailed text labels that show the pivot type, price, and the absolute or relative change from the previous pivot of the same type.
Visual Styling: Full control over colors for all six pivot types (HH, LH, EH, LL, HL, EL) and line styles.
Comprehensive Alerts: Set up alerts for every new pivot formation (e.g., HH, LL), for S/R line breaks, and for changes in the overall trend state (Up, Down, Neutral).
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
指標和策略
SPX 0dte Options TableSPX 0DTE Options Table Indicator 📊
Version: Pine Script v6
Description: A real-time table overlay for 0DTE SPX options, showing strikes, prices, and volumes for calls/puts. Perfect for intraday traders spotting high-volume opportunities!
Perfect for fast look up for options premium ( Real time data required $2/month)
Key Features
Dynamic Table: Displays current SPX price, call/put strikes (e.g., 5700C/5600P), last prices, and volumes in a clean overlay.
Custom Strikes: 1-15 per side (default: 8), with increments of 5+ (default: 10). Strikes rounded to multiples of 10.
Strike Offset: Fixed (default: 0) or dynamic based on remaining trading hours (US session: 9:30 AM-4:00 PM ET, e.g., 6+ hours = ±40).
SPX Handling: Fixed value (default: 6850) or dynamic from open (default: 60-min timeframe).
Data Fetch: OPRA tickers on last bar; customizable timeframe (default: 1-min).
Volume Alerts: Trigger on > threshold (default: 600) if price ≥$1. JSON alerts with ET timestamp.
Customization: Table position, colors, text size (tiny/small/normal/large).
Optimizations: Array-based; weekend-aware; real-time focus.
Limitations: Needs OPRA data access; no historicals; use fixed SPX to avoid open-update errors.
Camarilla Pivot Plays (Lite) [BruzX]█ OVERVIEW
This indicator implements the Camarilla Pivot Points levels and a system for suggesting particular plays. It only 3rd, 4th, and 6th levels, as these are the only ones used by the system. It also optionally shows the Central Pivot Range, which is in fact between S2 and R2. In total, there are 12 possible plays, grouped into two groups of six. The algorithm evaluates in real-time which plays fulfil their precondition and shows the candidate plays. The user must then decide if and when to take the play.
█ CREDITS
The Camarilla pivot plays are defined in a strategy developed by Thor Young, and the whole system is explained in his book "A Complete Day Trading System". This description is self-sufficient for effective use.
█ FEATURES
Display the 3rd, 4th and 6th Camarilla pivot levels
Works for stocks, futures, indices, forex and crypto
Automatically switches between RTH and ETH data based on criteria defined by the system.
Option to force RTH/ETH data and force a close price to be used in the calculation.
Preconditions for the plays can be toggled on/off
Works correctly on both RTH and ETH charts
Well-documented options tooltips
Well-documented and high-quality open-source code for those who are interested
█ HOW TO USE
The defaults work well; at a minimum, just add the indicator and watch the plays being called. For US futures, you will probably want to chat the "Timezone for sessions" to New York and the regular session times to 09:30 - 16:00. The following diagram shows its key features.
By default, the indicator draws plays 1 days back; this can be changed up to 20 days. The labels can be shifted left/right using the "label offset" option to avoid overlapping with other labels in this indicator or those of another indicator.
An information box at the top-right of the chart shows:
The data currently in use for the main pivots. This can switch in the pre-market if the H/L range exceeds the previous day's H/L, and if it does, you will see that switch at the time that it happens
Whether the current day's pivots are in a higher or lower range compared to the previous day's.
The width of the pivots compared to the previous day
The current candidate plays fulfilling preconditions. You then need to watch the price action to decide whether to take the play.
The resistance pivots are all drawn in the same colour (red by default), as are the support pivots (green by default). You can change the resistance and support colours, but it is not possible to have different colours for different levels of the same kind.
█ CONCEPTS
The indicator is focused around daily Camarilla pivots and evaluates the preconditions for 12 possible plays: 6 when in a higher range, 6 when in a lower range. The plays are labelled by two letters—the first indicates the range, the second indicates the play—as shown in this diagram:
The pivots can be calculated using only RTH (Regular Trading Hours) data, or ETH (Extended Trading Hours) data, which includes the pre-market and post-market. The indicator implements logic to automatically choose the correct data, based on the rules defined by the strategy. This is user-overridable. With the default options, ETH will be used when the H/L range in the previous day's post-market or current day's pre-market exceeds that of the previous day's regular market. In auto mode, the chosen pivots are considered the main pivots for that day and are the ones used for play evaluation. The "other" pivots can also be shown—"other" here meaning using ETH data when the main pivots use RTH data, and vice versa.
The plays must fulfil a set of preconditions. There are preconditions for valid region and range, price sweeps into levels, correct pivot width, opening position, price action, and whether neutral range plays and premarket plays are enabled. When all the preconditions are fulfilled, the play will be shown as a candidate.
█ NOTE FOR FUTURES
Futures don't officially have a pre-market or post-market like equities. Let's take ES on CME as an example. It trades from 18:00 ET Sunday to 17:00 Friday (ET), with a daily pause between 17:00 and 18:00 ET. However, most of the trading activity is done between 09:30 and 16:00, which you can tell from the volume spikes at those times, and this coincides with NYSE/NASDAQ regular hours. So we define a pseudo-pre-market from 18:00 the previous day to 09:30 on the current day, then a pseudo-regular market from 08:30 to 16:00, then a pseudo-post-market from 16:00 to 17:00. The indicator then works exactly the same as with equities—all the options behave the same, just with different session times defined for the pre-, regular, and post-market, with "RTH" meaning just the regular market and "ETH" meaning all three.
█ LIMITATIONS
The pivots are very close to those shown in DAS Trader Pro. They are not to-the-cent exact, but within a few cents. The reasons are:
TradingView provides free real-time data from CBOE One, not full exchange data (you can pay for this though, and it's not expensive), and
the close/high/low are taken from the intraday timeframe you are currently viewing, not daily data—which are very close, but often not exactly the same. For example, the high on the daily timeframe may differ slightly from the daily high you'll see on an intraday timeframe.
Despite these caveats, occasionally large spikes will be seem in one platform and not the other (even with paid data), or the spikes will reach significantly difference prices. Where these spikes create the daily high or low, this can cause significantly different pivots levels. The more traded the stock is, the less the difference tends to be. Highly traded stocks are usually within a few cents (but even they occasionally have large differences in spikes). There is nothing that can be done about this.
The 6th Camarilla level does not have a standard definition and may not match the level shown on other platforms. It does match the definition used by DAS Trader Pro.
Replay mode for stocks does not work correctly. This is due to some important Pine Script variables provided by the TradingView platform and used by the script not being assigned correct values in replay mode. Futures do not use these variables, so they should work in replay mode.
The indicator is an intraday indicator (despite also being able to show weekly and monthly pivots on an intraday chart). It deactivates on a daily timeframe and higher. Sub-minute timeframes are also not supported.
The indicator was developed and tested for US/European stocks, US futures and EURUSD forex and BTCUSD. It should work as intended for stocks and futures in different countries, and for all forex and crypto, but this is tested as much as the security it was developed for.
█ DISCLAIMER
This indicator is provided for information only and should not be used in isolation without a good understand of the system and without considering other factors. You should not take trades using real money based solely on what this indicator says. Any trades you take are entirely at your own risk.
Combined Fractal + MACD + Volume Alerts - Buy/SellOverview
This TradingView indicator is designed to save traders hours of manual analysis by automatically combining three powerful market signals into a single alert system:
Williams Fractals – identifies local highs and lows in the price structure.
MACD Crosses – confirms momentum direction and potential trend changes.
Volume Spike Detection – ensures signals occur with meaningful market participation.
The indicator will generate buy and sell alerts only when all three conditions align (or within a short configurable window), allowing traders to focus on high-probability setups without monitoring multiple charts and indicators manually.
Key Features
✅ Combined Alerts – Only triggers when Fractal, MACD, and Volume conditions are met.
✅ Early Alerts – Alerts fire as soon as the conditions occur, giving traders a head start for preparation and analysis.
✅ Optional Visuals – Plots buy/sell markers for testing and strategy verification; can be disabled for a cleaner chart.
✅ Flexible Settings – Users can adjust MACD parameters, volume multipliers, and Fractal ranges to suit their trading style.
✅ Timeframe Agnostic – Works on all timeframes; best on intraday and swing-trading charts.
✅ Non-Repainting Alerts – Ensures reliable signals without misleading historical adjustments.
How It Works
Fractals (Price Structure)
The indicator detects local highs and lows (Williams Fractals) over a configurable range of bars.
Fractals act as a support/resistance or trend turning point filter.
MACD (Momentum Confirmation)
Signals are validated with MACD line and Signal line crosses.
Optional conditions: only alert when MACD crosses above zero for a bullish trend or below zero for a bearish trend.
Volume (Participation Check)
The indicator ensures that any signal occurs with above-average volume, filtering weak or low-confidence signals.
Volume threshold is configurable via a multiplier relative to the average over a selected period.
Combined Logic
Buy Alert: Triggered when a bullish Fractal is formed and MACD crosses up and volume spike occurs.
Sell Alert: Triggered when a bearish Fractal is formed and MACD crosses down and volume spike occurs.
Optionally, the conditions can fire within 3 candles of each other, giving some flexibility for real-market timing.
Benefits for Traders
Saves Time: No need to manually watch multiple indicators.
High-Probability Alerts: Combines trend, structure, and volume for robust signals.
Customizable: Adapt to your trading style, instrument, or timeframe.
Testing & Validation: Optional visuals allow backtesting before relying solely on alerts.
Alerts Anywhere: Works on all tickers and chart timeframes supported by TradingView.
How to Use
Apply the indicator to your TradingView chart.
Configure settings:
Fractal Left/Right range (default: 2 bars).
MACD Fast/Slow/Signal lengths.
Volume multiplier to define “spike.”
Optional: enable/disable visuals for testing.
Set up TradingView alerts using the indicator’s prebuilt alert conditions.
Use the alerts as early heads-up for potential trades; validate with your strategy rules or confluences.
Tips for Traders
Start with defaults: Test on a few symbols and intraday charts first.
Adjust volume multiplier: Avoid too many alerts on low-volume symbols.
Backtest visually: Enable markers to verify signals against historical price action.
Combine with your workflow: Use alerts to prioritize charts rather than trade blindly.
Conclusion
This Combined Fractal + MACD + Volume Alerts Indicator is ideal for traders who want to automate the detection of high-probability setups while maintaining flexibility and control. It streamlines decision-making by combining price structure, momentum, and market participation into a single, actionable alert system.
Whether you are a day trader, swing trader, or part-time trader, this indicator saves time, reduces noise, and helps focus on the most promising trading opportunities.
Time & Sales , Volume Delta and CVD, Volume imbalance , Tick
This Pine Script (version 6) creates a comprehensive TradingView indicator combining Time & Sales (Tape) with Volume Delta, Order Flow Pressure Indicator (OFPI), Volume Imbalance detection, Volume Delta (VD) histogram, Cumulative Volume Delta (CVD), TICK.US histogram, and a summary gauge table. It overlays on the chart with customizable tables, boxes, lines, and labels for real-time trade analysis, momentum, imbalances, and volume metrics.
Key Features and Components:
Time & Sales Table: A dynamic table showing recent trades (up to user-defined rows). Columns include Time, Side (▲/▼), Last Price, Volume (or Price-Weighted Volume). Trades below a volume threshold are hidden. Includes a buy/sell scale bar with percentages. Supports timeframe-based or live tick data fetching.
OFPI with Gauge: Calculates net aggressive volume pressure using bar body position, smoothed with T3 moving average. Displays a centered gauge bar (e.g., "░░░|███░░") indicating bullish/bearish momentum or shifts.
Volume Imbalance (VI): Detects bullish/bearish gaps between bars. Draws semi-transparent boxes with labels (e.g., "5 tks (vi)") for imbalances or gaps. Limits display to a max number, removes filled ones, and uses magnets (🧲) for gaps.
Volume Delta (VD): Approximates buy/sell delta via intrabar pressure or polarity. Displays as unipolar/bipolar histogram, optionally overlapping with regular volume or TICK.US. Shows numerical values (green/red/orange for divergences) and price/VD divergences.
Cumulative Volume Delta (CVD): Cumulates VD, reset on anchor timeframe (e.g., daily). Displays as line, area, baseline, or candles. Includes optional EMA smoothing and background fills. Detects divergences with price.
TICK.US Histogram: Overlays US Tick index (from symbol "TICK.US") as positive/negative bars during US market hours (9:30-16:00 ET, Mon-Fri). Replaces regular volume in some modes.
Gauge Summary Table: Bottom-left table with momentum text, OFPI gauge, CVD value, current Tick, and last bar's volume breakdown (total/buy/sell/delta).
Customization Options:
General: Timezone, date format, table position/size, colors (gradients for up/down), calculation mode (timeframe/live tick), volume type (volume/price-volume), thresholds, lengths (e.g., lookback, smoothing).
Display: Heights/offsets for histograms, line widths/styles, transparencies, label sizes/alignments, divergences, MA on volume, CVD smoothing/background.
Technical: Lower timeframe precision (auto or custom), anchor for CVD reset, max VIs to show.
Other: Toggles for VI, TICK.US, numerical values, divergences.
Credit
// FuturesCall @ fcalgobot.com
//Time & Sales (Tape)
// CVD base on Luxalgo CVD indicator
// Momentum Gauge by DskyzInvestments
// volume imbalance by ...
ICT Sweep + CHoCH + FVG Alerts
### 🔥 ICT Sweep + CHoCH + FVG Alerts
Script designed to automate ICT entry confirmations using:
• Liquidity Sweep (Buy/Sell Stops taken)
• Change of Character (CHoCH)
• Fair Value Gap (FVG) confirmation
### ✅ Conditions
**Long signal when:**
1. Bearish liquidity sweep
2. Bullish CHoCH
3. Bullish FVG forms and gets respected
**Short signal when:**
1. Bullish liquidity sweep
2. Bearish CHoCH
3. Bearish FVG forms and gets respected
### 🎯 Purpose
This script helps traders detect smart-money setup entries based on ICT logic and receive alerts in real time.
### 📡 Alerts
Supports webhook automation for bots, signal servers, or trading platforms.
*This script does not place trades automatically, alerts only.*
### ⚠️ Disclaimer
This tool is for educational purposes.
Always backtest and use proper risk management.
Fibonacci Auto Retracement & HTF candles ReferenceAdvanced Higher Timeframe (HTF) Candle & Fibonacci Viewer
Overview:
The Advanced HTF Candle & Fibonacci Viewer is a professional Trading View indicator designed to help traders overlay higher timeframe price structures onto lower timeframe charts. By combining daily candle analysis with precise Fibonacci retracement levels, this tool allows traders to identify critical support and resistance zones, potential breakouts, and retracement opportunities without switching charts.
Special Thanks:
This script includes a small part of coding inspired by Zeiierman, whose work on HTF analysis provided the foundation for visualizing higher timeframe structures. Full credit to Zeiierman for their invaluable contribution to the Trading View community.
Key Features:
1. Multi-Day HTF Range Display
Automatically displays high and low of 1–7 previous days.
Highlights candle bodies and wicks for clear structure visualization.
Ideal for spotting daily ranges and breakout levels.
2. Dynamic Fibonacci Levels
Standard levels: 0%, 11.8%, 23.6%, 38.2%, 50%, 61.8%, 76.4%, 88.2%, 100%.
Optional mid-level lines for intraday support/resistance identification.
Levels adjust automatically to reflect price action direction.
3. Customizable Labels & Colors
Adjustable text size, color, transparency, and offset.
Fully customizable candle and Fibonacci colors.
Mid-level lines can be shown or hidden for a cleaner look.
4. Persistent Levels
Levels remain until the next trading session or breakout, helping track trends and retracements consistently.
5. Multi-Timeframe Optimization
Works on any chart timeframe, from 1-minute to weekly charts.
Provides higher timeframe insight while trading on lower timeframes.
Why Traders Love This Indicator:
View higher timeframe action without switching charts.
Identify high-probability entry and exit zones.
Combine with other indicators for complete market analysis.
Useful for swing traders, day traders, and scalpers alike.
Customization Options:
Number of previous days (1–7)
Show/hide mid-level lines
Show/hide labels
Customize label size, color, and offset
Customize Fibonacci and candle colors
Ideal Use Cases:
Swing Trading: Identify daily key levels for entry, exit, and stop-loss.
Day Trading: Use HTF ranges on intraday charts to spot breakouts and reversals.
Fibonacci Analysis: Locate retracement zones efficiently.
Trend Confirmation: Validate trades with higher timeframe structure.
Summary:
The Advanced HTF Candle & Fibonacci Viewer is a powerful tool for traders seeking clarity, structure, and precision. With higher timeframe insight overlaid on active charts and proper credit to Zeiierman for their HTF coding contribution, this indicator helps traders make informed, confident decisions in any market.
Real Order Block Finder (Smart v1.0) (BIGAL)BigAl w/AI
I am sick of fake order block and ask for help from my dear AI friend.This the one my friend created.
Dynamic Auto Fibonacci - Auto/Manual ModeDynamic Auto Fibonacci - Professional Retracement & Extension Tool
The ultimate Fibonacci tool combining automatic high detection with manual precision for swing low selection.
🎯 Key Features
Hybrid Drawing System
Auto Mode: You manually select your swing low by clicking on the chart, then the indicator automatically finds the highest high after that point - giving you control over your anchor while automating the rest
Manual Mode: Full control - click to select BOTH your swing low (0.0) AND swing high (1.0) for complete precision - perfect for drawing multiple projections to find confluence zones
Logarithmic Scale Support
True logarithmic Fibonacci calculations for accurate levels on log-scale charts
Essential for crypto and growth stocks with significant price appreciation
Smart Level Management
"Key Fibs Only" toggle (ON by default): Shows 13 essential professional levels
All 23 levels unlocked: Turn off Key Fibs to access 10 additional advanced levels including 0.414, 0.707, 0.886, 1.886, 2.272, 3.618, and negative projections
Every level is fully customizable - edit values, toggle on/off, change colors
Essential Fibonacci Levels (Default)
Core: 0.0, 0.236, 0.382, 0.5, 0.618 (Golden), 0.786, 1.0
Extensions: 1.272, 1.382, 1.618 (Golden), 2.0, 2.618 (Golden), 4.236
All golden ratio levels (0.618, 1.618, 2.618, 3.618) highlighted in gold
Professional Display Options
Three display modes: Retracements Only, Extensions Only, or Both
Customizable line styles (Solid/Dashed/Dotted), widths, and lengths
Clean text-only labels or traditional price scale labels
Unified color override for minimalist chart aesthetics
Adjustable label positioning and sizing
Perfect for Professional Trading
Add multiple instances with different manual anchors to identify high-probability confluence zones
Combines the convenience of partial automation with the precision of manual anchor selection
Works on all markets: stocks, forex, crypto, futures
Compatible with all timeframes and markets. Clean code, efficient performance, zero repainting.
Rita Swings •Impulses and Setbacks (Banana Trader)🚀 I just created an indicator that automatically shows market impulses and pullbacks 📊
With this indicator, you'll be able to see where the price is really moving and where the market pauses before the next move 💪
A simple yet powerful tool to improve your chart reading 🔥
Dynamic Auto FibonacciDynamic Auto Fibonacci - Logarithmic Fib Retracements & Extensions
Overview
Dynamic Auto Fibonacci is an advanced Fibonacci analysis tool that automatically identifies swing highs and lows to plot precise retracement and extension levels on your chart. Unlike traditional manual Fibonacci tools, this indicator dynamically updates as price action evolves, with full support for logarithmic scaling - essential for accurate analysis on long-term charts and high-growth assets.
The indicator features a clean, modern aesthetic with customizable vibrant colors and text-only labels that won't clutter your chart, making it perfect for both intraday scalping and long-term position trading.
Key Features
✅ Automatic Fibonacci Detection - Automatically finds the highest high and lowest low within your selected timeframe
✅ Manual Anchor Point - Click directly on the chart to set a custom low point for your Fibonacci analysis
✅ Logarithmic Scale Support - True logarithmic Fibonacci calculations for accurate levels on log-scale charts
✅ Flexible Display Modes - Show retracements only, extensions only, or both simultaneously
✅ Fully Customizable Levels - Adjust any Fibonacci level value, color, or toggle individual levels on/off
✅ Unified Color Mode - One-click option to change all levels to a single color (perfect for minimalist chart styles)
✅ Clean Modern Design - Text-only labels with vibrant colors and adjustable positioning
✅ 13 Default Levels - Includes 0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 0.886, 1.0, 1.236, 1.414, 1.618, 2.0, and 2.618
How to Use
Quick Start (Automatic Mode)
Add the indicator to your chart
By default, it will automatically find the lowest and highest points over the past 12 months
Fibonacci levels will appear with clean colored text labels positioned to the right of current price
Setting a Custom Anchor Point (Manual Mode)
This is the most powerful feature - drawing from a specific swing low:
Click the Settings icon (gear) on the indicator
Navigate to Fibonacci Settings group
Click inside the "Anchor Start Time" field - this will activate anchor selection mode
Click directly on the candle where you want to set your swing low point on the chart
The indicator will automatically:
Lock that candle as your anchor (swing low)
Find the highest high that occurred after your selected anchor point
Draw Fibonacci retracement and extension levels between those two points
Important: The anchor represents the starting point (0.0 level) of your Fibonacci, and the indicator finds the peak after that point as the 1.0 level.
Display Modes
Navigate to Display Settings → Display Mode to choose:
Retracements & Extensions (default) - Shows all levels from 0.0 to 2.618
Retracements Only - Shows only 0.0 to 1.0 levels (great for identifying pullback entry zones)
Extensions Only - Shows 1.0+ levels (useful for profit targets and breakout projections)
Customizing Individual Levels
Under Retracement Levels and Extension Levels groups, each level has three controls:
Toggle checkbox - Show/hide the level
Value field - Adjust the exact Fibonacci ratio (e.g., change 0.618 to 0.65 if desired)
Color picker - Set unique colors for each level
Unified Color Override
Perfect for chart screenshots or minimalist aesthetics:
Go to Unified Color Override settings group
Enable "Use Unified Color for All Levels"
Choose your color (defaults to gray)
All lines and text immediately change to that color - individual settings are preserved when you toggle back off
Line & Label Customization
Display Settings group offers:
Line Style: Solid, Dashed, or Dotted
Line Length: Short (10 bars), Medium (50 bars), or Long (extends right infinitely)
Line Width: 1-5 pixels
Label Size: Tiny to Huge
Label Offset: Adjust how many bars to the right labels appear (default: 12)
Show Anchor Line: Display vertical lines at your swing low and swing high points
Settings Overview
Fibonacci Settings:
Retracement Timeframe (default: 12M)
Anchor Start Time (click to select candle)
Use Log Scale Calculation (highly recommended for crypto and growth stocks)
Display Settings:
Display Mode (Retracements & Extensions / Retracements Only / Extensions Only)
Line Style, Length, Width
On-Chart Labels (clean text) or Price Scale Labels (traditional right-side axis)
Label Size and Offset
Unified Color Override:
One-click monochrome mode for all levels
Individual Level Controls:
8 customizable retracement levels (0.0 to 1.0)
5 customizable extension levels (1.236 to 2.618)
Use Cases
📊 Swing Trading - Identify key support/resistance zones for entries and exits
📊 Scalping - Use short-term anchors to find precise intraday reversal levels
📊 Position Trading - Logarithmic calculations essential for multi-year crypto/stock analysis
📊 Options Trading - Extension levels provide excellent profit target zones
📊 Multi-Timeframe Analysis - Set different anchors to compare short-term vs. long-term Fibonacci structures
Tips for Best Results
For cryptocurrency and growth stocks: Always enable "Use Log Scale Calculation" and view your chart in log scale
For precision: Use the manual anchor feature to draw from confirmed swing lows/highs rather than relying on automatic detection
For clean charts: Toggle off levels you don't actively use (e.g., disable 0.786 and 0.886 if you only trade 0.382/0.618)
For screenshots: Enable Unified Color Override and set to grayscale for professional-looking chart exports
Note on Logarithmic Scale
This indicator includes true logarithmic Fibonacci calculations, which are critical when analyzing assets with significant price appreciation. Standard arithmetic Fibonacci tools become increasingly inaccurate on log-scale charts - this indicator solves that problem by calculating levels using logarithmic mathematics when "Use Log Scale Calculation" is enabled.
Disclaimer: This indicator is a tool for technical analysis and does not constitute financial advice. Always perform your own analysis and risk management before making trading decisions.
Mum Formasyonları TespitiIt is used to detect candles.
It is designed to analyze all the candles that form.
The most frequently formed candles are displayed on the price chart.
Cipher B Free | WaveTrend (v6)Uh.. I call this.. Mona Lisa kek. Tried creating my own version of Cipher B with Grok. Feel free to tweak to your heart's content
SA_EMA Combo + UT BotEMA Combo + UT Bot is an indicator designed to make it easier to track trend direction and momentum reversals on the same chart.
The indicator combines multiple EMA lines (50/100/150/200) with a short- and medium-term EMA cloud. This cloud visually shows whether the market is in a bullish or bearish trend through color changes.
In addition, it uses the UT Bot algorithm to generate buy and sell signals adapted to market volatility. These signals are triggered when the price crosses the ATR-based trailing stop level.
Users can choose to use Heikin Ashi candles and adjust signal sensitivity via the Key Value parameter. This allows traders to follow overall trends and potential reversal zones using a single tool.
Disclaimer: This indicator is for technical analysis purposes only and should not be considered financial advice.
Developed for Future Alpha Club.
Stochastic RSI - WT Confluence Signals (TraderDemircan)WAVETREND & STOCHASTIC RSI CONFLUENCE SIGNALS
What this indicator does?
This indicator combines WaveTrend and Stochastic RSI oscillators to identify high-probability trading opportunities through confluence signals. It generates alerts when both oscillators simultaneously indicate overbought or oversold conditions with crossovers.
Why combine these two?
- WaveTrend: Detects trend momentum and cycle turning points
- Stochastic RSI: Identifies extreme overbought/oversold levels
- CONFLUENCE: When both agree, signal reliability increases significantly
Unlike simple mashups, this script normalizes Stochastic RSI to WaveTrend's scale (-100 to +100) for easier visual comparison and implements a specific confluence logic.
How it works?
WAVETREND CALCULATION:
- Uses HLC3 average with EMA smoothing
- Channel Length (n1=10) for initial smoothing
- Average Length (n2=21) for trend line
- Overbought zones: +53 to +60 and above
- Oversold zones: -53 to -60 and below
STOCHASTIC RSI CALCULATION:
- RSI Period: 14
- Stochastic Period: 14
- K-Smooth: 3, D-Smooth: 3
- Normalized to -100/+100 range to match WT scale
- Overbought: >80, Oversold: <20
CONFLUENCE SIGNALS:
🔴 SELL: WT crosses down AND both in overbought zones
🟢 BUY: WT crosses up AND both in oversold zones
How to use?
1. Wait for BOTH oscillators to enter extreme zones
2. Look for WaveTrend crossover (green/red circles)
3. Colored bars indicate confluence signals:
• Yellow bars: Potential buy (WT cross up)
• Blue bars: Potential sell (WT cross down)
4. Use with price action and support/resistance for confirmation
Disclaimer
This is not financial advice. Always use proper risk management and combine with other analysis methods. Past performance does not guarantee future results.
═══════════════════════════════════════
Lord Mathew ATSThe Smart Money Structure & Pattern Analyzer is a complete, all-in-one visual trading system that brings together every essential element of Smart Money Concepts (SMC), ICT methodology, and candlestick psychology into one powerful indicator.
It is designed to help traders instantly understand the market’s structure, liquidity flow, and potential turning points without switching tools or manually marking charts. Whether you trade forex, indices, crypto, or commodities, this indicator automatically identifies where institutional activity, imbalances, and price inefficiencies occur in real time.
With its advanced algorithm, it plots market structure shifts, equal highs and lows, liquidity zones, order blocks, fair value gaps (FVGs), and previous week and day levels (PWO, PWH, PWL, PWC, PDO, PDH, PDL, PDO). It also integrates a deep candlestick recognition engine that detects over ten classic and advanced candle formations including engulfing patterns, dojis, hammers, shooting stars, morning/evening stars, and spinning tops to provide precise confirmation at critical points of interest.
This indicator isn’t just a tool it’s a complete market map that helps traders visualize how institutional order flow and candlestick sentiment interact.
Core Features
📊 Market Structure Detection:
Automatically marks swing highs/lows, Break of Structure (BOS), and Change of Character (CHOCH) in real time.
💧 Liquidity Mapping:
Highlights equal highs/lows and liquidity grabs, showing where price is likely to target before a reversal or continuation.
🧱 Order Block Visualization:
Displays the last bullish or bearish candle before an impulsive displacement, acting as a potential institutional entry zone.
⚡ Fair Value Gap (FVG) Scanner:
Detects and highlights imbalances where price moved too fast, helping you identify high-probability retracement areas.
🕯️ Candlestick Pattern Recognition:
Recognizes key reversal and continuation patterns (engulfing, hammer, shooting star, doji, morning/evening star, etc.) in real time.
📅 Institutional Reference Points:
Plots previous week & day open (PWO, PDO), previous week & day high (PWH, PWH), previous week & day low (PWL, PDL), previous week & day close (PWC, PDC) and optionally previous day levels to help frame bias.
🎨 Customizable Design:
Toggle any feature, change colors, and set alerts when multiple Smart Money signals align for cleaner, faster decision-making.
How It Works
Add the indicator to your chart on any timeframe or market.
The algorithm automatically detects structure, liquidity, and imbalance zones.
Candlestick patterns are highlighted when they form near high-probability areas (like OBs or FVGs).
When confluence occurs such as a liquidity grab, FVG fill, and bullish engulfing candle—the indicator provides a visual signal zone for your confirmation-based entries.
You can refine your trades using higher-timeframe bias (HTF order flow) and lower-timeframe execution (LTF confirmation).
Best For
Traders using ICT, Smart Money Concepts, or price-action systems.
Intraday and swing traders looking for clear, data-driven chart structure.
Traders who want to simplify confluence analysis and focus on precision execution.
Why It Stands Out
Unlike standard candlestick or pattern scanners, this indicator merges institutional market logic with technical candle behavior, allowing traders to see where smart money might be entering or exiting positions.
It’s not about random signals it’s about context, structure, and confirmation.
Every feature in this indicator is built around the principle of liquidity engineering:
price creates liquidity, grabs it, and moves toward imbalance or order flow efficiency.
By merging that institutional logic with candlestick patterns, this tool gives traders an edge in recognizing not only where to trade but why price is reacting in that exact area.
Disclaimer
This indicator is intended for educational and analytical use. It does not provide financial advice or guaranteed trading results. Always backtest and manage your risk responsibly.
Sector Analysis [SS]Introducing the most powerful sector analysis tool/indicator available, to date, in Pine!
This is a whopper indicator, so be sure to read carefully to ensure you understand its applications and uses!
First of all, because this is a whopper, let's go over the key functional points of the indicator.
The indicator compares the 11 main sector ETFs against whichever ticker you are looking at.
The functions include the following:
Ability to pull technicals from the sectors, such as RSI, Stochastic and Z-Score;
Ability to look at the correlation of the sector ETF to the current ticker you are looking at.
Ability to calculate the R2 value between the ticker you are looking at and each sector.
The ability to run a Two Tailed T-Test against the log returns of the Ticker of interest and the Sector (to analyze statistically significant returns between sectors/tickers).
The ability to analyze the distribution of returns across all sector ETFs.
The ability to pull buying and selling volume across all sector ETFs.
The ability to create an integrated moving average using a sector ETF to predict the expected close range of a ticker of interest.
These are the highlight functions. Below, I will go more into them, what they mean and how to use them.
Pulling Technicals
This is pretty straight forward. You can pull technicals, such as RSI, Stochastic and Z-Score from all the sector ETFs and view them in a table.
See below for the example:
Pulling Correlation
In order to see which sector your ticker of interest follows more closely, we need to look first at correlation and then at R2.
The correlation will look at the immediate relationship over a specified time. A highly positive value, indicates a strong, symbiotic relationship, which the sector and the ticker follow each other. This would be represented by a correlation of 0.8 or higher.
A strong negative correlation, such as -0.8 or lower, indicates that the sector and the ticker are completely opposite. When one goes up, the other goes down and vice versa.
You can adjust your correlation assessment length directly in the settings menu:
If you want to use a sector ETF to find the expected range for a ticker of interest, it is important to locate the highest, POSITIVE, correlation value. Here are the results for MSFT at a correlation lookback of 200:
In this example, we can see the best relationship is with the ETF XLK.
Analysis of R2
R2 is an important metric. It essentially measures how much of the variance between 2 tickers are explained by a simple, linear relationship.
A high R2 means that a huge degree of variance can be explained between the 2 tickers. A low R2 means that it cannot and that the 2 tickers are likely not integrated or closely related.
In general, if you want to use the sector ETF to find the mean and trading range and identify over-valuation/over-extension and under-extension statistically, you need to see both a high correlation and a high R-Squared. These 2 metrics should be analyzed together.
Let's take a look at MSFT:
Here, despite the correlation implying that XLK was the ticker we should use to analyze, when we look at the R Squared, we see actually, we should be using XLI.
XLI has a strong positive relationship with MSFT, albeit a bit less than XLK, but the R2 is solid, > 0.9, indicating the XLI explains much of MSFT's variance.
Two Tailed T-Test
A two tailed T-test analyzes whether there is a statistically significant difference between 2 different groups, or in our case, tickers.
The T-Test is conducted on the log returns of the ticker of interest and the sector. You then can see the P value results, whether it is significant or not. Let's look at MSFT again:
Looking at this, we can see there is no statistically significant difference in returns between MSFT and any of the sectors.
We can also see the SMA of the log returns for more detailed comparison.
If we were to observe a significant finding on the T-Test metrics, this would indicate that one sector either outperforms or underperforms your ticker to a statistically significant degree! If you stumble upon this, you would check the average log returns to compare against the average returns of your ticker of interest, to see whether there is better performance or worse performance from the sector ETF vs. your ticker of interest.
Analyzing the Distribution
The indicator will also analyze the distribution of returns.
This is an interesting option as it can help you ascertain risk. Normally distributed returns imply mean reverting behavviour. Deviations from that imply trending behaviour with higher risk expectancy. If we look at the distribution statistics currently over the last 200 trading days, here are the results:
Here, we can see all show signs of trending, as none of the returns are normally distributed. The highest risk sectors are XLK and XLY.
Why are they the highest risk?
Because the indicator has found a heavy right tailed distribution, indicated sudden and erratic mean reversion/losses are possible.
Creating an MA
Now for the big bonus of the indicator!
The indicator can actually create a regression based range from closely correlated sectors, so you can see, in sectors that are strongly correlated to your ticker, whether your ticker is over-bought, oversold or has mean reverted.
Let's look at MSFT using XLI, our previously identified sector with a high correlation and high R2 value:
The results are pretty impressive.
You can see that MSFT has rode the mean of the sector on the daily timeframe for quite some time. Each time it over extended itself above the sector implied range, it mean reverted.
Currently, if you were to trade based on Pairs or statistics, MSFT is no trade as it is currently trading at its sector mean.
If you are a visual person, you can have the indicator plot the mean reversion points directly:
Green represents a bullish mean reversion and red a bearish mean reversion.
Concluding Remarks
If you like pair trading, following the link between sectors and tickers or want a more objective way to determine whether a ticker is over-bought or oversold, this indicator can help you.
In addition to doing this, the indicator can provide risk insights into different sectors by looking at the distribution, as well as identify under-performing sectors or tickers.
It can also shed light on sectors that may be technically over-bought or oversold by looking at Z-Score, stochastics and RSI.
Its a whopper and I really hope you find it helpful and useful!
Thanks everyone for reading and checking this out!
Safe trades!
Jitendra Volume Pro / Fixed RangeHello All,
This script calculates and shows Volume Profile for the fixed range. Recently we have box.new() feature in Pine Language and it's used in this script as an example. Thanks to Pine Team and Tradingview!..
Sell/Buy volumes are calculated approximately!.
Options:
"Number of Bars" : Number of the bars that volume profile will be calculated/shown
"Row Size" : Number of the Rows
"Value Area Volume %" : the percent for Value Area
and there are other options for coloring and POC line style
Enjoy!
Jitendra Sankpal
Bull Run Galaxy
2.11.2025
Block-Based Trend Breakout (UTB/DTB) & S/R ZonesThis indicator is designed to detect potential trend reversals or volatility bursts by analyzing price action structured into "blocks." Its primary goal is to capture the earliest signals that a defined trend structure is weakening or breaking.
Signal Generation:
🟢 DTB (Downtrend Breakout): When a confirmed downtrend is identified (e.g., price has been falling for 2 blocks), the indicator waits for the price to break above the highest high of the last completed block in that trend. When this break occurs, it signals a potential bullish reversal with a green DTB triangle below the bar.
🔴 UTB (Uptrend Breakdown): When a confirmed uptrend is identified (e.g., price has been rising for 2 blocks), the indicator waits for the price to break below the lowest low of the last completed block. When this break occurs, it signals a potential bearish reversal with a red UTB triangle above the bar.
🛠️ Key Settings
Block Size (bars): The number of bars in each block used to analyze the trend structure. Lower values track short-term trends; higher values track long-term trends.
Trend Confirmation (steps): The minimum number of consecutive blocks required to "confirm" a trend.
Tolerance: Allowed Off-Trend Steps: The number of "noise" blocks allowed while confirming a trend.
Show Support/Resistance Zones: Toggles the histogram-based S/R zones on or off.
S/R Lookback (blocks): Determines how many blocks to look back for calculating S/R zones.
S/R Zone Width (in ATR): Sets the thickness of the S/R zones, denominated in ATRs.
If you find this useful please reach out and let me know how you use it as it's fairly unique... and thus different than anything I've ever seen or used.
GK BOS Buy/Sell – GOLDKING EditionThe GK BOS BUY/SELL-GOLDKING EDITION.
is a clean, non repainting Break of Structure indicator designed for precision trading.
printing GK BUY when bullish break occurs and GK SELL when a bearish break is confirmed.
PERFECT FOR SCALPERS.
delivers fast high-probability BOS signals on the 5-MINUTE timeframe,
ideal intraday for intraday traders
POWERFULL FOR SWING TRADERS AND DAY TRADERS
structure based results on the 4-H and DAY
allowing traders to capture larger directional shifts
TIMEFRAME ADAPTIVE
every market moves differently, find the right time frame that works best for your trading style.
most timeframes preform brilliantly, but optimization is the key
MTF VFSMA SqueezeThe purpose of this indicator is to detect a market squeeze (lack of volatility) period and to identify the initiation and direction of the breakout.
It is based on Variety-Filtered, Squeeze Moving Averages indicator.
The original indicator created by Loxx identifies both squeeze zones and breakouts/breakdowns. A squeeze zone is defined when price is below a specific volatility threshold calculated as the difference between a fast- and slow-moving average and filtered using ATR- or Pips-based threshold.
It operates on a single timeframe and includes Loxx's Expanded Source Types, signals, alerts, etc. and 35+ Loxx's Moving Averages. These adaptive, minimal-lag indicators are built upon advanced mathematical and signal processing DSP techniques that far surpass traditional Moving Averages.
This currently published indicator includes the following main developments:
Squeeze Detection using Percentile Rank Method
It detects the Squeeze by applying a Percentile Rank to the historical distance (spread) between the two MAs.
MA Spread: The basis for Squeeze detection is the distance between the two moving averages.
Percentile Rank: A statistical measure that indicates the percentage of past Spread values within the set lookback period that are lower than the current MA Spread.
Squeeze State: A Squeeze occurs when the Percentile Rank is below the set Squeeze Threshold (%)).
Example: If the threshold is 20% and the Rank is 15%, it means the MA Spread is in its tightest 15% range, below the set threshold. Therefore, the condition is currently met.
Goal: Objective volatility measurement that adapts to market conditions.
Squeeze Duration Filter
A key condition for a Breakout signal is that the MAs must have remained in the Squeeze zone for a specified minimum duration.
Goal: To filter out market noise and False Breakouts.
Multi-Timeframe (MTF) Confluence
Multi-Timeframe trend and squeeze monitoring for 3 timeframes (TFs).
Provides confirmation using the MA status from two higher timeframes (TF2, TF3).
Goal: Trend and momentum confirmation from a broader market context.
Signals Only on Bar Close?
By selecting the signalOnClose parameter to enabled, it is possible to avoid repainting on the chart TF. If it is checked, all events on the chart (L/S signals, Squeeze Start/End, MA color change) will only appear after the bar has closed, preventing repainting. Higher TF events remain in real-time.
Goal: To increase the reliability of signals.
Multi-Level Alerts and Info Panel
Comprehensive, confluence-weighted alerts and real-time status display.
Enhanced Alerts based on multi-timeframe confluences. Alerts are ready to enable/disable for Any alert() function call and ready for watchlists. Alert Frequency is also configurable in Inputs window. „Once per bar close” is the most reliable for signals. „Always” or „Once per bar” alert frequencies may generate temporary signal alerts.
Please note that even if "Once per bar close" is selected as alert frequency, this only applies to the chart TF, and TF2 and TF3 status may be modified until the close of the relevant candle.
Goal: Transparent decision-making.
Other Improvements
Unlike the original indicator, the coloring of the MA curves on the chart depends on the relative positions of the fast MA and slow MA. The curves are colored bullish when the fast MA is above the slow MA, bearish when the opposite is true, and neutral in the squeeze zone.
Data Window with Squeeze Start/End, Buy/Sell, Status, Squeeze Percentile etc. on all 3 TFs.
Ready for Pine Screener.
Please be aware that currently only the chart TF is configurable in Pine Screener, TF2 and TF3 are set to their default values.
Pine Script® version 6.
Limitations
When setting the indicator parameters, please take into account the limitations of TradingView. (Lookback period of Percentile Rank and Moving Averages periods, Execution time limit (timeout) etc.)
For example, if a NaN% message appears as the Percentile Rank value, please reduce the lookback period.
How to use it
This indicator is a Breakout-following system, but it can also be the basis for Range Trading.
The Setup Phase
This is the preparation stage. The indicator signals low volatility as the bands tighten.
Squeeze Dynamics: Monitoring the Squeeze Duration is essential. The longer the price spends in the Squeeze zone, the more likely the resulting breakout will be powerful.
The Signal Phase (Breakout)
The Breakout signal appears on the bar where the Percentile Rank first crosses above the Squeeze threshold, indicating a sudden return of volatility.
Further condition: Meets the SqueezeDuration filter.
Breakout direction: Bullish: Fast MA > SLow MA, Bearish: Fast MA < SLow MA
Applying MTF Confluence:
The most promising trades that are in line with higher timeframes:
Total Confluence: Chart TF Signal + TF2 Bullish/Bearish + TF3 Bullish/Bearish. This is the strongest, highest-probability setup.
Simple signal: Only the Chart TF signals. This should be handled with caution, as the higher timeframes (TF2, TF3) might still be in a Squeeze or in a conflicting state.
Alternative Use: Range Trading within the Squeeze Bands
If the market has low volume, the squeeze bands can be used as dynamic support/resistance for bounces off the edges of the range:
The probability of a successful range trade increases if the boundaries of the squeeze zone have only been touched a few times previously. Each touch weakens the zone boundaries and increases the chance of a Breakout.
Suggested Tactics and Risk Management
When using Breakout strategies, strict risk management and the use of confirmations are essential:
Volume Confirmation: A strong, above-average volume Breakout candle increases the probability of a successful breakout.
False Breakout: If the breakout occurs on low volume, there is a higher chance of a pullback and a False Breakout.
Entry After Retest: A safer entry: wait until the price breaks out, but only enter if it returns to the squeeze zone and bounces back from there. This reduces the risk of a False Breakout trap.
The Risk of False Breakout:
False Breakouts are part of any Breakout strategy. Always have a strict Stop Loss set.
Reversal: Be prepared for the possibility that after a Breakout signal (e.g., Long), the price returns to the zone and then breaks out in the opposite (Short) direction.
Please note that all technical analysis and trading signals only indicate probabilities. Always use your own risk management rules and follow market regulations.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice.
Trading involves substantial risk of loss and is not suitable for every investor. Past performance shown in examples is not indicative of future results.
The indicator provides signals and calculations, but trading decisions are solely your responsibility. Always:
Test strategies on paper before using real money
Never risk more than you can afford to lose
Understand that all trading involves risk
Consider seeking advice from a licensed financial advisor
The publisher makes no guarantees regarding accuracy, profitability, or performance. Use at your own risk.
Premium/Discount Zones with Confirmation Signals📌 Indicator Description: Premium/Discount Zones with Confirmed Signals
This indicator identifies dynamic Premium, Discount, and Equilibrium zones based on recent swing highs and lows, helping traders visualize where price is considered expensive, cheap, or fair value. It’s designed for Smart Money Concepts (SMC), ICT-style trading, and anyone who values precision in zone-based analysis.
🔍 Key Features
Swing-Based Zones: Automatically detects swing highs/lows over a customizable lookback period (default: 48 bars — equivalent to 2 days on a 1-hour chart).
Premium & Discount Levels: Define overbought and oversold zones using percentage inputs (default: 25%).
Equilibrium Band (middle): Highlights the no-trade value zone with adjustable width (default: 5%).
Signal Engine: Generates trade signals based on two styles:
Bounce: Reversal signals when price reacts to a zone and confirms direction.
Breakout: Continuation signals when price breaks through a zone with momentum.
Trade Type Selector: Choose between Bounce, Breakout, or Both from the input menu.
Signal Filtering: Limits signals to one per direction at a time to reduce noise.
Visual Styling: Toggle between colored or monochrome themes for clean charting.
🧠 How It Works
Buy signals appear when price confirms strength from the discount zone or breaks above the premium zone.
Sell signals appear when price confirms weakness from the premium zone or breaks below the discount zone.
All signals include a built-in 3-bar confirmation delay to reduce false triggers.
🎯 Ideal For
Traders using SMC, ICT, or price action strategies
Zone-based scalping, swing trading, or intraday setups
Visualizing market structure and value areas with clarity
I hope you find this useful — and wish you Happy Trades!
Pinbar MTF - No Repaint# Pinbar MTF - No Repaint Indicator
## Complete Technical Documentation
---
## 📊 Overview
**Pinbar MTF (Multi-Timeframe) - No Repaint** is a professional-grade TradingView Pine Script indicator designed to detect high-probability pinbar reversal patterns with advanced filtering systems. The indicator is specifically engineered to be **100% non-repainting**, making it reliable for both live trading and backtesting.
### Key Features
✅ **Non-Repainting** - Signals only appear AFTER bar closes, never disappear
✅ **Three-Layer Filter System** - ATR, SWING, and RSI filters
✅ **Automatic SL/TP Calculation** - Based on risk:reward ratios
✅ **Real-time Alerts** - TradingView notifications for all signals
✅ **Visual Trade Management** - Lines, labels, and areas for entries, stops, and targets
✅ **Backtesting Ready** - Reliable historical data for strategy testing
---
## 🎯 What is a Pinbar?
A **Pinbar (Pin Bar/Pinocchio Bar)** is a single candlestick pattern that indicates a potential price reversal:
### Bullish Pinbar (BUY Signal)
- **Long lower wick** (rejection of lower prices)
- **Small body at the top** of the candle
- Shows buyers rejected sellers' attempt to push price down
- Forms at support levels or swing lows
- Entry signal for LONG positions
### Bearish Pinbar (SELL Signal)
- **Long upper wick** (rejection of higher prices)
- **Small body at the bottom** of the candle
- Shows sellers rejected buyers' attempt to push price up
- Forms at resistance levels or swing highs
- Entry signal for SHORT positions
---
## 🔧 How the Indicator Works
### 1. **Pinbar Detection Logic**
The indicator analyzes the **previous closed bar ** to identify pinbar patterns:
```
Bullish Pinbar Requirements:
- Lower wick > 72% of total candle range (adjustable)
- Upper wick < 28% of total candle range
- Close > Open (bullish candle body)
Bearish Pinbar Requirements:
- Upper wick > 72% of total candle range (adjustable)
- Lower wick < 28% of total candle range
- Close < Open (bearish candle body)
```
**Why check ?** By analyzing the previous completed bar, we ensure the pattern is fully formed and won't change, preventing repainting.
---
### 2. **Three-Layer Filter System**
#### 🔍 **Filter #1: ATR (Average True Range) Filter**
- **Purpose**: Ensures the pinbar has significant size
- **Function**: Only signals if pinbar range ≥ ATR value
- **Benefit**: Filters out small, insignificant pinbars
- **Settings**:
- Enable/Disable toggle
- ATR Period (default: 7)
**Example**: If ATR = 50 pips, only pinbars with 50+ pip range will signal.
---
#### 🔍 **Filter #2: SWING Filter** (Always Active)
- **Purpose**: Confirms pinbar forms at swing highs/lows
- **Function**: Validates the pinbar is an absolute high/low
- **Benefit**: Identifies true reversal points
- **Settings**:
- Swing Candles (default: 3)
**How it works**:
- For bullish pinbar: Checks if low is lowest of past 3 bars
- For bearish pinbar: Checks if high is highest of past 3 bars
**Example**: With 3 swing candles, a bullish pinbar must have the lowest low among the last 3 bars.
---
#### 🔍 **Filter #3: RSI (Relative Strength Index) Filter**
- **Purpose**: Confirms momentum conditions
- **Function**: Prevents signals in extreme momentum zones
- **Benefit**: Avoids counter-trend trades
- **Settings**:
- Enable/Disable toggle
- RSI Period (default: 7)
- RSI Source (Close, Open, High, Low, HL2, HLC3, OHLC4)
- Overbought Level (default: 70)
- Oversold Level (default: 30)
**Logic**:
- Bullish Pinbar: Only signals if RSI < 70 (not overbought)
- Bearish Pinbar: Only signals if RSI > 30 (not oversold)
---
### 3. **Stop Loss Calculation**
Two methods available:
#### Method A: ATR-Based Stop Loss (Recommended)
```
Bullish Pinbar:
SL = Pinbar Low - (1 × ATR)
Bearish Pinbar:
SL = Pinbar High + (1 × ATR)
```
**Benefit**: Dynamic stops that adapt to market volatility
#### Method B: Fixed Pips Stop Loss
```
Bullish Pinbar:
SL = Pinbar Low - (Fixed Pips)
Bearish Pinbar:
SL = Pinbar High + (Fixed Pips)
```
**Settings**:
- Calculate Stop with ATR (toggle)
- Stop Pips without ATR (default: 5)
---
### 4. **Take Profit Calculation**
Take Profit is calculated based on Risk:Reward ratio:
```
Bullish Trade:
TP = Entry + (Entry - SL) × Risk:Reward Ratio
Bearish Trade:
TP = Entry - (SL - Entry) × Risk:Reward Ratio
```
**Example**:
- Entry: 1.2000
- SL: 1.1950 (50 pip risk)
- RR: 2:1
- TP: 1.2100 (100 pip reward = 50 × 2)
**Settings**:
- Risk:Reward Ratio (default: 1.0, range: 0.1 to 10.0)
---
## 📈 Visual Elements
### On-Chart Displays
1. **Signal Markers**
- 🟢 **Green Triangle Up** = Bullish Pinbar (BUY)
- 🔴 **Red Triangle Down** = Bearish Pinbar (SELL)
- Placed directly on the pinbar candle
2. **Entry Labels**
- Green "BUY" label with entry price
- Red "SELL" label with entry price
- Shows exact entry level
3. **Stop Loss Lines**
- 🔴 Red horizontal line
- "SL" label
- Extends 20 bars forward
4. **Take Profit Lines**
- 🟢 Green horizontal line
- "TP" label
- Extends 20 bars forward
5. **Risk/Reward Areas** (Optional)
- Red shaded box = Risk zone (Entry to SL)
- Green shaded box = Reward zone (Entry to TP)
- Visual risk:reward visualization
6. **Info Table** (Top Right)
- Displays current settings
- Shows filter status (ON/OFF)
- Real-time RSI value
- Quick reference panel
---
## 🔔 Alert System
Three alert types available:
### 1. Combined Alert: "Pinbar Signal (Any Direction)"
- Fires for BOTH bullish and bearish pinbars
- **Best for**: General monitoring
- **Message**: "Pinbar Signal Detected on {TICKER} at {PRICE}"
### 2. Bullish Alert: "Bullish Pinbar Alert"
- Fires ONLY for BUY signals
- **Best for**: Long-only strategies
- **Message**: "BUY Signal on {TICKER} at {PRICE}"
### 3. Bearish Alert: "Bearish Pinbar Alert"
- Fires ONLY for SELL signals
- **Best for**: Short-only strategies
- **Message**: "SELL Signal on {TICKER} at {PRICE}"
---
## ⚙️ Input Parameters Reference
### **Filters Group**
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| ATR Filter on Pinbar Range? | ✅ ON | Boolean | Enable/disable ATR filter |
| ATR Period | 7 | 1+ | Lookback period for ATR calculation |
| Swing Candles | 3 | 1+ | Bars to check for swing high/low |
| RSI Filter on Pinbar? | ❌ OFF | Boolean | Enable/disable RSI filter |
| RSI Period | 7 | 2+ | Lookback period for RSI calculation |
| RSI Source | Close | Multiple | Price data for RSI (Close/Open/High/Low/etc) |
| RSI Overbought Level | 70 | 50-100 | Upper threshold for RSI filter |
| RSI Oversold Level | 30 | 0-50 | Lower threshold for RSI filter |
### **Pinbar Detection Group**
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Shadow % vs Body | 72 | 50-95 | Minimum wick size as % of total range |
### **Visualization Group**
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Show SL and TP Lines? | ✅ ON | Boolean | Display stop loss and take profit lines |
| Show SL and TP Area? | ❌ OFF | Boolean | Show shaded risk/reward boxes |
### **Risk Management Group**
| Parameter | Default | Range | Description |
|-----------|---------|-------|-------------|
| Risk:Reward Ratio | 1.0 | 0.1-10.0 | Target profit vs risk (1.0 = 1:1, 2.0 = 1:2) |
| Calculate Stop with ATR? | ✅ ON | Boolean | Use ATR for stop calculation |
| Stop Pips without ATR | 5 | 1+ | Fixed pip stop when ATR disabled |
---
## 🚫 Non-Repainting Architecture
### What is Repainting?
**Repainting** occurs when an indicator's historical signals differ from what appeared in real-time. This makes backtesting unreliable and can lead to false confidence in a strategy.
### How This Indicator Prevents Repainting
1. **Closed Bar Analysis**
- All calculations use ` ` offset (previous bar)
- Only analyzes COMPLETED candles
- Signals appear on the bar AFTER the pinbar closes
2. **Confirmed Swing Points**
- Waits for sufficient bar history before signaling
- Only checks historical bars that cannot change
- Prevents premature swing detection
3. **Static Alert Timing**
- Alerts fire only after bar completion
- No conditional logic that changes historically
- Same results in replay mode and live trading
### Verification Method
To verify non-repainting behavior:
1. Apply indicator to chart
2. Note signal locations and prices
3. Refresh browser / reload chart
4. **Signals remain in exact same locations**
---
## 💼 Trading Strategy Guidelines
### Entry Rules
**For Bullish Pinbar (LONG):**
1. Wait for green triangle to appear
2. Enter at close of pinbar (shown in label)
3. Alternative: Enter on break of pinbar high
4. Place stop loss at red SL line
5. Set target at green TP line
**For Bearish Pinbar (SHORT):**
1. Wait for red triangle to appear
2. Enter at close of pinbar (shown in label)
3. Alternative: Enter on break of pinbar low
4. Place stop loss at red SL line
5. Set target at green TP line
### Risk Management
- **Position Sizing**: Risk only 1-2% of account per trade
- **Stop Loss**: Always use the calculated SL (never move it wider)
- **Take Profit**: Use calculated TP or trail stop after 1:1 RR
- **Multiple Timeframes**: Confirm signals on higher timeframe
### Best Practices
✅ **DO:**
- Wait for bar to close before entering
- Trade in direction of higher timeframe trend
- Use on liquid markets with clear support/resistance
- Combine with price action analysis
- Keep a trading journal
❌ **DON'T:**
- Enter before bar closes (prevents seeing full pattern)
- Trade against strong trends
- Ignore the filters (they improve win rate)
- Risk more than 2% per trade
- Trade every signal (be selective)
---
## 📊 Backtesting & Data Export
### Available Data Points
The indicator exports these values for strategy development:
| Output | Description |
|--------|-------------|
| Bullish Signal | 1 = BUY signal, 0 = No signal |
| Bearish Signal | 1 = SELL signal, 0 = No signal |
| Bull SL | Stop loss level for long trades |
| Bull TP | Take profit level for long trades |
| Bull Entry | Entry price for long trades |
| Bear SL | Stop loss level for short trades |
| Bear TP | Take profit level for short trades |
| Bear Entry | Entry price for short trades |
### How to Use in Strategy
These values can be accessed by Pine Script strategies using:
```pine
indicator_values = request.security(syminfo.tickerid, timeframe.period,
)
```
---
## 🎓 Understanding the Filters
### Why Use Multiple Filters?
Single-indicator systems often generate too many false signals. This indicator uses a **confluence approach**:
1. **Pinbar Pattern** = Price rejection detected
2. **+ SWING Filter** = Rejection at key level
3. **+ ATR Filter** = Significant move
4. **+ RSI Filter** = Favorable momentum
**Result**: Higher probability setups with better risk:reward
### Filter Optimization
**Conservative Settings** (Fewer, Higher Quality Signals):
- ATR Filter: ON
- Swing Candles: 5
- RSI Filter: ON
- Shadow %: 75%
**Aggressive Settings** (More Signals, More Noise):
- ATR Filter: OFF
- Swing Candles: 2
- RSI Filter: OFF
- Shadow %: 65%
**Balanced Settings** (Recommended):
- ATR Filter: ON
- Swing Candles: 3
- RSI Filter: OFF (or ON for trending markets)
- Shadow %: 72%
---
## 🔍 Troubleshooting
### "No Signals Appearing"
**Possible Causes:**
1. Filters are too strict
2. No pinbars forming on chart
3. Insufficient bar history
**Solutions:**
- Reduce Shadow % to 65%
- Reduce Swing Candles to 2
- Disable ATR or RSI filters temporarily
- Check that chart has enough data loaded
### "Too Many Signals"
**Solutions:**
- Enable ATR filter
- Increase Swing Candles to 4-5
- Enable RSI filter
- Increase Shadow % to 75-80%
### "Signals Appearing Late"
**This is normal behavior!** The indicator:
- Analyzes previous closed bar
- Signals appear on the bar AFTER the pinbar
- This is what prevents repainting
- Signal latency is 1 bar (by design)
---
## 📝 Technical Specifications
**Indicator Type:** Overlay (displays on price chart)
**Pine Script Version:** 5
**Max Labels:** 500
**Max Lines:** 500
**Repainting:** None (100% non-repainting)
**Data Window Values:** 8 exported values
**Alert Types:** 3 (Combined, Bullish, Bearish)
**Performance:**
- Lightweight script (fast execution)
- Works on all timeframes
- Compatible with all markets (Forex, Crypto, Stocks, Futures)
- No data snooping bias
---
## 🎯 Use Cases
### 1. **Swing Trading**
- Timeframe: Daily, 4H
- Filter Settings: All enabled
- Best for: Catching major reversals
### 2. **Day Trading**
- Timeframe: 15m, 1H
- Filter Settings: ATR + SWING only
- Best for: Intraday reversals
### 3. **Scalping**
- Timeframe: 5m, 15m
- Filter Settings: SWING only (aggressive)
- Best for: Quick reversals (requires experience)
### 4. **Position Trading**
- Timeframe: Weekly, Daily
- Filter Settings: All enabled + high RR (2:1 or 3:1)
- Best for: Long-term trend reversal catches
---
## 🏆 Advantages Over Other Pinbar Indicators
✅ **Guaranteed Non-Repainting** - Many pinbar indicators repaint; this one never does
✅ **Automatic SL/TP** - No manual calculation needed
✅ **Multi-Layer Filtering** - Reduces false signals significantly
✅ **Visual Trade Management** - Clear entry, stop, and target levels
✅ **Flexible Configuration** - Adaptable to any trading style
✅ **Alert System** - Never miss a setup
✅ **Backtesting Ready** - Reliable historical data
✅ **Professional Grade** - Suitable for live trading
---
## 📚 Educational Resources
### Recommended Reading on Pinbars
- "The Pin Bar Trading Strategy" by Nial Fuller
- "Price Action Trading" by Al Brooks
- TradingView Education: Price Action Patterns
### Practice Recommendations
1. Paper trade signals for 20+ trades before live trading
2. Backtest on different timeframes and markets
3. Keep detailed records of all trades
4. Analyze winning vs losing setups
5. Refine filter settings based on results
---
## ⚖️ Disclaimer
This indicator is a tool for technical analysis and does not guarantee profits. Trading involves substantial risk of loss. Past performance is not indicative of future results.
- Always use proper risk management
- Never risk more than you can afford to lose
- Consider your trading experience and objectives
- Seek independent financial advice if needed
---
## 📧 Version Information
**Current Version:** 1.0
**Last Updated:** 2024
**Compatibility:** TradingView Pine Script v5
**Status:** Production Ready
---
## 🔄 Future Enhancements (Potential)
Possible future additions:
- Multi-timeframe confirmation option
- Volume filter integration
- Customizable color schemes
- Win rate statistics display
- Partial profit taking levels
- Trailing stop functionality
---
## 📖 Quick Start Guide
### 5-Minute Setup
1. **Add to Chart**
- Open TradingView
- Go to Pine Editor
- Paste the code
- Click "Add to Chart"
2. **Configure Settings**
- Open indicator settings (gear icon)
- Start with default settings
- Enable "Show SL and TP Lines"
3. **Set Alert**
- Right-click indicator name
- Click "Add Alert"
- Select "Pinbar Signal (Any Direction)"
- Configure notification method
4. **Test**
- Scroll back on chart
- Verify signals make sense
- Check that signals don't repaint
5. **Trade** (After Practice!)
- Wait for alert
- Verify signal quality
- Enter, place SL/TP
- Manage trade
---
## 🎯 Final Thoughts
The **Pinbar MTF - No Repaint** indicator is designed for serious traders who value:
- **Reliability** over flashy signals
- **Quality** over quantity
- **Honesty** over false promises
This indicator will NOT:
- Make you rich overnight
- Win every trade
- Replace proper trading education
This indicator WILL:
- Identify high-probability reversal setups
- Save you analysis time
- Provide consistent, non-repainting signals
- Help you develop a systematic trading approach
**Success in trading comes from:**
1. Proper education (60%)
2. Risk management (30%)
3. Technical tools like this indicator (10%)
Use this tool as part of a complete trading plan, not as a standalone solution.






















