Price Imbalance as Consecutive Levels of AveragesOverview
The Price Imbalance as Consecutive Levels of Averages indicator is an advanced technical analysis tool designed to identify and visualize price imbalances in financial markets. Unlike traditional moving average (MA) indicators that update continuously with each new price bar, this indicator employs moving averages calculated over consecutive, non-overlapping historical windows. This unique approach leverages comparative historical data to provide deeper insights into trend strength and potential reversals, offering traders a more nuanced understanding of market dynamics and reducing the likelihood of false signals or fakeouts.
Key Features
Consecutive Rolling Moving Averages: Utilizes three distinct simple moving averages (SMAs) calculated over consecutive, non-overlapping windows to capture different historical segments of price data.
Dynamic Color-Coded Visualization: SMA lines change color and style based on the relationship between the averages, highlighting both extreme and normal market conditions.
Median and Secondary Median Lines: Provides additional layers of price distribution insight during normal trend conditions through the plotting of primary and secondary median lines.
Fakeout Prevention: Filters out short-term volatility and sharp price movements by requiring consistent historical alignment of multiple moving averages.
Customizable Parameters: Offers flexibility to adjust SMA window lengths and line extensions to align with various trading strategies and timeframes.
Real-Time Updates with Historical Context: Continuously recalculates and updates SMA lines based on comparative historical windows, ensuring that the indicator reflects both current and past market conditions.
Inputs & Settings
Rolling Window Lengths:
Window 1 Length (Most Recent) Bars: Number of bars used to calculate the most recent SMA. (Default: 5, Range: 2–300)
Window 2 Length (Preceding) Bars: Number of bars for the second SMA, shifted by Window 1. (Default: 8, Range: 2–300)
Window 3 Length (Third Rolling) Bars: Number of bars for the third SMA, shifted by the combined lengths of Window 1 and Window 2. (Default: 13, Range: 2–300)
Horizontal Line Extension:
Horizontal Line Extension (Bars): Determines how far each SMA line extends horizontally on the chart. (Default: 10 bars, Range: 1–100)
Functionality and Theory
1. Calculating Consecutive Simple Moving Averages (SMAs):
The indicator calculates three SMAs, each based on distinct and consecutive historical windows of price data. This approach contrasts with traditional MAs that continuously update with each new price bar, offering a static view of past trends rather than an ongoing one.
Mean1 (SMA1): Calculated over the most recent Window 1 Length bars. Represents the short-term trend.
Mean1=∑i=1N1CloseiN1
Mean1=N1∑i=1N1Closei
Where N1N1 is the length of Window 1.
Mean2 (SMA2): Calculated over the preceding Window 2 Length bars, shifted back by Window 1 Length bars. Represents the medium-term trend.
\text{Mean2} = \frac{\sum_{i=1}^{N_2} \text{Close}_{i + N_1}}}{N_2}
Where N2N2 is the length of Window 2.
Mean3 (SMA3): Calculated over the third rolling Window 3 Length bars, shifted back by the combined lengths of Window 1 and Window 2 bars. Represents the long-term trend.
\text{Mean3} = \frac{\sum_{i=1}^{N_3} \text{Close}_{i + N_1 + N_2}}}{N_3}
Where N3N3 is the length of Window 3.
2. Determining Market Conditions:
The relationship between the three SMAs categorizes the market condition into either extreme or normal states, enabling traders to quickly assess trend strength and potential reversals.
Extreme Bullish:
Mean3Mean2>Mean1
Mean3>Mean2>Mean1
Indicates a strong and sustained downward trend. SMA lines are colored purple and styled as dashed lines.
Normal Bullish:
Mean1>Mean2andnot in extreme bullish condition
Mean1>Mean2andnot in extreme bullish condition
Indicates a standard upward trend. SMA lines are colored green and styled as solid lines.
Normal Bearish:
Mean1Mean2>Mean1
Mean3>Mean2>Mean1
Normal Bullish:
Mean1>Mean2andnot in Extreme Bullish
Mean1>Mean2andnot in Extreme Bullish
Normal Bearish:
Mean1 Mean2 > Mean3
Visualization: All three SMAs are displayed as gold dashed lines.
Median Lines: Not displayed to maintain chart clarity.
Interpretation: Indicates a strong and sustained upward trend. Traders may consider entering long positions, confident in the trend's strength without the distraction of additional lines.
2. Normal Bullish Condition:
SMAs Alignment: Mean1 > Mean2 (not in extreme condition)
Visualization: Mean1 and Mean2 are green solid lines; Mean3 is gray.
Median Lines: A thin blue dotted median line is plotted between Mean1 and Mean2, with two additional thin blue dashed lines as secondary medians.
Interpretation: Confirms an upward trend while providing deeper insights into price distribution. Traders can use the median and secondary median lines to identify optimal entry points and manage risk more effectively.
3. Extreme Bearish Condition:
SMAs Alignment: Mean3 > Mean2 > Mean1
Visualization: All three SMAs are displayed as purple dashed lines.
Median Lines: Not displayed to maintain chart clarity.
Interpretation: Indicates a strong and sustained downward trend. Traders may consider entering short positions, confident in the trend's strength without the distraction of additional lines.
4. Normal Bearish Condition:
SMAs Alignment: Mean1 < Mean2 (not in extreme condition)
Visualization: Mean1 and Mean2 are red solid lines; Mean3 is gray.
Median Lines: A thin blue dotted median line is plotted between Mean1 and Mean2, with two additional thin blue dashed lines as secondary medians.
Interpretation: Confirms a downward trend while providing deeper insights into price distribution. Traders can use the median and secondary median lines to identify optimal entry points and manage risk more effectively.
Customization and Flexibility
The Price Imbalance as Consecutive Levels of Averages indicator is highly adaptable, allowing traders to tailor it to their specific trading styles and market conditions through adjustable parameters:
SMA Window Lengths: Modify the lengths of Window 1, Window 2, and Window 3 to capture different historical trend segments, whether focusing on short-term fluctuations or long-term movements.
Line Extension: Adjust the horizontal extension of SMA and median lines to align with different trading horizons and chart preferences.
Color and Style Preferences: While default colors and styles are optimized for clarity, traders can customize these elements to match their personal chart aesthetics and enhance visual differentiation.
This flexibility ensures that the indicator remains versatile and applicable across various markets, asset classes, and trading strategies, providing valuable insights tailored to individual trading needs.
Conclusion
The Price Imbalance as Consecutive Levels of Averages indicator offers a comprehensive and innovative approach to analyzing price trends and imbalances within financial markets. By utilizing three consecutive, non-overlapping SMAs and incorporating median lines during normal trend conditions, the indicator provides clear and actionable insights into trend strength and price distribution. Its unique design leverages comparative historical data, distinguishing it from traditional moving averages and enhancing its utility in identifying genuine market movements while minimizing false signals. This dynamic and customizable tool empowers traders to refine their technical analysis, optimize their trading strategies, and navigate the markets with greater confidence and precision.
Трендовый анализ
premium strategy🚀 Premium Trading Indicator for High-Accuracy Buy & Sell Signals 🚀
This exclusive indicator is designed to provide high-probability trading signals for intraday, swing, and positional traders. It works on all timeframes and is suitable for stocks, forex, crypto, and indices.
✨ Features:
✅ Clear Buy & Sell Signals displayed directly on the chart
✅ Works on multiple timeframes for flexible trading
✅ Optimized for intraday, swing, and positional trades
✅ Built-in alerts for automation & trade execution
📌 This is an Invite-Only premium script. If you're interested in access, contact me directly. 📩
High-Low Breakout Strategy with ATR traling Stop LossThis script is a TradingView Pine Script strategy that implements a High-Low Breakout Strategy with ATR Trailing Stop.created by SK WEALTH GURU, Here’s a breakdown of its key components:
Features and Functionality
Custom Timeframe and High-Low Detection
Allows users to select a custom timeframe (default: 30 minutes) to detect high and low levels.
Tracks the high and low within a user-specified period (e.g., first 30 minutes of the session).
Draws horizontal lines for high and low, persisting for a specified number of days.
Trade Entry Conditions
Long Entry: If the closing price crosses above the recorded high.
Short Entry: If the closing price crosses below the recorded low.
The user can choose to trade Long, Short, or Both.
ATR-Based Trailing Stop & Risk Management
Uses Average True Range (ATR) with a multiplier (default: 3.5) to determine a dynamic trailing stop-loss.
Trades reset daily, ensuring a fresh start each day.
Trade Execution and Partial Profit Taking
Stop-loss: Default at 1% of entry price.
Partial profit: Books 50% of the position at 3% profit.
Max 2 trades per day: If the first trade hits stop-loss, the strategy allows one re-entry.
Intraday Exit Condition
All positions close at 3:15 PM to ensure no overnight risk.
AI-✘✔ Многоуровневый VWAP – рассчитывает VWAP для разных временных периодов (день, неделя,
✔ Полосы отклонения (Bands) – вычисляет верхнюю и нижнюю границы VWAP.
✔ Анализ сессий (Tokyo, London, New York) – определяет активные торговые сессии и строит коробки на графике.
✔ Таблица информации – отображает время начала и окончания каждой сессии.
✔ Объемный профиль (Volume Profile) – анализирует распределение объема по уровням цены.
✔ Исторические уровни VWAP – строит прошлые уровни VWAP для анализа поведения цены.
✔ Кастомизация – множество параметров для тонкой настройки.
Fshariar_Enhanced Quasimodo Pattern**Enhanced Quasimodo Pattern Indicator**
The **Enhanced Quasimodo Pattern Indicator** is a powerful technical analysis tool designed for **TradingView** users. This script identifies the **Quasimodo pattern**, a key reversal formation used by professional traders to anticipate market turning points with high accuracy.
### **Features:**
✅ **Quasimodo Pattern Detection**: Automatically spots **bullish and bearish Quasimodo setups** on the chart.
✅ **Multi-Confirmation Signals**: Incorporates **RSI divergence, volume spikes, and trend filters** to enhance reliability.
✅ **Fibonacci-Based Entry & Exit**: Uses **61.8% and 78.6% Fibonacci retracement levels** for optimal trade entries.
✅ **Dynamic Take Profit & Stop Loss Levels**: Plots **161.8% Fibonacci extensions** as TP targets and SL based on the X-point.
✅ **Multi-Timeframe Trend Analysis**: Uses **EMA 50 & EMA 200** to filter trades in line with the prevailing trend.
✅ **Real-Time Alerts**: Get notified instantly when a **buy or sell signal** is detected.
### **How It Works:**
- **Bearish Quasimodo (Sell Signal)**: Triggered when a higher high is followed by a lower low, indicating a reversal.
- **Bullish Quasimodo (Buy Signal)**: Triggered when a lower low is followed by a higher high, signaling a potential uptrend.
- **Confirmation Criteria**: RSI divergence, volume spikes, and EMA-based trend analysis help filter out false signals.
### **Who Can Benefit?**
- **Day Traders & Swing Traders** looking for high-probability reversal setups.
- **Price Action Traders** who rely on **support & resistance** structures.
- **Fibonacci Traders** seeking **retracement & extension-based entries.**
This indicator is fully customizable, allowing traders to adjust **swing length, RSI settings, and Fibonacci levels** to match their trading strategy. 🚀
📌 **Try it on your TradingView chart today and enhance your technical analysis!**
Developed by **FShariar**
Moving Average Crossover with Stop Loss and Take ProfitMoving Average Crossover with Stop Loss and Take Profit
Relative Strength - MNOPPlotting relative strength for Daily, Weekly and Monthly chart of a current script against two scripts (can use indexes)
Volume Reversal Arrowsthis indicator look at 3 candel if the first one is red and the third one is green and have more volume then the first one he plot a green arrow and the red arrow when the first candel is green but the third on is red and have more volume
Smart Market Bias [PhenLabs]📊 Smart Market Bias Indicator (SMBI)
Version: PineScript™ v6
Description
The Smart Market Bias Indicator (SMBI) is an advanced technical analysis tool that combines multiple statistical approaches to determine market direction and strength. It utilizes complexity analysis, information theory (Kullback Leibler divergence), and traditional technical indicators to provide a comprehensive market bias assessment. The indicator features adaptive parameters based on timeframe and trading style, with real-time visualization through a sophisticated dashboard.
🔧 Components
Complexity Analysis: Measures price movement patterns and trend strength
KL Divergence: Statistical comparison of price distributions
Technical Overlays: RSI and Bollinger Bands integration
Filter System: Volume and trend validation
Visual Dashboard: Dynamic color-coded display of all components
Simultaneous current timeframe + higher time frame analysis
🚨Important Explanation Feature🚨
By hovering over each individual cell in this comprehensive dashboard, you will get a thorough and in depth explanation of what each cells is showing you
Visualization
HTF Visualization
📌 Usage Guidelines
Based on your own trading style you should alter the timeframe length that you would like to be analyzing with your dashboard
The longer the term of the position you are planning on entering the higher timeframe you should have your dashboard set to
Bias Interpretation:
Values > 50% indicate bullish bias
Values < 50% indicate bearish bias
Neutral zone: 45-55% suggests consolidation
✅ Best Practices:
Use appropriate timeframe preset for your trading style
Monitor all components for convergence/divergence
Consider filter strength for signal validation
Use color intensity as confidence indicator
⚠️ Limitations
Requires sufficient historical data for accurate calculations
Higher computational complexity on lower timeframes
May lag during extremely volatile conditions
Best performance during regular market hours
What Makes This Unique
Multi-Component Analysis: Combines complexity theory, statistical analysis, and traditional technical indicators
Adaptive Parameters: Automatically optimizes settings based on timeframe
Triple-Layer Filtering: Uses trend, volume, and minimum strength thresholds
Visual Confidence System: Color intensity indicates signal strength
Multi-Timeframe Capabilities: Allowing the trader to analyze not only their current time frame but also the higher timeframe bias
🔧 How It Works
The indicator processes market data through four main components:
Complexity Score (40% weight): Analyzes price returns and pattern complexity
Kullback Leibler Divergence (30% weight): Compares current and historical price distributions
RSI Analysis (20% weight): Momentum and oversold/overbought conditions
Bollinger Band Position (10% weight): Price position relative to volatility
Underlying Method
Maintains rolling windows of price data for multiple calculations
Applies custom normalization using hyperbolic tangent function
Weights component scores based on reliability and importance
Generates final bias percentage with confidence visualization
💡 Note: For optimal results, use in conjunction with price action analysis and consider multiple timeframe confirmation. The indicator performs best when all components show alignment.
Instantaneous Trendline with Cloud Instantaneous Trendline with Cloud
Introduction & History
The Instantaneous Trendline was introduced by John Ehlers, a well-known figure in the field of technical analysis, particularly for applying digital signal processing concepts to financial markets. Ehlers aimed to create an indicator that reacts to market price changes more quickly than traditional moving averages, yet remains smooth enough to avoid excessive noise. By incorporating concepts from digital filtering, he devised a formula that calculates a trendline with minimal lag—hence the term “instantaneous.”
Purpose
The primary purpose of the Instantaneous Trendline with Cloud is to provide traders and analysts with a responsive, smoothed line that closely follows market price movements. Additionally, this script enhances the visual cues by adding a cloud fill to highlight bullish and bearish zones:
Trend Identification
The ITL (Instantaneous Trendline) is plotted alongside the price. When price consistently stays above the ITL, it may signal an uptrend. Conversely, when price dips below the ITL, it can suggest a downtrend.
Signal Generation
Crossover points between the price and the ITL can serve as potential entry or exit signals. A bullish crossover (price moving above the ITL) often indicates the start of upward momentum, while a bearish crossover (price dropping below the ITL) may point to downward momentum.
Noise Reduction
By applying digital filtering concepts and smoothing through the alpha (smoothing coefficient), the ITL reduces noise while still responding relatively quickly to price changes. Traders can adjust alpha to make the trendline more reactive (higher alpha) or smoother (lower alpha).
Clarity via Cloud Fill
A color-coded cloud between the price and the ITL provides an at-a-glance view of market bias. The green cloud highlights potentially bullish phases, while the red cloud highlights potentially bearish phases.
Experiment with the alpha value (commonly between 0.2 and 0.3) to find a balance that suits your preference for responsiveness versus smoothness.
This indicator implements John Ehlers’ Instantaneous Trendline concept and plots a smoothed trendline (ITL) alongside the price. The trendline is controlled by a user-defined smoothing coefficient (alpha). A higher alpha makes the trendline respond more quickly to price changes, while a lower alpha produces a smoother line.
A color-filled cloud helps traders identify bullish and bearish conditions:
Green cloud if the price is above the ITL (bullish potential).
Red cloud if the price is below the ITL (bearish potential).
Key Benefits
Trend Visualization: Quickly see if the market is in an uptrend or downtrend based on the position of the price relative to the trendline.
Crossover Signals: Identify potential shifts in trend or momentum when the price crosses the ITL.
Customizable Sensitivity: Adjust the alpha parameter to make the ITL more or less reactive to price moves. Use this tool to better visualize short-term trend changes and potential entry/exit signals in conjunction with other technical analysis methods.
kezio//@version=5
indicator("Smart Money Concept SMC", overlay=true)
// Configurações do usuário
length = input(20, title="Período para estrutura")
sensitivity = input(2, title="Sensibilidade BOS")
// Cálculo de Highs e Lows
highs = ta.highest(high, length)
lows = ta.lowest(low, length)
// Detecção de Break of Structure (BOS)
BOS_Bullish = ta.crossover(high, ta.highest(high, sensitivity))
BOS_Bearish = ta.crossunder(low, ta.lowest(low, sensitivity))
// Detecção de Change of Character (CHOCH)
CHOCH_Bullish = ta.crossover(high, ta.lowest(low, sensitivity))
CHOCH_Bearish = ta.crossunder(low, ta.highest(high, sensitivity))
// Identificação de Liquidity Grabs
liquidity_grab_bullish = ta.lowest(low, sensitivity) < low and close > open
liquidity_grab_bearish = ta.highest(high, sensitivity) > high and close < open
// Marcação das Zonas de Oferta e Demanda
var float demandZone = na
var float supplyZone = na
if BOS_Bullish
demandZone := ta.lowest(low, sensitivity)
if BOS_Bearish
supplyZone := ta.highest(high, sensitivity)
// Plotando os sinais
plotshape(BOS_Bullish, location=location.belowbar, color=color.green, style=shape.labelup, title="BOS Up")
plotshape(BOS_Bearish, location=location.abovebar, color=color.red, style=shape.labeldown, title="BOS Down")
plotshape(CHOCH_Bullish, location=location.belowbar, color=color.blue, style=shape.triangleup, title="CHOCH Up")
plotshape(CHOCH_Bearish, location=location.abovebar, color=color.orange, style=shape.triangledown, title="CHOCH Down")
plotshape(liquidity_grab_bullish, location=location.belowbar, color=color.purple, style=shape.circle, title="Liquidity Grab Buy")
plotshape(liquidity_grab_bearish, location=location.abovebar, color=color.purple, style=shape.circle, title="Liquidity Grab Sell")
// Desenha zonas institucionais
bgcolor(BOS_Bullish ? color.green : na, transp=90)
bgcolor(BOS_Bearish ? color.red : na, transp=90)
Green & Red Candle SignalThis is a simple entry technique for entry and exit signals. Whenever the candle goes GREEN from WHITE, you can enter the trade on long sideanywhere in between the GREEN candle, keeping STOP below prior lowest WHITE. Trail you profits. Similarly when the candle goes RED from WHITE, you can enter the trade on short side anywhere in between the RED candle, keeping STOP above prior highest WHITE
MACD + RSI + Stochastic ReversalMACD Calculation: The script calculates the MACD line, signal line, and histogram.
RSI Calculation: The RSI is calculated and overbought/oversold levels are defined.
Stochastic Oscillator: The %K and %D lines are calculated, and overbought/oversold levels are defined.
Buy/Sell Signals: Buy signals are generated when the MACD line crosses above the signal line, RSI is oversold, and Stochastic is oversold. Sell signals are generated when the MACD line crosses below the signal line, RSI is overbought, and Stochastic is overbought.
This script should now compile and function correctly in TradingView, providing a clear visualization of the MACD, RSI, and Stochastic indicators along with buy and sell signals.
BRAINZ STRATEGYbest strategy ever best strategy ever best strategy ever best strategy ever best strategy ever best strategy ever best strategy ever best strategy ever best strategy ever
MTF EMA crossover Sentiment - SimplifiedMTF EMA crossover Sentiment Exponential Moving Average (EMA full form in stock market) is a kind of moving average that places a greater weight and importance on the most current data points. It is used for evaluating the bullish and bearish trends in securities over a certain span of duration.
Kalman Filter OverlayKalman filter is a recursive algorithm that has been invented in the 1960s to track a moving target, remove any noisy measurements of its position and predict its future position.
In trading, KF might be a good replacement for a moving average, as it reacts to price changes in a different way. Not only it follows price direction, but can also track the velocity of price changes. This specific behaviour of KF is used in this indicator to track changes in trends.
Trend is characterized by price moving directionally, however, any trend comes to pause or complete stop and reversal, as the price changes more slowly (a trend fades into a sideways movement for a while) or the price movement changes direction, thus making a reversal.
This indicator detects the points where such changes occur, and produces signals (strong and weak), which serve as points of current trend pausing or reversing. By applying different settings for KF calculation, one can produce less or more signals that indicate change in trend character, and either detect only significant trends changes, or less and shorter trends changes as well.
The signals do not differentiate the exact type of a trend change (it can be a brief trend pause followed by a continuation, as well as a complete reversal). In this sense, signals should not be followed blindly, and can be used only as position exit confirmations, but not the entry confirmations!
SUP & RECIdentifying Support and Resistance: An indicator (likely visual) highlights areas on a price chart where the asset's price has historically struggled to break through. These are crucial levels to watch for potential price reversals.
Elisathe indicator uses Bollinger Bands with various moving average types. The strategy rules are to go long when the price closes above the upper band and close the long when it closes below the lower band. So, the entry and exit conditions are based on the close relative to the bands.
Lookback SequentialLookback Sequential Indicator - Summary
The Lookback Sequential indicator is a momentum-based tool that tracks price trends using a counting system. It compares the current closing price with the closing price from a user-defined number of bars ago (lookback period).
If the current close is higher than the close from the lookback period, the counter increments (bullish trend).
If the current close is lower, the counter resets to 1 and starts counting again (bearish trend).
Key Features:
Customizable Colors – Bullish numbers appear in a user-defined color (e.g., green), and bearish numbers in another (e.g., red).
Dynamic Placement – The numbers are displayed below the candle in an uptrend and above in a downtrend to visually differentiate trends.
Resets at 1 – When the price trend reverses, the counting sequence resets, ensuring accurate tracking of price momentum.
This indicator helps traders identify market trends, potential reversals, and momentum strength in a simple, visual format.
Ultimate RZR Indicator//@version=5
indicator("Ultimate RZR Multi-Indicator Suite", shorttitle="URZR", overlay=true)
// ==== DESCRIPTION ====
/*
**ULTIMATE RZR MULTI-INDICATOR SUITE**
*All-in-One Trading Tool for Trend Analysis & Volume-Based Signals*
▄▀▄ FEATURES ▄▀▄
• **7 Integrated Indicators**
✓ RSI (Overbought/Oversold)
✓ MACD (Momentum)
✓ Volume Spike Detection
✓ Moving Average Filter
✓ Bollinger Bands
✓ Stochastic Oscillator
✓ Fibonacci Retracements
• **Smart Signal Logic**
▶ BUY Conditions:
- RSI Oversold + MACD Bullish
- Price > MA + Volume Spike
- Stochastic Confirmation
▶ SELL Conditions:
- RSI Overbought + MACD Bearish
- Price < MA + Volume Spike
- Stochastic Confirmation
• **Visual Tools**
- Automatic Fibonacci Levels
- Clean Bollinger Band Display
- Non-Repainting Signals
▄▀▄ HOW TO USE ▄▀▄
1. Apply to any chart (Stocks/Crypto/Forex)
2. Customize inputs via Settings:
• Adjust indicator lengths
• Modify Fibonacci levels
• Set volume sensitivity
3. Combine with horizontal S/R levels
▄▀▄ IDEAL FOR ▄▀▄
• Swing Traders (4H-1D Timeframes)
• Crypto Day Traders (15m-1H)
• Pullback Strategy Enthusiasts
⚠️ **Disclaimer**: Educational purpose only. Always backtest strategies.
*/
Daily Range LinesGolden's daily volatility range
Long Entry = + Tomorrow’s Opening Price
Short Entry = - Tomorrow’s Opening Price