Inside Bar Advancedthis script is advanced inside bar it just does not check previous candle it check more than one candle , that's why i wrote advanced Inside bar
Chart patterns
Real-Time Spring DetectorThis is a Pine Script for Trading View that creates a "Real-Time Spring Detector" indicator. This Pine Script is essentially a sophisticated pattern recognition tool that helps identify "spring" setups - a popular trading pattern where price briefly breaks below support but then bounces back strongly, often indicating that sellers are exhausted and buyers are ready to step in.What is a "Spring" in Trading?
A spring is a technical analysis pattern that occurs when:
Price breaks below a support level (like breaking below a floor)
But then quickly bounces back up (like a spring rebounds)
This often signals that sellers are weak and buyers are stepping in
Think of it like testing the strength of a trampoline - you push down, but it springs back up stronger.
What This Script Does
This Pine Script automatically detects spring patterns on your chart and alerts you when they happen. Here's how it works:
Main Components
1. Input Parameters (Settings You Can Adjust)
Lookback Period (10): How many bars back to look for patterns
Min Support Touches (2): How many times price must touch the support level
Min Penetration % (0.1%): How far below support price must break
Min Rejection % (30%): How much price must bounce back up
Alert Settings: Choose when to get notifications
2. Support Level Detection
The script finds "support levels" - price levels where buyers have stepped in before:
It looks at recent low points
Identifies areas where price has bounced multiple times
Uses a small tolerance (0.5%) to account for minor price differences
3. Spring Detection Logic
The script identifies three types of springs:
Real-Time Spring (happening right now):
Price breaks below support by the minimum amount
Price bounces back strongly (rejection %)
Current candle closes higher than it opened (bullish)
Volume is reasonable
Confirmed Spring (already completed):
Same as real-time, but the candle has finished forming
Potential Spring (early warning):
Price is near support but hasn't fully formed the pattern yet
4. Visual Elements
Markers on Chart:
🟢 Green Triangle: Confirmed spring (reliable signal)
🟡 Yellow Triangle: Spring forming right now (live signal)
🟠 Orange Circle: Potential spring (early warning)
Labels:
Show "SPRING" with the rejection percentage
"FORMING" for developing patterns
"?" for potential springs
Support Line:
Red dotted line showing the support level
Background Colors:
Light red when price penetrates support
Light yellow for potential springs
5. Information Box
A table in the top-left corner shows:
Current support level price
Whether penetration is happening
Rejection percentage
Current pattern status
Live price
6. Alert System
Two types of alerts:
Real-time alerts: Notify when spring is forming (current bar)
Confirmed alerts: Notify when spring is complete (bar closed)
Alert cooldown: Prevents spam by waiting 5 bars between alerts
How to Use This Script
1. Installation
Copy the script code
Open TradingView
Go to Pine Editor
Paste the code
Click "Add to Chart"
2. Settings
Adjust the input parameters based on your trading style:
Lower lookback = more sensitive, faster signals
Higher support touches = more reliable but fewer signals
Lower penetration % = catches smaller springs
Higher rejection % = only strong bounces
3. Interpretation
Green triangles: High-confidence buy signals
Yellow triangles: Watch closely, pattern developing
Orange circles: Early warning, not tradeable yet
4. Best Practices
Use on higher timeframes (15min+) for more reliable signals
Combine with other indicators for confirmation
Pay attention to volume - higher volume springs are more reliable
Wait for confirmed signals if you're a conservative trader
Key Features for Small Timeframes
The script includes special detection for shorter timeframes:
Quick bounce detection: Identifies rapid reversals
Hammer pattern recognition: Spots candlestick patterns
Relaxed volume requirements: Works when volume data is limited
Advanced Features
Volume Analysis
Compares current volume to 10-bar average
Requires at least 80% of average volume (flexible for small timeframes)
Pattern Enhancement
Looks for hammer-like candles (long lower wick, small upper wick)
Identifies quick bounces where the upper wick is small
Multiple Confirmation
Combines multiple criteria to reduce false signals
Stronger springs get priority for alerts
Common Use Cases
Entry Signals: Buy when confirmed springs appear
Support Level Identification: Visual support lines help identify key levels
Risk Management: Failed springs (continued breakdown) can be stop-loss triggers
Market Structure: Understanding where buyers are defending price levels
Limitations
Works best in trending or ranging markets May produce false signals in very choppy conditions
small timeframe signals can be noisy should be combined with other analysis methods.The key advantage is that it can catch these patterns as they happen, rather than you having to constantly watch charts. This is especially valuable for active traders who want to capitalize on quick reversals at support levels.
LRHA Trend Shift DetectorLRHA Trend Shift Detector (TSD)
The LRHA Trend Shift Detector is an advanced momentum exhaustion indicator that identifies potential trend reversals and changes by analyzing Linear Regression Heikin Ashi (LRHA) candle patterns. TSD focuses on detecting when strong directional moves begin to lose momentum.
🔬 Methodology
The indicator employs a three-stage detection process:
LRHA Calculation: Applies linear regression smoothing to Heikin Ashi candles, creating ultra-smooth trend-following candles that filter out market noise
Extended Move Detection: Identifies sustained directional moves by counting consecutive bullish or bearish LRHA candles
Momentum Exhaustion Analysis: Monitors for significant changes in candle size compared to recent averages
When an extended move shows clear signs of momentum exhaustion, the indicator signals a potential trend shift with red dots plotted above or below your candlesticks.
⚙️ Parameters
Core Settings
LRHA Length (11): Linear regression period for smoothing calculations. Lower values = more responsive, higher values = smoother trends.
Minimum Trend Bars (4): Consecutive candles required to establish an "extended move." Higher number detects longer term trend changes.
Exhaustion Bars (3): Number of consecutively smaller candles needed to signal exhaustion. Lower is more sensitive.
Size Reduction Threshold (40%): Percentage decrease in candle size to qualify as "exhaustion." Lower is more sensitive.
Trend Trading
Pullback Entries: Identify exhaustion in counter-trend moves for trend continuation
Exit Strategy: Recognize when main trend momentum is fading
Position Sizing: Reduce size when seeing exhaustion in your direction
🎛️ Optimization Tips
For More Signals (Aggressive)
- Decrease LRHA Length (7-9)
- Reduce Minimum Trend Bars (2-3)
- Lower Size Reduction Threshold (25-35%)
For Higher Quality (Conservative)
- Increase LRHA Length (13-18)
- Raise Minimum Trend Bars (5-6)
- Higher Size Reduction Threshold (45-55%)
⚠️ Important Notes⚠️
- **Not a Complete Strategy**: Use as confluence with other analysis methods
- **Market Context Matters**: Consider overall trend direction and key support/resistance levels
- **Risk Management Essential**: Always use proper position sizing and stop losses
- **Backtest First**: Optimize parameters for your specific trading style and instruments
Absolute High and Low {Darkoexe}This indicator identifies and visually highlights the absolute highest and lowest closing prices on a chart. It is designed to help traders quickly recognize major price extremes that can serve as significant support/resistance levels or turning points in historical price action.
🔧 What It Does
The script plots persistent horizontal lines on your chart to mark either:
The absolute highest and lowest closing prices of the entire visible chart, or
The highest and lowest closing prices within a custom range of candles, defined by the user.
These price levels are plotted using thick green and red lines, respectively, and are updated dynamically as new highs or lows are set.
⚙️ How It Works
When “Use all candles” is enabled, the script continuously updates the high and low lines based on the full price history of the chart. These lines remain until a new extreme is made.
When disabled, the script checks only the most recent N candles (max bars back input). It scans this window to find and plot the highest and lowest closes.
The lines extend to the right to help users visually anchor these key levels in future price action.
🎯 Use Cases
Spotting extreme price levels for potential mean-reversion strategies.
Confirming breakout or breakdown conditions.
Defining long-term support and resistance zones.
This tool is especially useful for discretionary traders who value historical context and want clear visual markers for past price extremes.
⚠️ Notes and Limitations
This script is not predictive. It simply marks historical price extremes based on closing values.
When using the fixed range mode (max bars back), be aware that values outside this range will not be considered.
The indicator does not repaint, but in full chart mode, it updates only when a new extreme is formed.
1 Candle SMT Divergence (Nephew_Sam_)📊 1 Candle SMT Divergence Detector
3-Way Smart Money Theory (SMT) Divergence Scanner for Multi-Symbol Analysis
This indicator identifies 1-candle SMT divergences by comparing one primary symbol against up to 2 correlation symbols across multiple timeframes simultaneously. Perfect for detecting institutional smart money moves and market inefficiencies.
🎯 Key Features:
3-Way Comparison: Compare 1 "From" symbol vs 2 "To" symbols (configurable)
5 Symbol Pairs: Pre-configure up to 5 different symbol combinations
Multi-Timeframe: Scan 5 timeframes simultaneously (Chart, 1H, 4H, Daily, Weekly)
Smart Filtering: Only displays timeframes equal to or higher than your chart
Real-Time Detection: Compares current vs previous candle highs/lows
Visual Alerts: Clean table display with color-coded divergence status
Line Drawing: Optional trend lines connecting divergence points
Replay Compatible: Works with TradingView's replay mode
📈 How It Works:
Detects when one symbol makes a higher high while correlated symbols make lower highs (and vice versa for lows). This creates SMT divergence signals that often precede significant market moves.
NQHARP with Scalingthis is something ive developed over years of backtesting based on ATR vales and FIB measurements measured is as well. enjoy
Multi Asset Comparative📊 Multi Asset Comparative – Compare Baskets of Cryptos Visually
This indicator allows you to compare the performance of two groups of cryptocurrencies (or any assets) over time, using a clean and intuitive chart.
Instead of looking at each asset separately, this tool gives you a global view by showing how one group performs relative to another — all displayed in the form of candlesticks.
🧠 What This Tool Is For
Markets constantly shift, and capital rotates between sectors or tokens. This script helps you visually track those shifts by answering a key question:
"Is this group of assets getting stronger or weaker compared to another group?"
For example:
Compare altcoins vs Bitcoin
Track the DeFi sector vs Ethereum
Analyze your custom portfolio vs the market
Spot moments when money flows from majors to smaller caps, or vice versa
🧩 How It Works (Simplified)
You select two groups of assets:
Group 1 (up to 20 assets) — the one you want to analyze
Group 2 (up to 5 assets) — your comparison baseline
The indicator then creates a single line of candles that represents the performance of Group 1 compared to Group 2. If the candles go up, it means Group 1 is gaining strength over Group 2. If the candles go down, it's losing ground.
This lets you see market dynamics in one glance, instead of switching charts or running calculations manually.
🚀 Why It's Unique
Unlike many indicators that just show data from one asset, this one provides a bird's-eye view of multiple assets at once — condensed into a simple visual ratio.
It’s:
Customizable (you choose the assets)
Visual and intuitive (no need to interpret tables or formulas)
Actionable (helps with trend confirmation, macro views, and market rotation)
Whether you're a swing trader, a macro analyst, or building your own strategy, this tool can help you spot opportunities hidden in plain sight.
✅ How to Use It
Choose your two groups of assets (e.g., altcoins vs BTC/ETH)
Watch the direction of the candles:
Uptrend = Group 1 gaining strength over Group 2
Downtrend = Group 1 weakening
Use it to confirm market shifts, anticipate rotations, or analyze sector strength
Asian Session Sweepthis indicator helps you to see the high and the low of asia session that helps you to find when luiquity has been grabt
Altseason HunterAltseason Hunter is an early warning indicator for potential altcoin seasons in the cryptocurrency market.
It compares Bitcoin Dominance (BTC.D) and Altcoin Dominance (TOTAL3.D), and generates a signal when Bitcoin Dominance is in a downtrend while Altcoin Dominance is in an uptrend.
A green triangle appears when these conditions are met, indicating that altcoins are starting to outperform Bitcoin in terms of market share.
This tool helps traders anticipate shifts in market cycles, but it does not provide direct buy or sell signals. Use for informational and educational purposes only.
Developed by Kriptomist.
TrendWay Strategy📈 TrendWay Strategy – Smart Trend Following Algorithm
The TrendWay Strategy is a powerful trend-following algorithm designed for traders who aim to capture sustained market movements with clarity and precision. Built on the principle of combining volatility with trend strength, this strategy utilizes the Average True Range (ATR) and dynamic support/resistance levels to generate high-probability buy and sell signals.
🔍 Key Features:
ATR-Based Volatility Filter: Adjusts sensitivity based on market volatility using customizable ATR periods and multipliers.
Dynamic Trend Lines: Adapts trailing stop levels based on price action, helping to stay in trends longer and reduce false signals.
Clear Entry/Exit Signals: Visual Buy (🔼) and Sell (🔽) markers provide intuitive decision-making on the chart.
Signal Highlighting Option: Easily switch between visual trend highlighting or a clean chart view.
⚙️ Parameters:
ATR Period (default: 10)
ATR Multiplier (default: 3.0)
Source (e.g., hl2)
Option to toggle ATR method (SMA or standard)
Optional signal markers and trend coloring
✅ Suitable For:
Swing traders and intraday traders
Crypto, forex, and stock markets
Traders looking for a reliable way to trail trends and exit on reversal signals
Note: Like all strategies, TrendWay should be used in conjunction with sound risk management and market awareness. Always backtest and forward-test before using with live capital.
Events assistantThis script gives an ability to manually add events to your charts. There is no option to define events for different pairs. I trade only 2-3 pairs and it helps me a lot. It also draws vertical lines that separate trading period of your selection: daily, weekly and monthly. It is also possible to strictly define trading period. I use trading period every time during backtesting so it is easy to know when to start and when to finish. It also helps to remember that I already written down trading news during selected period.
Pivot Points StandardThis Pivot Points indicator calculates and plots pivot levels on your chart according to several popular methods (such as Traditional, Fibonacci, Woodie, Classic, Camarilla, etc.), helping traders identify key support and resistance levels. Pivot points are essential tools for predicting market reversal points, and this indicator does so efficiently in real-time.
Features:
Pivot Calculation Methods: Traditional, Fibonacci, Woodie, Classic, Camarilla, and more.
Customization Options: Adjust the pivot type, number of visible pivots, and other parameters like line color and thickness.
Custom Alerts: Receive automatic alerts when the price crosses any pivot level (S1, S2, R1, R2, etc.), helping you react quickly to potential market reversals.
Multiple Timeframe Support: Set the timeframe for the pivot calculations and view corresponding pivot levels for that period.
Visible Pivot Levels: Choose to show or hide the pivot levels directly on the chart, with the option to display the exact price of each level.
Flexible Label Positioning: Select whether pivot labels should appear on the left or right side of the pivot line.
Benefits:
Facilitates Decision-Making: Pivot levels help identify key zones where price is likely to reverse or stay within a range.
Real-Time Alerts: Alerts notify you as soon as the price crosses any key pivot level, enabling you to make quick and precise decisions without constantly monitoring the chart.
Customization: Easily adjust the indicator to suit your trading style and visual preferences.
Ideal For:
Traders looking for technical analysis tools to identify key market levels.
Those who want to receive automatic alerts about pivot level crossovers to streamline decision-making.
Investors using pivot analysis in their trading strategy to determine entry or exit points.
Candle Ribbon [UkutaLabs]The Candle Ribbon is a powerful trading tool that creates a strong ribbon that indicates market strength. This ribbon is created using three moving averages that use the candle values (high, low, open and close) as its input values.
The center most MA will also be colored green, red or grey depending on whether or not its direction aligns with current market strength.
The outer band lines act as range indicators, plotted above and below the center ribbon, which represent volatility boundaries for price action.
█ USAGE
The Candle Ribbon is created using a series of three moving averages that uses values from the candle as its inputs. The user has the ability to select whether the moving averages are EMAs or SMAs, as well as the ability to control the period of the moving averages.
If the moving average calculated using the Candle Open is below the moving average calculated using the Candle Close, the ribbon will be colored green, indicating a bullish trend. If the moving average calculated using the Candle Open is above the moving average calculated using the Candle Open, the ribbon will be colored red, indicating a bearish trend.
This indicator also uses a series of hidden EMAs to determine market strength. If these EMAs do not align with the direction of the Candle Ribbon, the middle MA will instead be colored grey, indicating uncertainty in the market, as well as a possible reversal.
█ SETTINGS
Configuration
• Moving Average Type: Determines whether or not the Candle Moving Averages will be drawn as EMAs or SMAs.
• Moving Average Period: Determines the period of the Candle Moving Averages.
Moving Average
• Moving Average Input: Determines the input values for the hidden EMAs.
RSI + Bollinger Reversal AlertRSI + Bollinger Reversal Alert
Good win rate backtest on this strategy allow you to find nice entry with RSI + Bollinger Reversal Alert confluence
Global M2 Money Supply // Days Offset =The script still runs on any chart.
The line only appears on BTC charts.
It avoids all errors with the display argument.
Mercury System 200 MAs200-period SMA & EMA on multiple timeframes, as per TraderMercury's trading system.
Created by Zeta.
- 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1D, 2D, 1W
HOW TO USE:
Use the checkboxes in the Inputs tab to toggle visibility for each timeframe.
- Do not use the Style tab to hide lines — this will only remove one of the two (SMA or EMA).
- Use the Style tab to adjust colours/transparency only.
TIP:
For a cleaner look, go to the Style tab and uncheck “Values in Status Line.”
Algorithmic Candle Finder {Darkoexe}Algorithmic Candle Finder Indicator
Algorithmic candles are candles whose size and direction are significantly influenced by institutions or large players using market algorithms. These entities can move large amounts of capital in or out of the market, creating price moves that are often difficult for retail traders to predict or react to.
This can make short-term retail trading risky and inconsistent, especially when unaware of such institutional activity. The goal of this indicator is to help identify such candles, allowing traders to avoid trading during times of potential algorithmic influence.
Detection Criteria:
A candle is marked as algorithmic if either of the following conditions are met:
Size-Based Detection: If the current candle’s size exceeds the Average True Range (ATR) of the previous candle multiplied by the ATR factor input.
Volume-Based Detection: If the current candle’s volume exceeds the average volume of recent candles (e.g., last N candles) multiplied by the volume factor input.
When a candle is deemed algorithmic, a label saying "Algo!!!!!" will appear on the chart above the candle where the condition occurred.
Usage:
Use this indicator to study which times of day algorithmic candles frequently appear. This can help you adjust your strategy to avoid trading during these unpredictable moments.
Analogy:
Think of the market like the game Agar.io: small players (retail traders) collect small pellets to grow, while larger players (institutions) devour smaller ones. The small players must avoid the big ones to survive. Likewise, in trading, retail traders should aim to avoid high-impact algorithmic activity that could “consume” their trades.
CHoCH + BOS Detector (con líneas)este indicador sirve para simplificar las entrada scalper en el oro
Fibonacci Retracement Buy/Sell Signal by KriptomistFibonacci Retracement Buy/Sell Signal by Kriptomist
This indicator identifies potential buy and sell opportunities based on Fibonacci retracement levels. It calculates significant Fibonacci retracement levels (38.2% and 61.8%) over a customizable lookback period.
How it works:
Buy Signal: Triggered when the price crosses above the 61.8% Fibonacci retracement level, indicating potential bullish momentum.
Sell Signal: Triggered when the price crosses below the 38.2% Fibonacci retracement level, suggesting possible bearish momentum.
The signals are clearly marked on your chart with visual shapes for ease of use. Additionally, alerts can be set to notify you immediately when signals occur.
Features:
Customizable lookback period.
Clear visual representation of key Fibonacci levels.
Easy-to-follow Buy/Sell visual signals.
Alert conditions for timely notifications.
Developed by Kriptomist for traders seeking clarity and precision in their Fibonacci-based trading strategies.
Moving Average Convergence Divergence*SMA Trend Strategy with Re-Entry Signal (v6 Edition)*
This indicator is based on a classic moving average trend-following system, enhanced with re-entry signals designed for medium to short-term traders.
---
### 📈 Key Features:
1. *Trend Detection Logic:*
- The 30-period SMA (SMA30) is used as the trend filter.
- When the closing price is above the SMA30, the market is considered to be in an uptrend.
2. *Re-Entry Signal:*
- While in an uptrend, if the closing price crosses above the SMA20, a re-entry (add position) signal is triggered.
- These signals are shown with green upward arrows below the bars.
3. *Background Highlighting:*
- Green background: indicates an uptrend.
- Red background: indicates a break below SMA30, suggesting weakening momentum.
4. *Multi-SMA Visualization:*
- Five SMAs are displayed: SMA10, SMA20, SMA30, SMA60, and SMA250.
- This helps visualize both short-term and long-term trend structures.
---
### 🔍 Usage Tips:
- Use this script directly on your main chart to monitor trend direction and wait for re-entry signals during pullbacks.
- Combine with other tools like volume, price action, or candlestick patterns to confirm entries.
---
### ⚠️ Disclaimer:
- This indicator is for educational and informational purposes only. It does not constitute financial advice or a buy/sell signal.
- Avoid relying solely on this script for trading decisions. Always manage your own risk.
---
👨💻 *Developer’s Note:*
This script is 100% manually developed, not copied or auto-generated. It is an original implementation based on my personal trading logic. Suggestions and feedback are welcome!
XAUUSD Scalping Strategy - FVG + CISD📈 XAUUSD Scalping Strategy – FVG + CISD (3M/5M)
This strategy is designed for high-probability scalping on gold (XAU/USD) using a blend of Smart Money Concepts (SMC) and momentum-based price action. It works best on the 3-minute and 5-minute charts with bias from the 15M or 1H timeframe.
🔍 Core Concepts:
Fair Value Gaps (FVGs): Price inefficiencies created when strong displacement candles leave behind imbalanced zones. Used as retracement entry points.
CISD (Change in State of Delivery): Detects momentum shifts using strong displacement candles following a liquidity sweep or market structure break.
Liquidity Sweeps: Identifies stops being taken above recent highs or below recent lows, often leading to a reversal.
Market Structure Break (MSB): Confirms the change in directional bias after a liquidity sweep and displacement.
🧠 Strategy Logic:
Buy Conditions:
Bias is set to “Bullish”
Price sweeps a recent swing low (liquidity grab)
A strong bullish displacement candle confirms momentum (CISD)
A bullish Fair Value Gap forms
A bullish Market Structure Break occurs
Sell Conditions:
Bias is set to “Bearish”
Price sweeps a recent swing high
A strong bearish displacement candle confirms reversal
A bearish Fair Value Gap forms
A bearish Market Structure Break occurs
🎯 Entry & Risk Management:
Entry: Upon retracement into the Fair Value Gap (FVG)
Stop-Loss: Below swing low (for buys) or above swing high (for sells)
Take-Profit: 2x Reward-to-Risk ratio (adjustable)
Alerts: Configurable alerts notify you of qualified trade setups in real time
✅ Best Use Practices:
Use only during high-volume sessions (London/NY open)
Confirm direction using M15 or H1 bias
Avoid ranging markets or choppy sessions
Combine with liquidity zones or higher timeframe supply/demand for stronger confluence
Price Deviation from MA5 (%)This custom TradingView indicator calculates and displays the percentage deviation of the current closing price from its 5-day simple moving average (MA5).
Cup with Handle PatternCup with Handle Pattern Indicator – Description
This Cup with Handle Pattern Indicator is designed to visually identify one of the most powerful bullish continuation patterns in technical analysis — the Cup with Handle.
🔍 What It Detects
The indicator scans for the classic "U-shaped" cup formation followed by a slight downward drift (the handle), which often precedes a breakout.
Once a valid pattern is detected, it plots a green triangle below the price bar at the point of breakout — where the price crosses above recent highs after consolidation.
⚙️ Key Features
Customizable Duration: The cup length can be adjusted (default is 150 bars), allowing flexibility based on the timeframe and asset.
Automatic Breakout Detection: The indicator uses a combination of relative highs, lows, and ATR (Average True Range) to ensure valid setups.
No repainting: Signals are plotted only after confirmation, making this suitable for live trading or backtesting.
🛠️ How It Works
Left Cup High: Detected based on historical highs before the low.
Cup Low: The lowest point within the cup duration.
Right Cup High: A recent high before breakout.
Breakout Point: Triggered when price crosses above the 30-bar high after the handle formation.
Validity Checks: Ensures the structure has a proper depth, symmetry, and volatility conditions using ATR.
📊 Visual Elements
Green Triangle Up: Plotted below bar at the breakout.
Blue Line: Closing price.
✅ Ideal For:
Swing traders and position traders looking for high-probability breakout entries.
Chart analysts who want to automate the detection of classic base-building patterns.
Educational and training purposes for pattern recognition.