Pullback SARPullback SAR - Parabolic SAR with Pullback Detection
Description: The "Pullback SAR" is an advanced indicator built on the classic Parabolic SAR but with additional functionality for detecting pullbacks. It helps identify moments when the price pulls back from the main trend, offering potential entry signals. Perfect for traders looking to enter the market after a correction.
Key Features:
SAR (Parabolic SAR): The Parabolic SAR indicator is used to determine potential trend reversal points. It marks levels where the price could reverse its direction.
Pullback Detection: The indicator catches periods when the price moves away from the main trend and then returns, which may suggest a re-entry opportunity.
Long and Short Signals: Once a pullback in the direction of the main trend is identified, the indicator generates signals that could be used to open positions.
Simple and Clear Construction: The indicator is based on the classic SAR, with added pullback detection logic to enhance the accuracy of the signals.
Parameters:
Start (SAR Step): Determines the initial step for the SAR calculation, which controls the rate of change in the indicator at the beginning.
Increment (SAR Increment): Defines the maximum step size for SAR, allowing traders to adjust the indicator’s sensitivity to market volatility.
Max Value (SAR Max): Sets the upper limit for the SAR value, controlling its volatility.
Usage:
Swing Trading: Ideal for swing strategies, aiming to capture larger price moves while maintaining a safe margin.
Scalping: Due to its precise pullback detection, it can also be used in scalping, especially when the price quickly returns to the main trend.
Risk Management: The combination of SAR and pullback detection allows traders to adjust their positions according to changing market conditions.
Special Notes:
Adjusting Parameters: Depending on the market and trading style, users can adjust the SAR parameters (Start, Increment, Max Value) to fit their needs.
Combination with Other Indicators: It's recommended to use the indicator alongside other technical analysis tools (e.g., EMA, RSI) to enhance the accuracy of the signals.
Link to the script: This open-source version of the indicator is available on TradingView, enabling full customization and adjustments to meet your personal trading strategy. Share your experiences and suggestions!
Indikatoren und Strategien
Psychological Levels 25 Gold [UkutaLabs]This indicator is specifically designed to display key psychological levels for Gold (XAUUSD) trading, focusing on increments of $25. It automatically plots major and minor levels, providing traders with clear visual cues for potential support and resistance areas.
Key Features:
25 Dollar Increments: Draws lines at every $25 increment, highlighting significant price levels for Gold.
Major & Minor Levels: Distinguishes between major ($25 increments) and minor (mid-point) levels with customizable colors and styles.
Nearest Century Line: Displays the nearest 25 dollar increment to the current price with a distinct color.
Customizable Appearance: Allows users to adjust line colors, styles (dashed, dotted, solid), and widths to suit their preferences.
Number of Lines: Allows users to set the number of psychological lines to be displayed above and below the current price.
Clear Visuals: Provides clean and easily interpretable lines on the chart.
How to Use:
Add the indicator to your Gold (XAUUSD) chart.
Observe the plotted lines for potential support and resistance areas.
Customize the line colors and styles in the indicator's settings to match your chart theme.
Use these levels in conjunction with other technical analysis tools for informed trading decisions.
Disclaimer:
This indicator is for informational purposes only and should not be considered financial advice. Trading involves risks, and past performance is not indicative of future results. 1 2 Always conduct thorough research and consult with a qualified financial 3 advisor before making any trading decisions.
Liquidity Sweeps [SB]Liquidity Sweeps – Identify Smart Money Liquidity Grabs
🔹 Overview
The Liquidity Sweeps indicator is designed to help traders spot bullish and bearish liquidity grabs, a key concept in smart money trading. It automatically detects swing highs and lows, identifies stop hunts, and highlights areas where institutional traders might be sweeping liquidity before price reverses.
🔹 How It Works
Detects liquidity sweeps by tracking swing points based on a user-defined lookback period.
Differentiates between:
✅ Wick-based liquidity grabs (stop hunts).
✅ Breakouts & retests (confirming liquidity sweeps).
✅ Both combined for deeper analysis.
Draws liquidity zones with extendable boxes to visualize areas where liquidity was taken.
Provides alerts when a liquidity sweep occurs.
🔹 Key Features
✅ Customizable swing length (len) for liquidity detection.
✅ Choose from three liquidity sweep types:
Only Wicks (stop hunts).
Only Breakouts & Retests (confirmed sweeps).
Wicks + Breakouts & Retests (comprehensive view).
✅ Bullish & bearish liquidity zones displayed with adjustable colors.
✅ Extends liquidity zones dynamically for better market structure analysis.
✅ Alerts included for real-time notifications.
🔹 Who Can Benefit?
Smart money & ICT traders looking for liquidity grabs.
The Strat traders seeking 1-3-1 setups or inside bar breaks.
VWAP traders using liquidity sweeps for confluence.
Scalpers & intraday traders focusing on 5-minute execution after a sweep.
🔹 How to Use
1️⃣ Select your preferred liquidity sweep type in the settings.
2️⃣ Look for liquidity grabs at key price levels (e.g., swing highs/lows).
3️⃣ Use the liquidity sweep as a confirmation tool before entering trades.
4️⃣ Combine with VWAP, The Strat, or order blocks for higher probability setups.
🚀 Enhance your trading edge with smart money liquidity sweeps!
🔔 Follow for more trading tools & updates.
VoluTility🌊 VoluTility forecasts trend exhaustion, breakout pressure, and structural inflection by measuring volatility within the effort stream. Built on the concept of ATR applied to volume, it doesn’t read raw volume — it reveals whether that volume is stable, chaotic, or compressing ahead of a move. The goal is to detect structural setups before they resolve. The lower the timeframe, the greater the alpha.
🧠 Core Logic
A zero-centered histogram shows the deviation of smoothed volume from its own volatility baseline. Positive bars indicate expansion; negative bars signal compression. Color reflects rate-of-change in volume volatility. Opacity tracks effort/result strength — showing when moves are real or hollow.
The overlaid ribbon (EMA vs HMA) highlights rhythm shifts. Orange fill signals real expansion; yellow shows decay or absorption. Together, they expose pre-breakout compression and exhaustion tails before price reacts.
🏗️ Structural Read
On the 1H BTC chart shown, price coils into a shallow pullback, compressing within a narrow range marked by shrinking candle bodies and muted wick aggression. A sudden expansion candle breaks the coil cleanly, with no immediate rejection or wick reversion. Price holds above the breakout pivot, establishing a baseline for structural acceptance and shifting bias toward continuation.
🔰 Zone Descriptions
🔴 Volatile blowout
🟠 Clean expansion
🟡 Passive or absorbed effort
🟢 Steady-state rhythm
🔵 Compression coil
🧐 Suggested Use
VoluTility is expressly designed as an overlay for sub-pane indicators, where it acts as a second-order rhythm map — exposing hidden structural pressure within volume or volatility streams. When paired with volume (like ZVOL or OBVX), it highlights when flow is expanding with intent versus fading into noise. When layered over volatility signals (like ATR Turbulence or WIRE), it reveals whether expansion has real effort behind it — or is just structural slack.
It pairs especially well with the Relative Directional Index (RDI), where its histogram and ribbon offer early exhaustion signals before traditional trend or momentum fades appear. On raw momentum tools, it acts as a filter: softening false breaks and confirming pressure-backed continuation.
Run on 15m or lower charts for early entry cues or breakout anticipation. On 1H charts, use it to validate compression resolution or detect fatigue before structure turns. It doesn’t react to price — it forecasts readiness.
Delta Volume[integral]Delta Volume – Visualizing Accumulated Candle Dominance
This indicator measures and accumulates the net difference between bullish and bearish candle volumes over a user-defined range of bars. It integrates the volume dominance over time, offering traders a unique view into how buying or selling pressure has been distributed.
🔍 Concept & Logic
Delta Volume Calculation
For each bar, the script looks x to y bars back in time (e.g., from 10 bars ago to 5 bars ago) and:
Adds volume for bullish candles (close > open)
Subtracts volume for bearish candles (close < open)
This gives us a snapshot of volume dominance for that range.
What is Integration in This Context?
Integration, in this script, refers to the accumulation (summation) of these dominance differences over a period.
Much like integrating a function in calculus (i.e., area under the curve), here we are integrating the "net advantage" of buyers vs. sellers.
Over time, this builds a cumulative picture of directional pressure, showing whether buyers (positive integration) or sellers (negative integration) are in control.
Why It Matters
Unlike simple volume charts, this tool filters noise by focusing on who is dominating the market—buyers or sellers—and tracks that dominance over time.
It gives a macro-level view of pressure buildup, which can precede major breakouts or reversals.
📊 Visual Features
Buy Volume (green columns): Sum of volumes from bullish candles.
Sell Volume (red columns): Sum of volumes from bearish candles.
Candle Difference (white line): Net dominance difference (Buy - Sell).
Integrated Dominance Difference: Cumulative label showing the total buyer-seller dominance over the defined integration period.
Zero Line (dashed): Balance point.
🧠 Use Case
Detect divergences between price and cumulative volume pressure.
Confirm trend strength when integrated delta volume aligns with price movement.
Spot accumulation or distribution phases invisible on price action alone.
⚠️ If you're applying this to symbols with no volume data (e.g., certain Forex or indices), the script will stop with an error message.
Previous OHLC Levels with Lines, Labels & AlertsThis indicator displays the Previous Day, Previous Week, and Previous Month OHLC (Open, High, Low, Close) levels directly on your chart — complete with customizable horizontal lines, clean labels, and real-time alerts.
Each level can be toggled on or off and fully customized:
• Line color, thickness, style (solid, dashed, dotted)
• Label text color, size, and placement (left, center, right)
• Adjustable line length so they don’t clutter your chart
• Built-in price cross alerts for each level (manual and automatic support)
Ideal for traders who rely on:
• Support and resistance zones
• Price reaction levels
• Key breakout or rejection points
• Historical price action context
Works seamlessly across any timeframe and instrument.
Whether you’re trading intraday, swing, or even long-term — this tool keeps your charts clean, informative, and alert-ready.
Long Short Technical Ratings StrategyDefinition
This strategy is based on signals from the “ Long Short Technical Rating” indicator. Learn more about the signals generated by the rating indicator in the following article.
Key Takeaways
The strategy opens a long position when a “Strong Buy” signal appears, and a short position when a “Strong Sell” signal appears, as indicated by the Technical Rating indicator. The signals are generated based on a group of indicators. Using the “Rating Based On” input, you can choose which group of indicators to use for signal generation.
For all orders opened under this strategy:
A fixed stop loss is set at 3 × ATR(14).
A trailing stop, which is activated when the profit reaches 5 × ATR(14), is set at 2 × ATR(14) from the maximum profit after the trigger level is reached.
Note
TradingView does not recommend buying or selling any financial instrument solely based on the Technical Rating indicator's recommendations. These suggestions simply show when a collection of individual indicators meets certain conditions, which may help users identify potentially favorable trade setups — if aligned with their personal trading strategy.
Larsson Line Replica (Yellow = Bullish, Blue = Bearish)📘 Interpretation with Flipped Colors
🟨 Yellow Zones – Bullish Trend
• Signals uptrend confirmation.
• SMMA(15) > SMMA(29) indicates upward momentum.
• Ideal for:
• Holding or adding to long positions
• Buying pullbacks within or near the band
• Ignoring short setups on lower timeframes unless reversal signals show up
🟦 Blue Zones – Bearish Trend
• SMMA(15) < SMMA(29) confirms a downtrend.
• Useful for:
• Risk-off posture: take profits, reduce exposure
• Considering short trades
• Waiting out until trend flips yellow again before longing
🩶 Gray Zones – Transition / Unclear
• Represents possible trend change or indecision.
• Appears around crossovers.
• Great time to be cautious — wait for confirmation (either yellow or blue)
• Often coincides with low-volatility consolidation zones or false breakouts
📊 Timeframe Interpretation Tips (with Updated Colors)
🕰️ Weekly – Macro Regime Filter
• 🟨 Yellow = Swing longs allowed
• 🟦 Blue = Risk-off, short setups more reliable
• Use this timeframe as your macro bias anchor
• Combine with higher timeframe market structure, moving averages, or on-chain trends
⸻
📅 Daily – Tactical Entry & Position Management
• Use the slope of the bands for early momentum detection
• 🟦 Blue to Yellow flips = potential trend reversal to the upside → re-enter longs, cut shorts
• 🟨 Yellow to Blue flips = trend weakness or downtrend return → consider profit-taking or short setups
• Great timeframe for:
• Refining entries
• Managing exits
• Spotting trend shifts before weekly confirms
⸻
⏱ Lower Timeframes (4H, 1H) – Execution
• Treat the band like a dynamic trend channel
• Enter trades in direction of the current color:
• 🟨 Yellow → Buy pullbacks to the midline
• 🟦 Blue → Sell bounces into the midline
• Avoid trading against the band unless clear structure or divergence forms
• Pair with RSI/MACD for confluence
Stochastic Order Flow Momentum [ScorsoneEnterprises]This indicator implements a stochastic model of order flow using the Ornstein-Uhlenbeck (OU) process, combined with a Kalman filter to smooth momentum signals. It is designed to capture the dynamic momentum of volume delta, representing the net buying or selling pressure per bar, and highlight potential shifts in market direction. The volume delta data is sourced from TradingView’s built-in functionality:
www.tradingview.com
For a deeper dive into stochastic processes like the Ornstein-Uhlenbeck model in financial contexts, see these research articles: arxiv.org and arxiv.org
The SOFM tool aims to reveal the momentum and acceleration of order flow, modeled as a mean-reverting stochastic process. In markets, order flow often oscillates around a baseline, with bursts of buying or selling pressure that eventually fade—similar to how physical systems return to equilibrium. The OU process captures this behavior, while the Kalman filter refines the signal by filtering noise. Parameters theta (mean reversion rate), mu (mean level), and sigma (volatility) are estimated by minimizing a squared-error objective function using gradient descent, ensuring adaptability to real-time market conditions.
How It Works
The script combines a stochastic model with signal processing. Here’s a breakdown of the key components, including the OU equation and supporting functions.
// Ornstein-Uhlenbeck model for volume delta
ou_model(params, v_t, lkb) =>
theta = clamp(array.get(params, 0), 0.01, 1.0)
mu = clamp(array.get(params, 1), -100.0, 100.0)
sigma = clamp(array.get(params, 2), 0.01, 100.0)
error = 0.0
v_pred = array.new(lkb, 0.0)
array.set(v_pred, 0, array.get(v_t, 0))
for i = 1 to lkb - 1
v_prev = array.get(v_pred, i - 1)
v_curr = array.get(v_t, i)
// Discretized OU: v_t = v_{t-1} + theta * (mu - v_{t-1}) + sigma * noise
v_next = v_prev + theta * (mu - v_prev)
array.set(v_pred, i, v_next)
v_curr_clean = na(v_curr) ? 0 : v_curr
v_pred_clean = na(v_next) ? 0 : v_next
error := error + math.pow(v_curr_clean - v_pred_clean, 2)
error
The ou_model function implements a discretized Ornstein-Uhlenbeck process:
v_t = v_{t-1} + theta (mu - v_{t-1})
The model predicts volume delta (v_t) based on its previous value, adjusted by the mean-reverting term theta (mu - v_{t-1}), with sigma representing the volatility of random shocks (approximated in the Kalman filter).
Parameters Explained
The parameters theta, mu, and sigma represent distinct aspects of order flow dynamics:
Theta:
Definition: The mean reversion rate, controlling how quickly volume delta returns to its mean (mu). Constrained between 0.01 and 1.0 (e.g., clamp(array.get(params, 0), 0.01, 1.0)).
Interpretation: A higher theta indicates faster reversion (short-lived momentum), while a lower theta suggests persistent trends. Initial value is 0.1 in init_params.
In the Code: In ou_model, theta scales the pull toward \mu, influencing the predicted v_t.
Mu:
Definition: The long-term mean of volume delta, representing the equilibrium level of net buying/selling pressure. Constrained between -100.0 and 100.0 (e.g., clamp(array.get(params, 1), -100.0, 100.0)).
Interpretation: A positive mu suggests a bullish bias, while a negative mu indicates bearish pressure. Initial value is 0.0 in init_params.
In the Code: In ou_model, mu is the target level that v_t reverts to over time.
Sigma:
Definition: The volatility of volume delta, capturing the magnitude of random fluctuations. Constrained between 0.01 and 100.0 (e.g., clamp(array.get(params, 2), 0.01, 100.0)).
Interpretation: A higher sigma reflects choppier, noisier order flow, while a lower sigma indicates smoother behavior. Initial value is 0.1 in init_params.
In the Code: In the Kalman filter, sigma contributes to the error term, adjusting the smoothing process.
Summary:
theta: Speed of mean reversion (how fast momentum fades).
mu: Baseline order flow level (bullish or bearish bias).
sigma: Noise level (variability in order flow).
Other Parts of the Script
Clamp
A utility function to constrain parameters, preventing extreme values that could destabilize the model.
ObjectiveFunc
Defines the objective function (sum of squared errors) to minimize during parameter optimization. It compares the OU model’s predicted volume delta to observed data, returning a float to be minimized.
How It Works: Calls ou_model to generate predictions, computes the squared error for each timestep, and sums it. Used in optimization to assess parameter fit.
FiniteDifferenceGradient
Calculates the gradient of the objective function using finite differences. Think of it as finding the "slope" of the error surface for each parameter. It nudges each parameter (theta, mu, sigma) by a small amount (epsilon) and measures the change in error, returning an array of gradients.
Minimize
Performs gradient descent to optimize parameters. It iteratively adjusts theta, mu, and sigma by stepping down the "hill" of the error surface, using the gradients from FiniteDifferenceGradient. Stops when the gradient norm falls below a tolerance (0.001) or after 20 iterations.
Kalman Filter
Smooths the OU-modeled volume delta to extract momentum. It uses the optimized theta, mu, and sigma to predict the next state, then corrects it with observed data via the Kalman gain. The result is a cleaner momentum signal.
Applied
After initializing parameters (theta = 0.1, mu = 0.0, sigma = 0.1), the script optimizes them using volume delta data over the lookback period. The optimized parameters feed into the Kalman filter, producing a smoothed momentum array. The average momentum and its rate of change (acceleration) are calculated, though only momentum is plotted by default.
A rising momentum suggests increasing buying or selling pressure, while a flattening or reversing momentum indicates fading activity. Acceleration (not plotted here) could highlight rapid shifts.
Tool Examples
The SOFM indicator provides a dynamic view of order flow momentum, useful for spotting directional shifts or consolidation.
Low Time Frame Example: On a 5-minute chart of SEED_ALEXDRAYM_SHORTINTEREST2:NQ , a rising momentum above zero with a lookback of 5 might signal building buying pressure, while a drop below zero suggests selling dominance. Crossings of the zero line can mark transitions, though the focus is on trend strength rather than frequent crossovers.
High Time Frame Example: On a daily chart of NYSE:VST , a sustained positive momentum could confirm a bullish trend, while a sharp decline might warn of exhaustion. The mean-reverting nature of the OU process helps filter out noise on longer scales. It doesn’t make the most sense to use this on a high timeframe with what our data is.
Choppy Markets: When momentum oscillates near zero, it signals indecision or low conviction, helping traders avoid whipsaws. Larger deviations from zero suggest stronger directional moves to act on, this is on $STT.
Inputs
Lookback: Users can set the lookback period (default 5) to adjust the sensitivity of the OU model and Kalman filter. Shorter lookbacks react faster but may be noisier; longer lookbacks smooth more but lag slightly.
The user can also specify the timeframe they want the volume delta from. There is a default way to lower and expand the time frame based on the one we are looking at, but users have the flexibility.
No indicator is 100% accurate, and SOFM is no exception. It’s an estimation tool, blending stochastic modeling with signal processing to provide a leading view of order flow momentum. Use it alongside price action, support/resistance, and your own discretion for best results. I encourage comments and constructive criticism.
Institutional Entry ZonesThis script is designed to detect buying and selling zones based on liquidity grabs, pivot structures, and VWAP confirmation. It focuses on identifying high-probability reversal points near the extremes of the trading day, where large players are most likely to enter or exit positions.
Donchian Breakout Strategy📈 Donchian Breakout Strategy (Inspired by Way of the Turtle)
This strategy is a modern adaptation of the legendary Turtle Trading system as taught in Way of the Turtle by Curtis Faith — re-engineered for the crypto market’s volatility, 24/7 nature, and frequent fakeouts.
⸻
🐢 Original Inspiration
The original Turtle system, created by Richard Dennis and William Eckhardt, used:
• Breakouts of Donchian Channels (20-day for entry, 10-day for exit)
• Volatility-based position sizing using ATR (N)
• Simple rules, big trend exposure, and pyramiding to grow winners
It was built for futures and commodities, trading daily bars, assuming stable trading hours and regulated markets.
⸻
🚀 What’s Different in This Strategy?
✅ Optimized for Crypto
• Adapts to constant volatility and price manipulation common in crypto
• Adds commission modeling for realistic results (0.045% default)
✅ Improved Entry Filtering
• Uses EMA filter to align with trend direction
• Adds RSI momentum check to avoid early or weak breakouts
• Optional volatility and volume filters to reduce false signals
✅ Smarter Exits
• ATR-based volatility stop loss, not just Donchian reversal
• Avoids pyramiding to reduce risk from sudden reversals
✅ Backtest-Friendly
• Default backtest window starts from 2025-01-01
• Fully configurable: long/short toggle, filter control, stop loss multiplier
⸻
🧪 Use Case
• Best on trending coins with strong directional moves
• Avoids chop via filters, preserving capital
• Can be tuned for aggressive or conservative setups with just a few tweaks
FSH ATR MTF MonitorThe FSH ATR MTF Monitor tracks the Average True Range (ATR) and current range across six customizable timeframes, displaying the results in a table. When a timeframe’s range exceeds its ATR, the range value turns yellow, signaling heightened volatility. This multi-timeframe tool helps traders assess market conditions and plan entries or exits.
Key Features:
- Monitors ATR and range for up to six timeframes simultaneously.
- Customizable ATR length and timeframe inputs.
- Highlights ranges exceeding ATR in yellow for quick identification.
- Table display with toggle option for flexibility.
How to Use:
1. Add the indicator to your chart.
2. Adjust the ATR length and timeframes in the inputs as needed.
3. Watch for yellow range values to spot volatility spikes across timeframes.
4. Toggle the table off if not needed.
Ideal for scalpers, swing traders, or anyone analyzing volatility across multiple timeframes.
EMA or SMA CloudHow it works:
You can choose between EMA or SMA for all three moving averages using the maType input.
The clouds are filled based on the relationship between the moving averages:
Green cloud: The first MA is above the second MA.
Red cloud: The first MA is below the second MA.
How to Use:
Copy the code above.
Open TradingView.
Go to "Pine Editor" at the bottom of the screen.
Paste the code and click "Add to Chart."
In the indicator settings, you’ll be able to choose whether to use EMA or SMA for all three moving averages, and the chart will show the moving averages along with the corresponding clouds.
Engulfing Zone (With Confirmation)Just testing make new indicator using ChatGPT. This is still beta version.
How to use engulfing in trading?
1- Identify Engulfing Zone (Bullish/Bearish) in higher TF (H1-H4)
2- Observe current market price untill the price touch or enter the zone that we have marked early.
3- Wait for confirmation. We will use lower timeframe to identify either this zone valid or not.
4- When current market price enter zone, open lower tf m30 or m15 to find same engulfing formed. If the price in the Engulfing Sell zone, make sure tf m15 formed engulfing sell inside the zone. Vice versa.
I try to make it easy. But as you know, the candlestick pattern cant remain the same everytime. Thats why you will see error engulfing zone marked. I'll try to improve this indicator followed by engulfing pattern. If you dont know how engulfing pattern's look, you can make your own research. But i still hope this indicator will help our trading easily. Why i create this indicator? Its just alert for me that there is engulfing zone there and there. Because sometimes i dont have time to analysis the chart.
If anyone can make it better, I would greatly appreciate it.
Fair Value Gap [SB]SB - Fair Value Gap Indicator
This indicator automatically detects Fair Value Gaps (FVGs) and highlights them on the chart, helping traders identify potential liquidity imbalances. It dynamically marks bullish and bearish FVG zones, allowing for mitigation tracking and real-time alerts when price interacts with these gaps.
🔹 Features:
✅ Automatic FVG Detection – Highlights bullish (green) and bearish (red) FVGs.
✅ Customizable Extension – Extends FVG zones for better visibility (set to 200 or higher for clearer zones).
✅ Multi-Timeframe Support – Apply to any timeframe for deeper analysis.
✅ Mitigation Tracking – Tracks whether an FVG has been mitigated or remains unfilled.
🔧 Settings:
Extend: Default is 20, but set to 200 for clearer FVG zones.
Dynamic Mode: Adjusts FVG zones dynamically as price evolves.
Mitigation Levels: Shows whether price has mitigated an FVG.
Unmitigated Levels: Highlights active, unfilled gaps.
Timeframe Selection: Apply to a custom timeframe of your choice.
Ideal for traders using The Strat, Smart Money Concepts (SMC), or Supply & Demand strategies. 🚀
H4 3-Candle Pattern (Persistent Signals)Below is an example in Pine Script v5 that detects a pattern using the last three completed 4H candles and then plots a permanent arrow on the fourth candle (i.e. on the current bar) when the conditions are met. The arrow stays on that bar even after new bars form.
In this version, the pattern is evaluated as follows on each bar (when there are enough candles):
Bullish Pattern:
The candle three bars ago (oldest of the three) is bullish (its close is greater than its open).
The candle two bars ago closes above the high of that older candle.
The last completed candle (one bar ago) closes at or above the low of the candle two bars ago.
Bearish Pattern:
The candle three bars ago is bearish (its close is less than its open).
The candle two bars ago closes below the low of that older candle.
The last completed candle closes at or below the high of the candle two bars ago.
When the conditions are met the script draws a green up arrow below the current (fourth) candle for a bullish pattern and a red down arrow above the current candle for a bearish pattern. These arrows are drawn as regular plot symbols and remain on the chart permanently.
Copy and paste the code into TradingView’s Pine Script Editor:
Pin Bar & Momentum DetectorThis indicator is suitable for detecting an entry point, which is most commonly used in New York Time, but it can be adjusted. At the moment, by detecting a candlestick base or pin bar in the time frame and checking the average volume of the previous 5 candlesticks, which should be more than that, it shows you a momentum, and by taking the candlestick, it confirms that there is a second or third candlestick, which is in the form of a momentum candlestick, you can enter safely, and the stop behind the candlestick base and the target is at least 1/2 and 1/3. In each timeframe, you need to make adjustments, for example, in the 15-minute timeframe, the number of candlesticks in a day is 96, and their average is equal to 1 unit, and set the number of candlesticks in front of 96. Coming soon with the Ingalev candlestick will also be added
Cluster Price StepThis script allows you to calculate the optimal price step for current volatility when setting up cluster charts.
Day’s Open ForecastOverview
This Pine Script indicator combines two primary components:
1. Day’s Open Forecast:
o Tracks historical daily moves (up and down) from the day’s open.
o Calculates average up and down moves over a user-defined lookback period.
o Optionally includes standard deviation adjustments to forecast potential intraday levels.
o Plots lines on the chart for the forecasted up and down moves from the current day's open.
2. Session VWAP:
o Allows you to specify a custom trading session (by time range and UTC offset).
o Calculates and plots a Volume-Weighted Average Price (VWAP) during that session.
By combining these two features, you can gauge potential intraday moves relative to historical behavior from the open, while also tracking a session-specific VWAP that can act as a dynamic support/resistance reference.
How the Code Works
1. Collect Daily Moves
o The script detects when a new day starts using time("D").
o Once a new day is detected, it stores the previous day’s up-move (dayHigh - dayOpen) and down-move (dayOpen - dayLow) into arrays.
o These arrays keep track of the last N days (default: 126) of up/down move data.
2. Compute Statistics
o The script computes the average (f_average()) of up-moves and down-moves over the stored period.
o It also computes the standard deviation (f_stddev()) of up/down moves for optional “forecast bands.”
3. Forecast Lines
o Plots the current day’s open.
o Plots the average forecast lines above and below the open (Avg Up Move Level and Avg Down Move Level).
o If standard deviation is enabled, plots additional lines (Avg+StdDev Up and Avg+StdDev Down).
4. Session VWAP
o The script detects the start of a user-defined session (via input.session) and resets accumulation of volume and the numerator for VWAP.
o As each bar in the session updates, it accumulates volume (vwapCumulativeVolume) and a price-volume product (vwapCumulativeNumerator).
o The session VWAP is then calculated as (vwapCumulativeNumerator / vwapCumulativeVolume) and plotted.
5. Visualization Options
o Users can toggle standard deviation usage, historical up/down moves plotting, and whether to show the forecast “bands.”
o The vwapSession and vwapUtc inputs let you adjust which session (and time zone offset) the VWAP is calculated for.
________________________________________
How to Use This Indicator on TradingView
1. Create a New Script
o Open TradingView, then navigate to Pine Editor (usually found at the bottom of the chart).
o Copy and paste the entire code into the editor.
2. Save and Add to Chart
o Click Save (give it a relevant title if you wish), then click Add to chart.
o The indicator will appear on your chart with the forecast lines and VWAP.
o By default, it is overlayed on the price chart (because of overlay=true).
3. Customize Inputs
o In the indicator’s settings, you can:
Change lookback days (default: 126).
Enable or disable standard deviation (Include Standard Deviation in Forecast?).
Adjust the standard deviation multiplier.
Choose whether to plot bands (Plot Bands with Averages/StdDev?).
Plot historical moves if desired (Plot Historical Up/Down Moves for Reference?).
Set your custom session and UTC offset for the VWAP calculation.
4. Interpretation
o “Current Day Open” is simply today’s open price on your chart.
o Up/Down Move Lines: Indicate a potential forecast based on historical averages.
If standard deviation is enabled, the second set of lines acts as an extended range.
o VWAP: Helpful for determining intraday price equilibrium over the specified session.
Important Notes / Best Practices
• The script only updates the historical up/down move data once per day (when a new day starts).
• The VWAP portion resets at the start of the specified session each day.
• Standard deviation multiplies the average up/down range, giving you a sense of “volatility range” around the day’s open.
• Adjust the lookback length (dayCount) to balance how many days of data you want to average. More days = smoother but possibly slower to adapt; fewer days = more reactive but potentially less reliable historically.
Educational & Liability Disclaimers
1. Educational Disclaimer
o The information provided by this indicator is for educational and informational purposes only. It is a technical analysis tool intended to demonstrate how to use historical data and basic statistics in Pine Script.
2. No Financial Advice
o This script does not constitute financial or investment advice. All examples and explanations are solely illustrative. You should always do your own analysis before making any investment decisions.
3. No Liability
o The author of this script is not liable for any losses or damages—monetary or otherwise—that may occur from the application of this script.
o Past performance does not guarantee future results, and you should never invest money you cannot afford to lose.
By adding this indicator to your TradingView chart, you acknowledge and accept that you alone are responsible for your own trading decisions.
Enjoy using the “Day’s Open Forecast” and Session VWAP for better market insights!
furs Inside Bar FailureAs it says. If an inside bar breakout fails and closes back inside, target the other side of the Inside Bar.
Custom RSI Order Blocks MomentumIt shows when the currency is overbought or oversold and shows us where there are orders placed