AnchorPulse RWAP Universal ScalperWhat it is 
AnchorPulse Scalper is an intraday indicator that reads price in real time through three ideas working together.
A live pivot engine that detects the current micro leg.
An Anchored Range Weighted Average Price that starts at each new leg or session.
An adaptive rhythm score that communicates a simple bias: Buy, Sell, or Wait.
The goal is clarity. You get one anchor line, soft bands that show stretch, discrete Buy and Sell marks, and a plain-language dashboard that says Trend, Phase, Bias, Momentum, Volatility, Stretch, ETA to next turn, and Regime. No external dependencies and no lookahead. It is designed for standard chart types on one to five minute timeframes across liquid symbols such as major FX, index futures, large cap stocks, and mainstream crypto pairs.
 What makes it original 
Most scalpers either track a fixed moving average or draw from a session VWAP. AnchorPulse does neither. The anchor resets at every new micro leg detected by a real time pivot engine that measures distance in units of ATR rather than in fixed points. This produces a responsive anchor that updates only when the market proves a leg has turned. On top of that, the rhythm timer keeps an average of how long legs usually last, so the indicator can treat the start and the end of a leg differently. Early in a leg it favors continuation signals. Late in a leg it watches for mean reversion. This mix of an ATR-based leg detector, a leg-anchored RWAP, and a rhythm aware bias is the core originality.
 Plain explanation of the calculations 
Pivot engine. While price travels up, the script tracks the highest high reached since the last pivot. If price pulls back from that extreme by at least a user defined fraction of ATR, the leg flips down. The reverse applies to down legs. The distance threshold is adaptive because ATR changes with volatility. A short cooldown in bars can prevent double flips on violent bars.
Anchored Range Weighted Average Price. From the first bar of each new leg the script accumulates a weighted average of the typical price, where the weight is the true range of each bar. The anchor can also reset at the start of a session and can ignore the very first session bar to avoid overweighting the open gap.
Progress and phase. The script measures how far price traveled from the last pivot relative to the reversal threshold. That is progress. At the same time it maintains an exponential average of leg duration in bars. The current leg age divided by that average is the age ratio. An age ratio below an adaptive early threshold means Early. Above an adaptive late threshold means Late. The thresholds drift with recent variability in leg length so they match the rhythm of the market.
Wick pressure and intrabar skew. Lower wick minus upper wick, normalized by ATR and smoothed, acts as tape pressure. The sign of close minus open, smoothed, is intrabar skew. They are combined into a compact momentum read.
Bands and stretch. The script computes the deviation of typical price from the anchor and builds soft bands around the anchor. Standard deviation is capped by a multiple of mean absolute error to avoid inflated bands just after a pivot.
Regime filter. You may optionally gate continuation entries when the higher timeframe EMA disagrees, or gate reversals when ADX shows strong trend.
Adaptive edge score. Progress and momentum are turned into percentile scores using a normal CDF of their rolling z scores. This yields a familiar zero to one hundred scale that is easier to read than raw values. Early in an up leg adds a small bonus to long bias. Early in a down leg adds a small bonus to short bias.
Gap cap. Signals are rejected if price is too far from the anchor. The cap is expressed as a fraction of price, which scales across symbols.
 What you see on the chart 
One white anchor line. Two transparent bands. Subtle green or orange background when a bias is active. Buy marks below bars and Sell marks above bars. Small triangles at pivots. Bar tint softly aligned with momentum. A compact table in the corner that tells you the state in plain language. On alert, a single JSON line can be sent to your alert channel with ticker, timeframe, trend, phase, bias, edge score, stretch, ETA in bars, and regime note.
 
How to use it in practice 
Choose a liquid symbol and a one to five minute timeframe.
Keep the mode on Hybrid until you learn the personality of the market. If you notice long directional pushes, try Continuation mode. If you see frequent fades near the end of legs, try Reversal mode.
Read the table. Trend shows Up or Down according to the current leg. Phase shows Early, Mid, or Late from the rhythm timer. Bias shows Buy, Sell, or Wait once the signal rules and the gap cap are satisfied. Momentum reads Strong Up, Neutral, or Strong Down from wick pressure and skew. Volatility shows Calm, Average, or Wild relative to an ATR baseline. Stretch vs anchor prints the distance between close and the anchor as a percent of price. ETA shows how many bars remain to the average leg length if such a read is meaningful. Regime reflects the optional gate: None, HTF Up, HTF Down, Strong, or Soft.
Focus on the anchor. Continuation longs are stronger when price holds above the anchor in the first part of an up leg with positive momentum and adequate progress. Continuation shorts are the mirror case below the anchor. Reversal longs are stronger when a down leg is late, price crosses the anchor, and momentum flips positive. Reversal shorts are the mirror case in late up legs.
Respect the gap cap. When price is stretched far away from the anchor, skip signals and wait for re-alignment or a fresh leg.
Keep the chart clean. The script is designed to work on its own. If you add other tools, make sure they do not paint multiple backgrounds or heavy drawings that obscure the anchor and the bands.
Inputs explained with practical defaults
The script ships with sensible defaults and all inputs provide tooltips inside the indicator. The description here is included so traders who do not read code can still understand how to tune it.
Signal mode. Continuation uses early leg logic. Reversal uses late leg logic at anchor crosses. Hybrid allows both and lets the edge score decide.
ATR length and Pivot reversal in ATR. These govern flips. Shorter ATR and smaller reversal multiples yield faster turns and more signals. Longer and larger do the opposite. A middle ground such as ATR 50 with reversal 0.75 often reads well across liquid markets.
Rhythm smoothing length and Freeze bars after flip. The first sets how quickly the average leg length adapts. The second prevents double flips on wide bars. Values around 20 and 1 to 3 bars work well for most symbols.
Session hours, Session reset, and Skip first session bar. These are optional. Day sessions in equities can benefit from a reset and from skipping the first bar so the anchor is not dragged by the open gap. Round the session to your venue.
Wick pressure length and Intrabar skew length. They control how quickly the micro momentum reacts. Values between 6 and 12 for wick pressure and 4 to 10 for skew are common.
Early and Late thresholds and the Adaptive option. If you turn adaptation on, the thresholds drift with leg variability. The adaptiveness setting controls the strength of that drift.
Minimum progress and Maximum stretch vs anchor. The first ensures that continuation signals only occur once the leg moved a minimum distance from the last pivot. The second prevents chasing far from the anchor. As a rule, raise minimum progress when the market chops and reduce it on trend days. Keep stretch around one to two percent for many symbols, then adjust by product.
Regime filter. Higher timeframe EMA supports trend alignment. ADX supports a simple read on the strength of trend. Use one at a time or none, depending on your preference.
Adaptive scoring lookback. The percentile logic needs a modest window. Values near one hundred twenty bars tend to give stable ranks without lagging too much.
Band settings. Band length and width control the look of the soft channel around the anchor. The cap versus mean absolute error is there to keep the bands realistic just after flips.
Visual controls. Pick labels, triangles, or circles, and choose to mark only state changes if you prefer a very clean chart.
 Why the dashboard uses plain language 
Many traders prefer to reason in simple terms rather than in raw values. The table abstracts the math into natural categories such as Early versus Late, Calm versus Wild, or Strong Up versus Strong Down. The only numeric reads are Stretch and Edge score because these help in threshold decisions. Stretch is a percent of price so it scales across markets. Edge is a normalized score from zero to one hundred that reflects the combined progress, momentum, and phase. The table is intended to be the only element you need to glance at during a fast session once you learn the anchor and the band cues.
 Design choices and integrity 
No repaint. The script uses bar closes and standard Pine semantics with lookahead off in security calls. There are no offset tricks that move plotted values after the fact.
One background painter. Background tint is created by a single call to avoid vertical stripes.
Reset logic is explicit. The anchor resets at a pivot or at session start if that option is enabled. This is written to be transparent so you know why the anchor restarted.
Conservative defaults. Out of the box, the script is not tuned to over trade. It communicates bias rather than forcing entries.
Clean chart guidance. The tool is meant to be used on standard bars or candles. It is not intended for synthetic chart types such as Heikin Ashi, Renko, Kagi, Point and Figure, or Range for the purpose of signal generation.
 How to read a few common situations 
Breakout with strong follow through. Trend reads Up. Phase reads Early. Momentum reads Strong Up. Stretch sits inside the band. Bias shows Buy. This is the typical continuation long.
Extended push into exhaustion. Trend reads Up. Phase reads Late. Momentum cools. Stretch prints a high positive percent of price. Bias flips to Wait, sometimes to Sell after an anchor cross. This is the potential reversal short.
Mean reverting chop. Trend flips often. Phase hangs around Mid. Momentum flips sign frequently. Stretch hovers near zero. Bias often prints Wait. In this case you let the market speak and only act when the leg matures or when stretch spikes away from the anchor.
Trend day with strength. ADX filter reads Strong. Continuation is allowed. Reversal attempts are blocked. Bias favors the dominant direction.
Session open. If you selected a session reset and chose to skip the first bar, the anchor starts at the second bar and the first prints do not dominate the anchor.
Limits and realistic expectations
This indicator measures leg structure and micro pressure to suggest a bias. It is not a self-contained trading system. It does not size positions, pick stops, or set take profits. It does not promise accuracy or profits. In violent markets the pivot detector can flip and then flip back. Cooldown reduces this effect but cannot remove it. During news and illiquid hours the anchor can move very quickly. Wide slippage and spread can make any intraday approach impractical. These are standard realities of intraday trading and they also apply here.
 Suggested workflows 
Discretionary scalper. Keep the chart clean. Use the table to decide whether to engage, then work entries at the anchor or inside the band. Focus on position risk and a predefined stop level independent of the script.
Session specialist. If you trade a venue with strong sessions such as US equities or major FX sessions, enable the session reset. Many traders find the tool shines in the first two hours and the last hour of an active session.
Multi timeframe monitor. Keep AnchorPulse on one to five minutes and a simple higher timeframe EMA on a separate chart. If you prefer a single chart, switch the regime filter to HTF Trend and let the indicator handle it.
Alert driven workflow. Create alerts on Buy or Sell. The payload contains the essential context so you can log and review. Use the payload fields to build a small notebook of cases you like to take.
 Why it is published as protected 
The script contains original logic that relies on a compact set of calculations not commonly seen together. Publishing as protected keeps the logic intact while still giving the community full access through the Public Library. 
 Frequently asked questions 
Does it repaint
No. The pivot flips on confirmed bars using ATR distance. The anchor, bands, and dashboard read from that state and do not shift after the bar closes.
What settings should I change first
Try the reversal distance in ATR and the minimum progress. These two govern how active or selective the tool becomes. If you see too many flips, raise the ATR multiple or the freeze bars. If you want faster action, lower them slightly.
What is a reasonable stretch cap
One to two percent of price is a useful starting point for many symbols. Thin products may need a larger cap. Extremely liquid products can often work with a smaller cap.
Should I use the regime filter
On days with persistent trend, the higher timeframe EMA filter or the ADX filter can help keep you with the flow. On rotational days, consider turning the filter off to allow more two sided action.
Can I use it on higher timeframes
The logic works on any timeframe, but the design and defaults target one to five minutes. If you go higher, adjust the ATR length, reversal distance, and rank lookback accordingly.
Can I combine it with volume
Yes. A simple volume filter that marks above average volume near the anchor can help you time entries. Keep the chart readable.
 Risk notice and user responsibility 
This indicator is a tool for research and education. It does not give investment advice, trade recommendations, or any guarantee of outcomes. All trading carries risk including the loss of capital. Past performance is not a reliable guide to future results. You are solely responsible for your trading decisions, for verifying that the indicator behaves as you expect on your data and platform settings, and for selecting appropriate risk controls such as position sizing, stops, and loss limits.
 Summary 
AnchorPulse Scalper is a concise way to read the market’s current leg, its anchor, and its rhythm. The pivot engine tells you direction. The leg-anchored RWAP shows where value sits for this micro move. The adaptive score simplifies momentum and progress into a familiar scale. The dashboard translates complex calculations into the plain words that scalpers actually use. If you prefer simple signals, enable alerts and let them flow into your log. If you prefer context, watch the anchor and bands as the leg evolves and let the rhythm guide your timing. Use it respectfully on a clean chart, stay realistic, and keep your own rules for risk.
Scalptrading
KAMENICZKI PROSCAPLERPROSCAPLER is an advanced trading indicator that combines a dynamic channel with a prediction line for maximum accuracy and trading success. The indicator is designed for professional traders who need reliable signals with high success rates.
Adaptive Intelligence
Automatic optimal period detection - the indicator adapts to various market conditions
Intelligent timeframe settings - automatically optimizes periods based on TF
Dynamic adaptation - the channel changes according to volatility and trend.
High Signal Accuracy
Pearson R correlation - filters only strong trends with high reliability
Multi-timeframe confirmation - confirms signals on higher timeframe
Volatility and volume filters - eliminates false signals
RSI extreme values - captures only the best entry points
Prediction Line
Future price direction - shows where the price will move
Adaptive length - adapts to timeframe
Strong signals - when the entire prediction line is in the center of the channel
Quality Filters
Minimum Pearson R 0.5+ - only strong trends
Volume filter 1.2x - only signals with sufficient volume
ATR volatility filter - eliminates low volatility
RSI extreme levels - only at oversold/overbought values
Anomalies
Anomaly detection - captures exceptional opportunities
Bright yellow/pink color - immediately visible
Fast Reaction
Minimum trend bars = 1 - fast turning
Adaptive detection - immediate reaction to changes
Automatic optimizations - without manual settings
News & Volatility Filters
News filter - disables channel during high impact news
Volatility filter - protects against high volatility
Gap detection - filters dangerous gaps
Combined Filters
All filters must be met - maximum reliability
Multi-timeframe confirmation - double check
Pearson R validation - mathematical accuracy
Volume confirmation - institutional interest
Reaction Speed
Instant signals - without delay
Adaptive settings - automatic optimization
Fast turning - minimum 1 bar trend
Signal Accuracy
Quality filters increase success rate to 70-80%
Anomalies have 80-90% success rate
STRONG signals (prediction line in center) 85-95%
HAVE FUN :)
Dwaggy Scalping Trio (VWAP + EMA + RSI)First attempt at pine script this is a scalping indicator that combines VWAP, EMA, and RSI to signal entry/exit for scalping lower time frames
Multipower Entry SecretMultipower Entry Secret indicator is designed to be the ultimate trading companion for traders of all skill levels—especially those who struggle with decision-making due to unclear or overwhelming signals. Unlike conventional trading systems cluttered with too many lines and confusing alerts, this indicator provides a clear, adaptive, and actionable guide for market entries and exits.
Key Points:
Clear Buy/Sell/Wait Signals:
The script dynamically analyzes price action, candle patterns, volume, trend strength, and higher time frame context. This means it gives you “Buy,” “Sell,” or “Wait” signals based on real, meaningful market information—filtering out the noise and weak trades.
Multi-Timeframe Adaptive Analysis:
It synchronizes signals between higher and current timeframes, ensuring you get the most reliable direction—reducing the risk of getting caught in fake moves or sudden reversals.
Automatic Support, Resistance & Liquidity Zones:
Key levels like support, resistance, and liquidity zones are auto-detected and displayed directly on the chart, helping you make precise decisions without manual drawing.
Real-Time Dashboard:
All relevant information, such as trend strength, market intent, volume sentiment, and the reason behind each signal, is neatly summarized in a dashboard—making monitoring effortless and intuitive.
Customizable & Beginner-Friendly:
Whether you’re a newcomer wanting straightforward guidance or a professional needing advanced customization, the indicator offers flexible options to adjust analysis depth, timeframes, sensitivity, and more.
Visual & Clutter-Free:
The design ensures that your chart remains clean and readable, showing only the most important information. This minimizes mental overload and allows for instant decision-making.
Who Will Benefit?
Beginners who want to learn trading logic, avoid common traps, and see the exact reason behind every signal.
Advanced traders who require adaptive multi-timeframe analytics, fast execution, and stress-free monitoring.
Anyone who wants to save screen time, reduce analysis paralysis, and have more confidence in every trade they take.
1. No Indicator Clutter
Intent:
Many traders get confused by charts filled with too many indicators and signals. This often leads to hesitation, missed trades, or taking random, risky trades.
In this Indicator:
You get a clean and clutter-free chart. Only the most important buy/sell/wait signals and relevant support/resistance/liquidity levels are shown. These update automatically, removing the “overload” and keeping your focus sharp, so your decision-making is faster and stress-free.
2. Exact Entry Guide
Intent:
Traders often struggle with entry timing, leading to FOMO (fear of missing out) or getting trapped in sudden market reversals.
In this Indicator:
The system uses powerful adaptive logic to filter out weak signals and only highlight the strongest market moves. This not only prevents you from entering late or on noise, but also helps avoid losses from false breakouts or whipsaws. You get actionable suggestions—when to enter, when to hold back—so your entries are high-conviction and disciplined.
3. HTF+LTF Logic: Multitimeframe Sync Analysis
Intent:
Most losing trades happen when you act only on the short-term chart, ignoring the bigger market trend.
In this Indicator:
Signals are based on both the current chart timeframe (LTF) and a higher (HTF, like hourly/daily) timeframe. The indicator synchronizes trend direction, momentum, and structure across both levels, quickly adapting to show you when both are aligned. This filtering results in “only trade with the bigger trend”—dramatically increasing your win rate and market confidence.
4. Auto Support/Resistance & Liquidity Zones
Intent:
Drawing support/resistance and liquidity zones manually is time-consuming and error-prone, especially for beginners.
In this Indicator:
The system automatically identifies and plots the most crucial support/resistance levels and liquidity zones on your chart. This is based on adaptive, real-time price and volume analysis. These zones highlight where major institutional activity, trap setups, or real breakouts/reversals are most likely, removing guesswork and giving you a clear reference for entries, exits, and stop placements.
5. Clear Action/Direction
Intent:
Traders need certainty—what does the market want right now? Most indicators are vague.
In this Indicator:
Your dashboard always displays in plain words (like “BUY”, “SELL”, or “WAIT”) what action makes sense in the current market phase. Whether it’s a bull trap, volume spike, wick reversal, or exhaustion—it’s interpreted and explained clearly. No more confusion—just direct, real-time advice.
6. For Everyone (Beginner to Pro)
Intent:
Most advanced indicators are overwhelming for new traders; simple ones lack depth for professionals.
In this Indicator:
It is simple enough for a beginner—just add it to the chart and instantly see what action to consider. At the same time, it includes advanced adaptive analysis, multi-timeframe logic, and customizable settings so professional traders can fine-tune it for their strategies.
7. Ideal Usage and User Benefits
Instant Decision Support:
Whenever you’re unsure about a trade, just look at the indicator’s suggestion for clarity.
Entry Learning:
Beginners get real-time “practice” by not only seeing signals, but also the reason behind them—improving your chart reading and market understanding.
Screen Time & Stress Reduction:
Clear, relevant information only; no noise, less fatigue, faster decisions.
Makes Trading Confident & Simple:
The smart dashboard splits actionable levels (HTF, LTF, action) so you never miss a move, avoid traps, and stay aligned with high-probability trades.
8. Advanced Input Settings (Smart Customization)
Explained with Examples:
Enable Wick Analysis:
Finds candles with strong upper/lower wicks (signs of rejection/buying/selling force), alerting you to hidden reversals and protecting from FOMO entries.
Enable Absorption:
Detects when heavy order flow from one side is “absorbed” by the other (shows where institutional buyers/sellers are likely active, helps spot fake breakouts).
Enable Unusual Breakout:
Highlights real breakouts—large volatility plus high volume—so you catch genuine moves and avoid random spikes.
Enable Range/Expansion:
Smartly flags sudden range expansions—when the market goes from quiet to volatile—so you can act at the start of real trends.
Trend Bar Lookback:
Adjusts how many bars/candles are used in trend calculations. Short (fast trades, more signals), long (more reliability, fewer whipsaws).
Bull/Bear Bars for Strong Trend Min:
Sets how many candles in a row must support a trend before calling it “strong”—prevents flipping signals, keeps you disciplined.
Volume MA Length:
Lets you adjust how many bars back volume is averaged—fine-tune for your asset and trading style for best volume signals.
Swing Lookback Bars:
Set how many bars to use for swing high/low detection—short (quick swing levels), long (stronger support/resistance).
HTF (Bias Window):
Decide which higher timeframe the indicator should use for big-picture market mood. Adjustable for any style (scalp, swing, position).
Adaptive Lookback (HTF):
Choose how much HTF history is used for detecting major extremes/zones. Quick adjust for more/less sensitivity.
Show Support/Resistance, Liquidity Zones, Trendlines:
Toggle them on/off instantly per your needs—keeps your chart relevant and tailored.
9. Live Dashboard Sections Explained
Intent HTF:
Shows if the bigger timeframe currently has a Bullish, Bearish, or Neutral (“Chop”) intent, based on strict volume/price body calculations. Instant clarity—no more guessing on trend bias.
HTF Bias:
Clear message about which side (buy/sell/sideways) controls the market on the higher timeframe, so you always trade with the “big money.”
Chart Action:
The central action for the current bar—Whether to Buy, Sell, or Wait—calculated from all indicator logic, not just one rule.
TrendScore Long/Short:
See how many candles in your chosen window were bullish or bearish, at a glance. Instantly gauge market momentum.
Reason (WHY):
Every time a signal appears, the “reason” cell tells you the primary logic (breakout, wick, strong trend, etc.) behind it. Full transparency and learning—never trade blindly.
Strong Trend:
Shows if the market is currently in a powerful trend or not—helping you avoid choppy, risky entries.
HTF Vol/Body:
Displays current higher timeframe volume and candle body %—helping spot when big players are active for higher probability trades.
Volume Sentiment:
A real-time analysis of market psychology (strong bullish/bearish, neutral)—making your decision-making much more confident.
10. Smart and User-Friendly Design
Multi-timeframe Adaptive:
All calculations can now be drawn from your choice of higher or current timeframe, ensuring signals are filtered by larger market context.
Flexible Table Position:
You can set the live dashboard/summary anywhere on the chart for best visibility.
Refined Zone Visualization:
Liquidity and order blocks are visually highlighted, auto-tuning for your settings and always cleaning up to stay clutter-free.
Multi-Lingual & Beginner Accessible:
With Hindi and simple English support, descriptions and settings are accessible for a wide audience—anyone can start using powerful trading logic with zero language barrier.
Efficient Labels & Clear Reasoning:
Signal labels and reasons are shown/removed dynamically so your chart stays informative, not messy.
Every detail of this indicator is designed to make trading both simpler and smarter—helping you avoid the common pitfalls, learn real price action, stay in sync with the market’s true mood, and act with discipline for higher consistency and confidence.
This indicator makes professional-grade market analysis accessible to everyone. It’s your trusted assistant for making smarter, faster, and more profitable trading decisions—providing not just signals, but also the “why” behind every action. With auto-adaptive logic, clear visuals, and strong focus on real trading needs, it lets you focus on capturing the moves that matter—every single time.
ATAI Volume analysis with price action V 1.00ATAI Volume Analysis with Price Action  
 1. Introduction 
 1.1 Overview 
ATAI Volume Analysis with Price Action is a composite indicator designed for TradingView. It combines  per‑side volume data —that is, how much buying and selling occurs during each bar—with standard price‑structure elements such as swings, trend lines and support/resistance. By blending these elements the script aims to help a trader understand which side is in control, whether a breakout is genuine, when markets are potentially exhausted and where liquidity providers might be active.
The indicator is built around TradingView’s up/down volume feed accessed via the TradingView/ta/10 library. The following excerpt from the script illustrates how this feed is configured:
import TradingView/ta/10 as tvta
// Determine lower timeframe string based on user choice and chart resolution
string lower_tf_breakout = use_custom_tf_input ? custom_tf_input :
     timeframe.isseconds  ? "1S" :
     timeframe.isintraday ? "1"  :
     timeframe.isdaily    ? "5"  : "60"
// Request up/down volume (both positive)
  = tvta.requestUpAndDownVolume(lower_tf_breakout)
 Lower‑timeframe selection.  If you do not specify a custom lower timeframe, the script chooses a default based on your chart resolution:  1 second  for second charts,  1 minute  for intraday charts,  5 minutes  for daily charts and  60 minutes  for anything longer. Smaller intervals provide a more precise view of buyer and seller flow but cover fewer bars. Larger intervals cover more history at the cost of granularity.
 Tick vs. time bars.  Many trading platforms offer  a tick / intrabar calculation  mode that updates an indicator on every trade rather than only on bar close. Turning on one‑tick calculation will give the most accurate split between buy and sell volume on the current bar, but it typically reduces the amount of historical data available. For the highest fidelity in live trading you can enable this mode; for studying longer histories you might prefer to disable it. When volume data is completely unavailable (some instruments and crypto pairs), all modules that rely on it will remain silent and only the price‑structure backbone will operate.
  
 Figure caption,  Each panel shows the indicator’s info table for a different volume sampling interval. In the left chart, the parentheses “(5)” beside the buy‑volume figure denote that the script is aggregating volume over five‑minute bars; the center chart uses “(1)” for one‑minute bars; and the right chart uses “(1T)” for a one‑tick interval. These notations tell you which lower timeframe is driving the volume calculations. Shorter intervals such as 1 minute or 1 tick provide finer detail on buyer and seller flow, but they cover fewer bars; longer intervals like five‑minute bars smooth the data and give more history.
   
 Figure caption, The values in parentheses inside the info table come directly from the Breakout — Settings. The first row shows the custom lower-timeframe used for volume calculations (e.g., “(1)”, “(5)”, or “(1T)”)
 2. Price‑Structure Backbone 
Even without volume, the indicator draws structural features that underpin all other modules. These features are always on and serve as the reference levels for subsequent calculations.
 2.1 What it draws 
•	 Pivots:  Swing  highs  and  lows  are detected using the pivot_left_input and pivot_right_input settings. A pivot high is identified when the high recorded pivot_right_input bars ago exceeds the highs of the preceding pivot_left_input bars and is also higher than (or equal to) the highs of the subsequent pivot_right_input bars; pivot lows follow the inverse logic. The indicator retains only a fixed number of such pivot points per side, as defined by point_count_input, discarding the oldest ones when the limit is exceeded.
•	 Trend lines:  For each side, the indicator connects the earliest stored pivot and the most recent pivot (oldest high to newest high, and oldest low to newest low). When a new pivot is added or an old one drops out of the lookback window, the line’s endpoints—and therefore its slope—are recalculated accordingly.
•	 Horizontal support/resistance:  The highest high and lowest low within the lookback window defined by length_input are plotted as horizontal dashed lines. These serve as short‑term support and resistance levels.
•	 Ranked labels:  If showPivotLabels is enabled the indicator prints labels such as “HH1”, “HH2”, “LL1” and “LL2” near each pivot. The ranking is determined by comparing the price of each stored pivot: HH1 is the highest high, HH2 is the second highest, and so on; LL1 is the lowest low, LL2 is the second lowest. In the case of equal prices the newer pivot gets the better rank. Labels are offset from price using  ½ × ATR × label_atr_multiplier,  with the ATR length defined by label_atr_len_input. A dotted connector links each label to the candle’s wick.
 2.2 Key settings 
•	 length_input:  Window length for finding the highest and lowest values and for determining trend line endpoints. A larger value considers more history and will generate longer trend lines and S/R levels.
•	 pivot_left_input, pivot_right_input:  Strictness of swing confirmation. Higher values require more bars on either side to form a pivot; lower values create more pivots but may include minor swings.
•	 point_count_input:  How many pivots are kept in memory on each side. When new pivots exceed this number the oldest ones are discarded.
•	 label_atr_len_input and label_atr_multiplier:  Determine how far pivot labels are offset from the bar using ATR. Increasing the multiplier moves labels further away from price.
•	 Styling inputs  for trend lines, horizontal lines and labels (color, width and line style).
  
 Figure caption,  The chart illustrates how the indicator’s price‑structure backbone operates. In this daily example, the script scans for bars where the high (or low) pivot_right_input bars back is higher (or lower) than the preceding pivot_left_input bars and higher or lower than the subsequent pivot_right_input bars; only those bars are marked as pivots.
     These pivot points are stored and ranked: the highest high is labelled “HH1”, the second‑highest “HH2”, and so on, while lows are marked “LL1”, “LL2”, etc. Each label is offset from the price by half of an ATR‑based distance to keep the chart clear, and a dotted connector links the label to the actual candle.
     The red diagonal line connects the earliest and latest stored high pivots, and the green line does the same for low pivots; when a new pivot is added or an old one drops out of the lookback window, the end‑points and slopes adjust accordingly. Dashed horizontal lines mark the highest high and lowest low within the current lookback window, providing visual support and resistance levels. Together, these elements form the structural backbone that other modules reference, even when volume data is unavailable.
 3. Breakout Module 
 3.1 Concept 
This module confirms that a price break beyond a recent high or low is supported by a genuine shift in buying or selling pressure. It requires price to clear the highest high (“HH1”) or lowest low (“LL1”) and, simultaneously, that the winning side shows a significant volume spike, dominance and ranking. Only  when all volume and price conditions pass  is a breakout labelled.
 3.2 Inputs 
•	 lookback_break_input :  This controls the number of bars used to compute moving averages and percentiles for volume. A larger value smooths the averages and percentiles but makes the indicator respond more slowly.
•	 vol_mult_input : The “spike” multiplier; the current buy or sell volume must be at least this multiple of its moving average over the lookback window to qualify as a breakout.
•	 rank_threshold_input (0–100) :  Defines a volume percentile cutoff: the current buyer/seller volume must be in the top (100−threshold)%(100−threshold)% of all volumes within the lookback window. For example, if set to 80, the current volume must be in the top 20 % of the lookback distribution.
•	 ratio_threshold_input (0–1) :  Specifies the minimum share of total volume that the buyer (for a bullish breakout) or seller (for bearish) must hold on the current bar; the code also requires that the cumulative buyer volume over the lookback window exceeds the seller volume (and vice versa for bearish cases).
•	 use_custom_tf_input / custom_tf_input :  When enabled, these inputs override the automatic choice of lower timeframe for up/down volume; otherwise the script selects a sensible default based on the chart’s timeframe.
•	 Label appearance settings :  Separate options control the ATR-based offset length, offset multiplier, label size and colors for bullish and bearish breakout labels, as well as the connector style and width.
 3.3 Detection logic 
 1.	Data preparation : Retrieve per‑side volume from the lower timeframe and take absolute values. Build rolling arrays of the last lookback_break_input values to compute simple moving averages (SMAs), cumulative sums and percentile ranks for buy and sell volume.
 2.	Volume spike:  A spike is flagged when the current buy (or, in the bearish case, sell) volume is at least vol_mult_input times its SMA over the lookback window.
 3.	Dominance test:  The buyer’s (or seller’s) share of total volume on the current bar must meet or exceed ratio_threshold_input. In addition, the cumulative sum of buyer volume over the window must exceed the cumulative sum of seller volume for a bullish breakout (and vice versa for bearish). A separate requirement checks the sign of delta: for bullish breakouts delta_breakout must be non‑negative; for bearish breakouts it must be non‑positive.
 4.	Percentile rank:  The current volume must fall within the top (100 – rank_threshold_input) percent of the lookback distribution—ensuring that the spike is unusually large relative to recent history.
 5.	Price test:  For a bullish signal, the closing price must close above the highest pivot (HH1); for a bearish signal, the close must be below the lowest pivot (LL1).
 6.	Labeling:  When all conditions above are satisfied, the indicator prints “Breakout ↑” above the bar (bullish) or “Breakout ↓” below the bar (bearish). Labels are offset using half of an ATR‑based distance and linked to the candle with a dotted connector.
  
 Figure caption,  (Breakout ↑ example) , On this daily chart, price pushes above the red trendline and the highest prior pivot (HH1). The indicator recognizes this as a valid breakout because the buyer‑side volume on the lower timeframe spikes above its recent moving average and buyers dominate the volume statistics over the lookback period; when combined with a close above HH1, this satisfies the breakout conditions. The “Breakout ↑” label appears above the candle, and the info table highlights that up‑volume is elevated relative to its 11‑bar average, buyer share exceeds the dominance threshold and money‑flow metrics support the move.
  
 Figure caption,  In this daily example, price breaks below the lowest pivot (LL1) and the lower green trendline. The indicator identifies this as a bearish breakout because sell‑side volume is sharply elevated—about twice its 11‑bar average—and sellers dominate both the bar and the lookback window. With the close falling below LL1, the script triggers a Breakout ↓ label and marks the corresponding row in the info table, which shows strong down volume, negative delta and a seller share comfortably above the dominance threshold.
 4. Market Phase Module (Volume Only) 
 4.1 Concept 
Not all markets trend; many cycle between periods of  accumulation  (buying pressure building up),  distribution  (selling pressure dominating) and  neutral  behavior. This module classifies the current bar into one of these phases  without using ATR , relying solely on buyer and seller volume statistics. It looks at net flows, ratio changes and an OBV‑like cumulative line with dual‑reference (1‑ and 2‑bar) trends. The result is displayed both as on‑chart labels and in a dedicated row of the info table.
 4.2 Inputs 
•	 phase_period_len:  Number of bars over which to compute sums and ratios for phase detection.
•	 phase_ratio_thresh : Minimum buyer share (for accumulation) or minimum seller share (for distribution, derived as 1 − phase_ratio_thresh) of the total volume.
•	 strict_mode:  When enabled, both the 1‑bar and 2‑bar changes in each statistic must agree on the direction (strict confirmation); when disabled, only one of the two references needs to agree (looser confirmation).
•	 Color customisation  for info table cells and label styling for accumulation and distribution phases, including ATR length, multiplier, label size, colors and connector styles.
•	 show_phase_module:  Toggles the entire phase detection subsystem.
•	 show_phase_labels:  Controls whether on‑chart labels are drawn when accumulation or distribution is detected.
 4.3 Detection logic 
The module computes three families of statistics over the volume window defined by phase_period_len:
 1.	Net sum (buyers minus sellers):  net_sum_phase = Σ(buy) − Σ(sell). A positive value indicates a predominance of buyers. The code also computes the differences between the current value and the values 1 and 2 bars ago (d_net_1, d_net_2) to derive up/down trends.
 2.	Buyer ratio:  The instantaneous ratio TF_buy_breakout / TF_tot_breakout and the window ratio Σ(buy) / Σ(total). The current ratio must exceed phase_ratio_thresh for accumulation or fall below 1 − phase_ratio_thresh for distribution. The first and second differences of the window ratio (d_ratio_1, d_ratio_2) determine trend direction.
 3.	OBV‑like cumulative net flow:  An on‑balance volume analogue obv_net_phase increments by TF_buy_breakout − TF_sell_breakout each bar. Its differences over the last 1 and 2 bars (d_obv_1, d_obv_2) provide trend clues.
The algorithm then combines these signals:
•	For  strict mode , accumulation requires: (a) current ratio ≥ threshold, (b) cumulative ratio ≥ threshold, (c) both ratio differences ≥ 0, (d) net sum differences ≥ 0, and (e) OBV differences ≥ 0. Distribution is the mirror case.
•	For  loose mode , it relaxes the directional tests: either the 1‑ or the 2‑bar difference needs to agree in each category.
If all conditions for accumulation are satisfied, the phase is labelled  “Accumulation” ; if all conditions for distribution are satisfied, it’s labelled  “Distribution” ; otherwise the phase is  “Neutral” .
 4.4 Outputs 
•	 Info table row : Row 8 displays “Market Phase (Vol)” on the left and the detected phase (Accumulation, Distribution or Neutral) on the right. The text colour of both cells matches a user‑selectable palette (typically green for accumulation, red for distribution and grey for neutral).
•	 On‑chart labels : When show_phase_labels is enabled and a phase persists for at least one bar, the module prints a label above the bar ( “Accum” ) or below the bar ( “Dist” ) with a dashed or dotted connector. The label is offset using ATR based on phase_label_atr_len_input and phase_label_multiplier and is styled according to user preferences.
  
 Figure caption, The chart displays a red “Dist” label above a particular bar, indicating that the accumulation/distribution module identified a distribution phase at that point. The detection is based on seller dominance: during that bar, the net buyer-minus-seller flow and the OBV‑style cumulative flow were trending down, and the buyer ratio had dropped below the preset threshold. These conditions satisfy the distribution criteria in strict mode. The label is placed above the bar using an ATR‑based offset and a dashed connector. By the time of the current bar in the screenshot, the phase indicator shows “Neutral” in the info table—signaling that neither accumulation nor distribution conditions are currently met—yet the historical “Dist” label remains to mark where the prior distribution phase began.
  
 Figure caption, In this example the market phase module has signaled an Accumulation phase. Three bars before the current candle, the algorithm detected a shift toward buyers: up‑volume exceeded its moving average, down‑volume was below average, and the buyer share of total volume climbed above the threshold while the on‑balance net flow and cumulative ratios were trending upwards. The blue “Accum” label anchored below that bar marks the start of the phase; it remains on the chart because successive bars continue to satisfy the accumulation conditions. The info table confirms this: the “Market Phase (Vol)” row still reads Accumulation, and the ratio and sum rows show buyers dominating both on the current bar and across the lookback window.
 5. OB/OS Spike Module 
 5.1 What overbought/oversold means here 
In many markets, a rapid extension up or down is often followed by a period of consolidation or reversal. The indicator interprets overbought (OB) conditions as abnormally strong selling risk at or after a price rally and oversold (OS) conditions as unusually strong buying risk after a decline. Importantly, these are not direct trade signals; rather they flag areas where caution or contrarian setups may be appropriate.
 5.2 Inputs 
•	 minHits_obos (1–7):  Minimum number of oscillators that must agree on an overbought or oversold condition for a label to print.
•	 syncWin_obos:  Length of a small sliding window over which oscillator votes are smoothed by taking the maximum count observed. This helps filter out choppy signals.
•	 Volume spike criteria:  kVolRatio_obos (ratio of current volume to its SMA) and zVolThr_obos (Z‑score threshold) across volLen_obos. Either threshold can trigger a spike.
•	 Oscillator toggles and periods:  Each of RSI, Stochastic (K and D), Williams %R, CCI, MFI, DeMarker and Stochastic RSI can be independently enabled; their periods are adjustable.
•	 Label appearance:  ATR‑based offset, size, colors for OB and OS labels, plus connector style and width.
 5.3 Detection logic 
 1.	Directional volume spikes:  Volume spikes are computed separately for buyer and seller volumes. A sell volume spike (sellVolSpike) flags a potential OverBought bar, while a buy volume spike (buyVolSpike) flags a potential OverSold bar. A spike occurs when the respective volume exceeds kVolRatio_obos times its simple moving average over the window or when its Z‑score exceeds zVolThr_obos.
 2.	Oscillator votes:  For each enabled oscillator, calculate its overbought and oversold state using standard thresholds (e.g., RSI ≥ 70 for OB and ≤ 30 for OS; Stochastic %K/%D ≥ 80 for OB and ≤ 20 for OS; etc.). Count how many oscillators vote for OB and how many vote for OS.
 3.	Minimum hits:  Apply the smoothing window syncWin_obos to the vote counts using a maximum‑of‑last‑N approach. A candidate bar is only considered if the smoothed OB hit count ≥ minHits_obos (for OverBought) or the smoothed OS hit count ≥ minHits_obos (for OverSold).
 4.	Tie‑breaking:  If both OverBought and OverSold spike conditions are present on the same bar, compare the smoothed hit counts: the side with the higher count is selected; ties default to OverBought.
 5.	Label printing:  When conditions are met, the bar is labelled as “OverBought X/7” above the candle or “OverSold X/7” below it. “X” is the number of oscillators confirming, and the bracket lists the abbreviations of contributing oscillators. Labels are offset from price using half of an ATR‑scaled distance and can optionally include a dotted or dashed connector line.
  
 Figure caption,  In this chart the overbought/oversold module has flagged an OverSold signal. A sell‑off from the prior highs brought price down to the lower trend‑line, where the bar marked “OverSold 3/7 DeM” appears. This label indicates that on that bar the module detected a buy‑side volume spike and that at least three of the seven enabled oscillators—in this case including the DeMarker—were in oversold territory. The label is printed below the candle with a dotted connector, signaling that the market may be temporarily exhausted on the downside. After this oversold print, price begins to rebound towards the upper red trend‑line and higher pivot levels.
  
 Figure caption, This example shows the overbought/oversold module in action. In the left‑hand panel you can see the OB/OS settings where each oscillator  (RSI, Stochastic, Williams %R, CCI, MFI, DeMarker and Stochastic RSI)  can be enabled or disabled, and the ATR length and label offset multiplier adjusted. On the chart itself, price has pushed up to the descending red trendline and triggered an “OverBought 3/7” label. That means the sell‑side volume spiked relative to its average and three out of the seven enabled oscillators were in overbought territory. The label is offset above the candle by half of an ATR and connected with a dashed line, signaling that upside momentum may be overextended and a pause or pullback could follow.
 6. Buyer/Seller Trap Module 
 6.1 Concept 
A bull trap occurs when price appears to break above resistance, attracting buyers, but fails to sustain the move and quickly reverses, leaving a long upper wick and trapping late entrants. A bear trap is the opposite: price breaks below support, lures in sellers, then snaps back, leaving a long lower wick and trapping shorts. This module detects such traps by looking for price structure sweeps, order‑flow mismatches and dominance reversals. It uses a scoring system to differentiate risk from confirmed traps.
 6.2 Inputs 
•	 trap_lookback_len:  Window length used to rank extremes and detect sweeps.
•	 trap_wick_threshold:  Minimum proportion of a bar’s range that must be wick (upper for bull traps, lower for bear traps) to qualify as a sweep.
•	 trap_score_risk:  Minimum aggregated score required to flag a trap risk. (The code defines a trap_score_confirm input, but confirmation is actually based on price reversal rather than a separate score threshold.)
•	 trap_confirm_bars:  Maximum number of bars allowed for price to reverse and confirm the trap. If price does not reverse in this window, the risk label will expire or remain unconfirmed.
•	 Label settings:  ATR length and multiplier for offsetting, size, colours for risk and confirmed labels, and connector style and width. Separate settings exist for bull and bear traps.
•	 Toggle inputs:  show_trap_module and show_trap_labels enable the module and control whether labels are drawn on the chart.
 6.3 Scoring logic 
The module assigns points to several conditions and sums them to determine whether a trap risk is present. For bull traps, the score is built from the following (bear traps mirror the logic with highs and lows swapped):
 1.	Sweep (2 points):  Price trades above the high pivot (HH1) but fails to close above it and leaves a long upper wick at least trap_wick_threshold × range. For bear traps, price dips below the low pivot (LL1), fails to close below and leaves a long lower wick.
 2.	Close break (1 point):  Price closes beyond HH1 or LL1 without leaving a long wick.
 3.	Candle/delta mismatch (2 points):  The candle closes bullish yet the order flow delta is negative or the seller ratio exceeds 50%, indicating hidden supply. Conversely, a bearish close with positive delta or buyer dominance suggests hidden demand.
 4.	Dominance inversion (2 points):  The current bar’s buyer volume has the highest rank in the lookback window while cumulative sums favor sellers, or vice versa.
 5.	Low‑volume break (1 point):  Price crosses the pivot but total volume is below its moving average.
The total score for each side is compared to trap_score_risk. If the score is high enough, a  “Bull Trap Risk”  or  “Bear Trap Risk”  label is drawn, offset from the candle by half of an ATR‑scaled distance using a dashed outline. If, within trap_confirm_bars, price reverses beyond the opposite level—drops back below the high pivot for bull traps or rises above the low pivot for bear traps—the label is upgraded to a solid  “Bull Trap”  or  “Bear Trap” . In this version of the code, there is no separate score threshold for confirmation: the variable trap_score_confirm is unused; confirmation depends solely on a successful price reversal within the specified number of bars.
  
 Figure caption, In this example the trap module has flagged a Bear Trap Risk. Price initially breaks below the most recent low pivot (LL1), but the bar closes back above that level and leaves a long lower wick, suggesting a failed push lower. Combined with a mismatch between the candle direction and the order flow (buyers regain control) and a reversal in volume dominance, the aggregate score exceeds the risk threshold, so a dashed “Bear Trap Risk” label prints beneath the bar. The green and red trend lines mark the current low and high pivot trajectories, while the horizontal dashed lines show the highest and lowest values in the lookback window. If, within the next few bars, price closes decisively above the support, the risk label would upgrade to a solid “Bear Trap” label.
  
 Figure caption, In this example the trap module has identified both ends of a price range. Near the highs, price briefly pushes above the descending red trendline and the recent pivot high, but fails to close there and leaves a noticeable upper wick. That combination of a sweep above resistance and order‑flow mismatch generates a Bull Trap Risk label with a dashed outline, warning that the upside break may not hold. At the opposite extreme, price later dips below the green trendline and the labelled low pivot, then quickly snaps back and closes higher. The long lower wick and subsequent price reversal upgrade the previous bear‑trap risk into a confirmed Bear Trap (solid label), indicating that sellers were caught on a false breakdown. Horizontal dashed lines mark the highest high and lowest low of the lookback window, while the red and green diagonals connect the earliest and latest pivot highs and lows to visualize the range.
 7. Sharp Move Module 
 7.1 Concept 
Markets sometimes display absorption or climax behavior—periods when one side steadily gains the upper hand before price breaks out with a sharp move. This module evaluates several order‑flow and volume conditions to anticipate such moves. Users can choose how many conditions must be met to flag a risk and how many (plus a price break) are required for confirmation.
 7.2 Inputs 
 •	sharp Lookback:  Number of bars in the window used to compute moving averages, sums, percentile ranks and reference levels.
 •	sharpPercentile:  Minimum percentile rank for the current side’s volume; the current buy (or sell) volume must be greater than or equal to this percentile of historical volumes over the lookback window.
 •	sharpVolMult:  Multiplier used in the volume climax check. The current side’s volume must exceed this multiple of its average to count as a climax.
 •	sharpRatioThr:  Minimum dominance ratio (current side’s volume relative to the opposite side) used in both the instant and cumulative dominance checks.
 •	sharpChurnThr:  Maximum ratio of a bar’s range to its ATR for absorption/churn detection; lower values indicate more absorption (large volume in a small range).
 •	sharpScoreRisk:  Minimum number of conditions that must be true to print a risk label.
 •	sharpScoreConfirm:  Minimum number of conditions plus a price break required for confirmation.
 •	sharpCvdThr:  Threshold for cumulative delta divergence versus price change (positive for bullish accumulation, negative for bearish distribution).
 •	Label settings:  ATR length (sharpATRlen) and multiplier (sharpLabelMult) for positioning labels, label size, colors and connector styles for bullish and bearish sharp moves.
 •	Toggles:  enableSharp activates the module; show_sharp_labels controls whether labels are drawn.
 7.3 Conditions (six per side) 
For each side, the indicator computes six boolean conditions and sums them to form a score:
 1.	Dominance (instant and cumulative): 
–	 Instant dominance:  current buy volume ≥ sharpRatioThr × current sell volume.
–	 Cumulative dominance:  sum of buy volumes over the window ≥ sharpRatioThr × sum of sell volumes (and vice versa for bearish checks).
 2.	Accumulation/Distribution divergence:  Over the lookback window, cumulative delta rises by at least sharpCvdThr while price fails to rise (bullish), or cumulative delta falls by at least sharpCvdThr while price fails to fall (bearish).
 3.	Volume climax:  The current side’s volume is ≥ sharpVolMult × its average and the product of volume and bar range is the highest in the lookback window.
 4.	Absorption/Churn:  The current side’s volume divided by the bar’s range equals the highest value in the window and the bar’s range divided by ATR ≤ sharpChurnThr (indicating large volume within a small range).
 5.	Percentile rank:  The current side’s volume percentile rank is ≥ sharp Percentile.
 6.	Mirror logic for sellers:  The above checks are repeated with buyer and seller roles swapped and the price break levels reversed.
Each condition that passes contributes one point to the corresponding side’s score (0 or 1). Risk and confirmation thresholds are then applied to these scores.
 7.4 Scoring and labels 
 •	Risk:  If scoreBull ≥ sharpScoreRisk, a “Sharp ↑ Risk” label is drawn above the bar. If scoreBear ≥ sharpScoreRisk, a “Sharp ↓ Risk” label is drawn below the bar.
 •	Confirmation:  A risk label is upgraded to “Sharp ↑” when scoreBull ≥ sharpScoreConfirm and the bar closes above the highest recent pivot (HH1); for bearish cases, confirmation requires scoreBear ≥ sharpScoreConfirm and a close below the lowest pivot (LL1).
 •	Label positioning:  Labels are offset from the candle by ATR × sharpLabelMult (full ATR times multiplier), not half, and may include a dashed or dotted connector line if enabled.
  
 Figure caption, In this chart both bullish and bearish sharp‑move setups have been flagged. Earlier in the range, a  “Sharp ↓ Risk”  label appears beneath a candle: the sell‑side score met the risk threshold, signaling that the combination of strong sell volume, dominance and absorption within a narrow range suggested a potential sharp decline. The price did not close below the lower pivot, so this label remains a “risk” and no confirmation occurred. Later, as the market recovered and volume shifted back to the buy side, a  “Sharp ↑ Risk”  label prints above a candle near the top of the channel. Here, buy‑side dominance, cumulative delta divergence and a volume climax aligned, but price has not yet closed above the upper pivot (HH1), so the alert is still a risk rather than a confirmed sharp‑up move.
  
 Figure caption, In this chart a Sharp ↑ label is displayed above a candle, indicating that the sharp move module has confirmed a bullish breakout. Prior bars satisfied the risk threshold — showing buy‑side dominance, positive cumulative delta divergence, a volume climax and strong absorption in a narrow range — and this candle closes above the highest recent pivot, upgrading the earlier “Sharp ↑ Risk” alert to a full Sharp ↑ signal. The green label is offset from the candle with a dashed connector, while the red and green trend lines trace the high and low pivot trajectories and the dashed horizontals mark the highest and lowest values of the lookback window.
 8. Market‑Maker / Spread‑Capture Module 
 8.1 Concept 
Liquidity providers often  “capture the spread”  by buying and selling in almost equal amounts within a very narrow price range. These bars can signal temporary congestion before a move or reflect algorithmic activity. This module flags bars where  both buyer and seller volumes are high,  the price range is only a few ticks and the buy/sell split remains close to 50%. It helps traders spot potential liquidity pockets.
 8.2 Inputs 
 •	scalpLookback:  Window length used to compute volume averages.
 •	scalpVolMult:  Multiplier applied to each side’s average volume; both buy and sell volumes must exceed this multiple.
 •	scalpTickCount:  Maximum allowed number of ticks in a bar’s range (calculated as (high − low) / minTick). A value of 1 or 2 captures ultra‑small bars; increasing it relaxes the range requirement.
 •	scalpDeltaRatio:  Maximum deviation from a perfect 50/50 split. For example, 0.05 means the buyer share must be between 45% and 55%.
 •	Label settings:  ATR length, multiplier, size, colors, connector style and width.
 •	Toggles :  show_scalp_module and show_scalp_labels to enable the module and its labels.
 8.3 Signal 
When, on the current bar, both TF_buy_breakout and TF_sell_breakout exceed scalpVolMult times their respective averages and (high − low)/minTick ≤ scalpTickCount and the buyer share is within scalpDeltaRatio of 50%, the module prints a  “Spread ↔”  label above the bar. The label uses the same ATR offset logic as other modules and draws a connector if enabled.
  
 Figure caption, In this chart the spread‑capture module has identified a potential liquidity pocket. Buyer and seller volumes both spiked above their recent averages, yet the candle’s range measured only a couple of ticks and the buy/sell split stayed close to 50 %. This combination met the module’s criteria, so it printed a grey “Spread ↔” label above the bar. The red and green trend lines link the earliest and latest high and low pivots, and the dashed horizontals mark the highest high and lowest low within the current lookback window.
 9. Money Flow Module 
 9.1 Concept 
To translate volume into a monetary measure, this module multiplies each side’s volume by the closing price. It tracks buying and selling system money default currency on a per-bar basis and sums them over a chosen period. The difference between buy and sell currencies (Δ$) shows net inflow or outflow.
 9.2 Inputs 
 •	mf_period_len_mf:  Number of bars used for summing buy and sell dollars.
 •	Label appearance settings:  ATR length, multiplier, size, colors for up/down labels, and connector style and width.
 •	Toggles:  Use enableMoneyFlowLabel_mf and showMFLabels to control whether the module and its labels are displayed.
 9.3 Calculations 
 •	Per-bar money:  Buy $ = TF_buy_breakout × close; Sell $ = TF_sell_breakout × close. Their difference is Δ$ = Buy $ − Sell $.
 •	Summations:  Over mf_period_len_mf bars, compute Σ Buy $, Σ Sell $ and ΣΔ$ using math.sum().
 •	Info table entries:  Rows 9–13 display these values as texts like “↑ USD 1234 (1M)” or “ΣΔ USD −5678 (14)”, with colors reflecting whether buyers or sellers dominate.
 •	Money flow status:  If Δ$ is positive the bar is marked  “Money flow in” ; if negative,  “Money flow out” ; if zero, “Neutral”. The cumulative status is similarly derived from ΣΔ.Labels print at the bar that changes the sign of ΣΔ, offset using ATR × label multiplier and styled per user preferences.
  
 Figure caption, The chart illustrates a steady rise toward the highest recent pivot (HH1) with price riding between a rising green trend‑line and a red trend‑line drawn through earlier pivot highs. A green Money flow in label appears above the bar near the top of the channel, signaling that net dollar flow turned positive on this bar: buy‑side dollar volume exceeded sell‑side dollar volume, pushing the cumulative sum ΣΔ$ above zero. In the info table, the  “Money flow (bar)”  and  “Money flow Σ”  rows both read In, confirming that the indicator’s money‑flow module has detected an inflow at both bar and aggregate levels, while other modules (pivots, trend lines and support/resistance) remain active to provide structural context.
  
In this example the Money Flow module signals a net outflow. Price has been trending downward: successive high pivots form a falling red trend‑line and the low pivots form a descending green support line. When the latest bar broke below the previous low pivot (LL1), both the bar‑level and cumulative net dollar flow turned negative—selling volume at the close exceeded buying volume and pushed the cumulative Δ$ below zero. The module reacts by printing a red  “Money flow out”  label beneath the candle; the info table confirms that the “Money flow (bar)” and “Money flow Σ” rows both show Out, indicating sustained dominance of sellers in this period.
 10. Info Table 
 10.1 Purpose 
When enabled, the Info Table appears in the lower right of your chart. It summarises key values computed by the indicator—such as buy and sell volume, delta, total volume, breakout status, market phase, and money flow—so you can see at a glance which side is dominant and which signals are active.
 10.2 Symbols 
•	↑ / ↓ — Up (↑) denotes buy volume or money; down (↓) denotes sell volume or money.
•	MA — Moving average. In the table it shows the average value of a series over the lookback period.
•	Σ (Sigma) — Cumulative sum over the chosen lookback period.
•	Δ (Delta) — Difference between buy and sell values.
•	B / S — Buyer and seller share of total volume, expressed as percentages.
•	Ref. Price — Reference price for breakout calculations, based on the latest pivot.
•	Status — Indicates whether a breakout condition is currently active (True) or has failed.
 10.3 Row definitions 
1.	Up volume / MA up volume – Displays current buy volume on the lower timeframe and its moving average over the lookback period.
2.	Down volume / MA down volume – Shows current sell volume and its moving average; sell values are formatted in red for clarity.
3.	Δ / ΣΔ – Lists the difference between buy and sell volume for the current bar and the cumulative delta volume over the lookback period.
4.	Σ / MA Σ (Vol/MA) – Total volume (buy + sell) for the bar, with the ratio of this volume to its moving average; the right cell shows the average total volume.
5.	B/S ratio – Buy and sell share of the total volume: current bar percentages and the average percentages across the lookback period.
6.	Buyer Rank / Seller Rank – Ranks the bar’s buy and sell volumes among the last (n) bars; lower rank numbers indicate higher relative volume.
7.	Σ Buy / Σ Sell – Sum of buy and sell volumes over the lookback window, indicating which side has traded more.
8.	Breakout UP / DOWN – Shows the breakout thresholds (Ref. Price) and whether the breakout condition is active (True) or has failed.
9.	Market Phase (Vol) – Reports the current volume‑only phase: Accumulation, Distribution or Neutral.
10.	Money Flow – The final rows display dollar amounts and status:
–	↑ USD / Σ↑ USD – Buy dollars for the current bar and the cumulative sum over the money‑flow period.
–	↓ USD / Σ↓ USD – Sell dollars and their cumulative sum.
–	Δ USD / ΣΔ USD – Net dollar difference (buy minus sell) for the bar and cumulatively.
–	Money flow (bar) – Indicates whether the bar’s net dollar flow is positive (In), negative (Out) or neutral.
–	Money flow Σ – Shows whether the cumulative net dollar flow across the chosen period is positive, negative or neutral.
  
The chart above shows a sequence of different signals from the indicator. A Bull Trap Risk appears after price briefly pushes above resistance but fails to hold, then a green Accum label identifies an accumulation phase. An upward breakout follows, confirmed by a Money flow in print. Later, a Sharp ↓ Risk warns of a possible sharp downturn; after price dips below support but quickly recovers, a Bear Trap label marks a false breakdown. The highlighted info table in the center summarizes key metrics at that moment, including current and average buy/sell volumes, net delta, total volume versus its moving average, breakout status (up and down), market phase (volume), and bar‑level and cumulative money flow (In/Out).
 11. Conclusion & Final Remarks 
This indicator was developed as a holistic study of market structure and order flow. It brings together several well‑known concepts from technical analysis—breakouts, accumulation and distribution phases, overbought and oversold extremes, bull and bear traps, sharp directional moves, market‑maker spread bars and money flow—into a single Pine Script tool. Each module is based on widely recognized trading ideas and was implemented after consulting reference materials and example strategies, so you can see in real time how these concepts interact on your chart.
A distinctive feature of this indicator is its reliance on per‑side volume: instead of tallying only total volume, it separately measures buy and sell transactions on a lower time frame. This approach gives a clearer view of who is in control—buyers or sellers—and helps filter breakouts, detect phases of accumulation or distribution, recognize potential traps, anticipate sharp moves and gauge whether liquidity providers are active. The money‑flow module extends this analysis by converting volume into currency values and tracking net inflow or outflow across a chosen window.
Although comprehensive, this indicator is intended solely as a guide. It highlights conditions and statistics that many traders find useful, but it does not generate trading signals or guarantee results. Ultimately, you remain responsible for your positions. Use the information presented here to inform your analysis, combine it with other tools and risk‑management techniques, and always make your own decisions when trading.
ATAI Volume Pressure Analyzer V 1.0 — Pure Up/DownATAI Volume Pressure Analyzer V 1.0 — Pure Up/Down 
 Overview 
Volume is a foundational tool for understanding the supply–demand balance. Classic charts show only total volume and don’t tell us what portion came from buying (Up) versus selling (Down). The ATAI Volume Pressure Analyzer fills that gap. Built on Pine Script v6, it scans a lower timeframe to estimate Up/Down volume for each host‑timeframe candle, and presents “volume pressure” in a compact HUD table that’s comparable across symbols and timeframes.
 1) Architecture & Global Settings 
 Global Period (P, bars) 
A single global input P defines the computation window. All measures—host‑TF volume moving averages and the half‑window segment sums—use this length. Default: 55.
 Timeframe Handling 
The core of the indicator is estimating Up/Down volume using lower‑timeframe data. You can set a custom lower timeframe, or rely on auto‑selection:
◉ Second charts → 1S
◉ Intraday → 1 minute
◉ Daily → 5 minutes
◉ Otherwise → 60 minutes
Lower TFs give more precise estimates but shorter history; higher TFs approximate buy/sell splits but provide longer history. As a rule of thumb, scan thin symbols at 5–15m, and liquid symbols at 1m.
 2) Up/Down Volume & Derived Series 
The script uses TradingView’s library function tvta.requestUpAndDownVolume(lowerTf) to obtain three values:
◉ Up volume (buyers)
◉ Down volume (sellers)
◉ Delta (Up − Down)
From these we define:
◉ TF_buy = |Up volume|
◉ TF_sell = |Down volume|
◉ TF_tot = TF_buy + TF_sell
◉ TF_delta = TF_buy − TF_sell
A positive TF_delta indicates buyer dominance; a negative value indicates selling pressure. To smooth noise, simple moving averages of TF_buy and TF_sell are computed over P and used as baselines.
 3) Key Performance Indicators (KPIs) 
 Half‑window segmentation 
To track momentum shifts, the P‑bar window is split in half:
◉ C→B: the older half
◉ B→A: the newer half (toward the current bar)
For each half, the script sums buy, sell, and delta. Comparing the two halves reveals strengthening/weakening pressure. Example: if AtoB_delta < CtoB_delta, recent buying pressure has faded.
 [ 4) HUD (Table) Display /i]
 Colors & Appearance 
Two main color inputs define the theme: a primary color and a negative color (used when Δ is negative). The panel background uses a translucent version of the primary color; borders use the solid primary color. Text defaults to the primary color and flips to the negative color when a block’s Δ is negative.
 Layout 
The HUD is a 4×5 table updated on the last bar of each candle:
◉ Row 1 (Meta): indicator name, P length, lower TF, host TF
◉ Row 2 (Host TF): current ↑Buy, ↓Sell, ΔDelta; plus Σ total and SMA(↑/↓)
◉ Row 3 (Segments): C→B and B→A blocks with ↑/↓/Δ
◉ Rows 4–5: reserved for advanced modules (Wings, α/β, OB/OS, Top
 5) Advanced Modules 
 5.1 Wings 
“Wings” visualize volume‑driven movement over C→B (left wing) and B→A (right wing) with top/bottom lines and a filled band. Slopes are ATR‑per‑bar normalized for cross‑symbol/TF comparability and converted to angles (degrees). Coloring mirrors HUD sign logic with a near‑zero threshold (default ~3°):
◉  Both lines rising → blue (bullish)
◉  Both falling → red (bearish)
◉  Mixed/near‑zero → gray
Left wing reflects the origin of the recent move; right wing reflects the current state.
 5.2 α / β at Point B 
We compute the oriented angle between the two wings at the midpoint B:
β is the bottom‑arc angle; α = 360° − β is the top‑arc angle.
◉  Large α (>180°) or small β (<180°) flags meaningful imbalance.
◉  Intuition: large α suggests potential selling pressure; small β implies fragile support. HUD cells highlight these conditions.
 5.3 OB/OS Spike 
OverBought/OverSold (OB/OS) labels appear when directional volume spikes align with a 7‑oscillator vote (RSI, Stoch, %R, CCI, MFI, DeMarker, StochRSI).
◉ OB label (red): unusually high sell volume + enough OB votes
◉ OS label (teal): unusually high buy volume + enough OS votes
Minimum votes and sync window are user‑configurable; dotted connectors can link labels to the candle wick.
 5.4 Top3 Volume Peaks 
Within the P window the script ranks the top three BUY peaks (B1–B3) and top three SELL peaks (S1–S3).
◉ B1 and S1 are drawn as horizontal resistance (at B1 High) and support (at S1 Low) zones with adjustable thickness (ticks/percent/ATR).
◉ The HUD dedicates six cells to show ↑/↓/Δ for each rank, and prints the exact High (B1) and Low (S1) inline in their cells.
 6) Reading the HUD — A Quick Checklist 
◉ Meta: Confirm P and both timeframes (host & lower).
◉ Host TF block: Compare current ↑/↓/Δ against their SMAs.
◉ Segments: Contrast C→B vs B→A deltas to gauge momentum change.
◉ Wings: Right‑wing color/angle = now; left wing = recent origin.
◉ α / β: Look for α > 180° or β < 180° as imbalance cues.
◉ OB/OS: Note labels, color (red/teal), and the vote count.
◉Top3: Keep B1 (resistance) and S1 (support) on your radar.
Use these together to sketch scenarios and invalidation levels; never rely on a single signal in isolation.
 [ 7) Example Highlights (What the table conveys) /i]
◉ Row 1 shows the indicator name, the analysis length P (default 55), and both TFs used for computation and display.
◉ B1 / S1 blocks summarize each side’s peak within the window, with Δ indicating buyer/seller dominance at that peak and inline price (B1 High / S1 Low) for actionable levels.
◉ Angle cells for each wing report the top/bottom line angles vs. the horizontal, reflecting the directional posture.
◉ Ranks B2/B3 and S2/S3 extend context beyond the top peak on each side.
◉ α / β cells quantify the orientation gap at B; changes reflect shifting buyer/seller influence on trend strength.
Together these visuals often reveal whether the “wings” resemble a strong, upward‑tilted arm supported by buyer volume—but always corroborate with your broader toolkit
 8) Practical Tips & Tuning 
◉ Choose P by market structure. For daily charts, 34–89 bars often works well.
◉ Lower TF choice: Thin symbols → 5–15m; liquid symbols → 1m.
◉ Near‑zero angle: In noisy markets, consider 5–7° instead of 3°.
◉ OB/OS votes: Daily charts often work with 3–4 votes; lower TFs may prefer 4–5.
◉ Zone thickness: Tie B1/S1 zone thickness to ATR so it scales with volatility.
◉ Colors: Feel free to theme the primary/negative colors; keep Δ<0 mapped to the negative color for readability.
Combine with price action: Use this indicator alongside structure, trendlines, and other tools for stronger decisions.
 Technical Notes 
Pine Script v6.
◉ Up/Down split via TradingView/ta library call requestUpAndDownVolume(lowerTf).
◉ HUD‑first design; drawings for Wings/αβ/OBOS/Top3 align with the same sign/threshold logic used in the table.
 Disclaimer: This indicator is provided solely for educational and analytical purposes. It does not constitute financial advice, nor is it a recommendation to buy or sell any security. Always conduct your own research and use multiple tools before making trading decisions. 
OctaScalp Precision Pro [By TraderMan]What is OctaScalp Precision Pro  ? 🚀
OctaScalp Precision is a powerful scalping indicator designed for fast, short-term trades. It combines eight technical indicators to generate 💪 high-accuracy buy 📗 and sell 📕 signals. Optimized for scalpers, this tool targets small price movements in low timeframes (1M, 5M). With visual lines 📈, labels 🎯, and Telegram alerts 📬, it simplifies quick decision-making, enhances risk management, and tracks trade performance.
What Does It Do? 🎯
Fast Signals: Produces reliable buy/sell signals using a consensus of eight indicators.
Risk Management: Offers automated Take Profit (TP) 🟢 and Stop Loss (SL) 🔴 levels with a 2:1 reward/risk ratio.
Trend Confirmation: Validates short-term trends with a 30-period EMA zone.
Performance Tracking: Records trade success rates (%) and the last 5 trades 📊.
User-Friendly: Displays market strength, signal type, and trade details in a top-right table.
Alerts: Sends Telegram-compatible notifications for new positions and trade results 📲.
How Does It Work? 🛠️
OctaScalp Precision integrates eight technical indicators (RSI, MACD, Stochastic, Momentum, 200-period EMA, Supertrend, CCI, OBV) for robust analysis. Each indicator contributes 0 or 1 point to a bullish 📈 or bearish 📉 score (max 8 points). Signals are generated as follows:
Buy Signal 📗: Bullish score ≥6 and higher than bearish score.
Sell Signal 📕: Bearish score ≥6 and higher than bullish score.
EMA Zone 📏: A zone (default 0.1%) around a 30-period EMA confirms trends. Price staying above or below the zone for 4 bars validates the direction:
Up Direction: Price above zone, color green 🟢.
Down Direction: Price below zone, color red 🔴.
Neutral: Price within zone, color gray ⚪.
Entry/Exit: Entries are triggered on new signals, with TP (2% profit) and SL (1% risk) auto-calculated.
Table & Alerts: Displays market strength (% bull/bear), signal type, entry/TP/SL, and success rate in a table. Telegram alerts provide instant notifications.
How to Use It? 📚
Setup 🖥️:
Add the indicator to TradingView and use default settings or customize (EMA length, zone width, etc.).
Best for low timeframes (1M, 5M).
Signal Monitoring 🔍:
Check the table: Bull Strength 📗 and Bear Strength 📕 percentages indicate signal reliability.
Confirm Buy (📗 BUY) or Sell (📕 SELL) signals when trendSignal is 1 or -1.
Entering a Position 🎯:
Buy: trendSignal = 1, bullish score ≥6, and higher than bearish score, enter at the entry price.
Sell: trendSignal = -1, bearish score ≥6, and higher than bullish score, enter at the entry price.
TP and SL: Follow the green (TP) 🟢 and red (SL) 🔴 lines on the chart.
Exiting 🏁:
If price hits TP, trade is marked ✅ successful; if SL, marked ❌ failed.
Results are shown in the “Last 5 Trades” 📜 section of the table.
Setting Alerts 📬:
Enable alerts in TradingView. Receive Telegram notifications for new positions and trade outcomes.
Position Entry Strategy 💡
Entry Conditions:
For Buy: Bullish score ≥6, trendSignal = 1, price above EMA zone 🟢.
For Sell: Bearish score ≥6, trendSignal = -1, price below EMA zone 🔴.
Check bull/bear strength in the table (70%+ is ideal for strong signals).
Additional Confirmation:
Use on high-volume assets (e.g., BTC/USD, EUR/USD).
Validate signals with support/resistance levels.
Be cautious in ranging markets; false signals may increase.
Risk Management:
Stick to the 2:1 reward/risk ratio (TP 2%, SL 1%).
Limit position size to 1-2% of your account.
Tips and Recommendations 🌟
Best Markets: Ideal for volatile markets (crypto, forex) and low timeframes (1M, 5M).
Settings: Adjust EMA length (default 30) or zone width (0.1%) based on the market.
Backtesting: Test on historical data to evaluate success rate 📊.
Discipline: Follow signals strictly and avoid emotional decisions.
OctaScalp Precision   makes scalping fast, precise, and reliable! 🚀
Previous Price Action## Previous Price Action - Market Structure Visualization Tool
**Three time-segmented boxes for enhanced market structure analysis:**
🟢 **240 Candles Box (Green)** - Historical context (candles -240 to -120)  
🟡 **120 Candles Box (Yellow)** - Medium-term trend (candles -120 to -10)  
🔴 **10 Candles Box (Red)** - Recent price action (last 10 candles)
**Key Features:**
- Non-overlapping time segments for clear trend analysis
- Uniform height based on 240-candle range for easy comparison
- 50% transparency to maintain chart readability
- Ideal for identifying momentum vs mean reversion conditions
**Perfect for:**
- Crypto day trading and scalping
- Market regime identification (trending vs choppy)
- Entry timing and trade management
- Duration of trend analysis
**Settings:** Fully customizable colors, transparency, and individual box toggle switches.
Ultimate Scalping Tool[BullByte]Overview 
The  Ultimate Scalping Tool  is an open-source TradingView indicator built for scalpers and short-term traders released under the Mozilla Public License 2.0. It uses a custom  Quantum Flux Candle (QFC)  oscillator to combine multiple market forces into one visual signal. In plain terms, the script reads  momentum, trend strength, volatility, and volume  together and plots a special  “candlestick”  each bar (the QFC) that reflects the overall market bias. This unified view makes it easier to spot entries and exits: the tool labels signals as  Strong Buy/Sell, Pullback (a brief retracement in a trend), Early Entry, or Exit Warning . It also provides color-coded alerts and a small dashboard of metrics. In practice, traders see green/red oscillator bars and symbols on the chart when conditions align, helping them scalp or trend-follow without reading multiple separate indicators.
 Core Components 
 Quantum Flux Candle (QFC) Construction 
The QFC is the heart of the indicator. Rather than using raw price, it creates a candlestick-like bar from the underlying oscillator values.  Each QFC bar has an “open,” “high/low,” and “close” derived from calculated momentum and volatility inputs for that period . In effect, this turns the oscillator into intuitive candle patterns so traders can recognize momentum shifts visually. (For comparison, note that Heikin-Ashi candles “have a smoother look because   take an average of the movement”. The QFC instead represents exact oscillator readings, so it reflects true momentum changes without hiding price action.) Colors of QFC bars change dynamically (e.g. green for bullish momentum, red for bearish) to highlight shifts.  This is the first open-source QFC oscillator that dynamically weights four non-correlated indicators with moving thresholds, which makes it a unique indicator on its own. 
 Oscillator Normalization & Adaptive Weights 
The script normalizes its oscillator to a fixed scale (for example, a 0–100 range much like the RSI) so that various inputs can be compared fairly. It then applies adaptive weighting: the relative influence of trend, momentum, volatility or volume signals is automatically adjusted based on current market conditions. For instance, in very volatile markets the script might weight volatility more heavily, or in a strong trend it might give extra weight to trend direction.  Normalizing data and adjusting weights helps keep the QFC sensitive but stable (normalization ensures all inputs fit a common scale). 
 Trend/Momentum/Volume/Volatility Fusion 
Unlike a typical single-factor oscillator, the QFC oscillator fuses four aspects at once. It may compute, for example,  a trend indicator (such as an ADX or moving average slope), a momentum measure (like RSI or Rate-of-Change), a volume-based pressure (similar to MFI/OBV), and a volatility measure (like ATR) . These different values are combined into one composite oscillator. This “multi-dimensional” approach follows best practices of using non-correlated indicators (trend, momentum, volume, volatility) for confirmation. By encoding all these signals in one line, a high QFC reading means that trend, momentum, and volume are all aligned, whereas a neutral reading might mean mixed conditions. This gives traders a comprehensive picture of market strength.
 Signal Classification 
The script interprets the QFC oscillator to label trades. For example:
• Strong Buy/Sell : Triggered when the oscillator crosses a high-confidence threshold (e.g. breaks clearly above zero with strong slope), indicating a well-confirmed move. This is like seeing a big green/red QFC candle aligned with the trend.
• Pullbacks : Identified when the trend is up but momentum dips briefly. A Pullback Buy appears if the overall trend is bullish but the oscillator has a short retracement – a typical buying opportunity in an uptrend. (A pullback is “a brief decline or pause in a generally upward price trend”.)
• Early Buy/Sell : Marks an initial swing in the oscillator suggesting a possible new trend, before it is fully confirmed. It’s a hint of momentum building (an early-warning signal), not as strong as the confirmed “Strong” signal.
• Exit Warnings : Issued when momentum peaks or reverses. For instance, if the QFC bars reach a high and start turning red/green opposite, the indicator warns that the move may be ending. In other words, a Momentum Peak is the point of maximum strength after which weakness may follow.
These categories correspond to typical trading concepts: Pullback (temporary reversal in an uptrend), Early Buy (an initial bullish cross), Strong Buy (confirmed bullish momentum), and Momentum Peak (peak oscillator value suggesting exhaustion).
 Filters (DI Reversal, Dynamic Thresholds, HTF EMA/ADX) 
Extra filters help avoid bad trades.  A DI Reversal filter uses the +DI/–DI lines (from the ADX system) to require that the trend direction confirms the signal . For example, it might ignore a buy signal if the +DI is still below –DI. Dynamic Thresholds adjust signal levels on-the-fly: rather than fixed “overbought” lines, they move with volatility so signals happen under appropriate market stress. An optional High-Timeframe EMA or ADX filter adds a check against a larger timeframe trend: for instance, only taking a trade if price is above the weekly EMA or if weekly ADX shows a strong trend. (Notably, the ADX is “a technical indicator used by traders to determine the strength of a price trend”, so requiring a high-timeframe ADX avoids trading against the bigger trend.)
 Dashboard Metrics & Color Logic 
 
The  Dashboard  in the  Ultimate Scalping Tool (UST)  serves as a centralized information hub, providing traders with real-time insights into market conditions, trend strength, momentum, volume pressure, and trade signals. It is highly customizable, allowing users to adjust its appearance and content based on their preferences.  
 1. Dashboard Layout & Customization   
 Short vs. Extended Mode : Users can toggle between a  compact view  (9 rows) and an  extended view  (13 rows) via the `Short Dashboard` input.  
 Text Size Options : The dashboard supports three text sizes— Tiny, Small, and Normal —adjustable via the `Dashboard Text Size` input.  
 Positioning : The dashboard is positioned in the  top-right corner  by default but can be moved if modified in the script.  
 2. Key Metrics Displayed   
The dashboard presents critical trading metrics in a structured table format:  
 Trend (TF) : Indicates the current trend direction (Strong Bullish, Moderate Bullish, Sideways, Moderate Bearish, Strong Bearish) based on  normalized trend strength (normTrend) .  
 Momentum (TF) : Displays momentum status (Strong Bullish/Bearish or Neutral) derived from the  oscillator's position relative to dynamic thresholds.   
 Volume (CMF) : Shows buying/selling pressure levels (Very High Buying, High Selling, Neutral, etc.) based on the  Chaikin Money Flow (CMF) indicator.   
 Basic & Advanced Signals:   
 Basic Signal : Provides simple trade signals (Strong Buy, Strong Sell, Pullback Buy, Pullback Sell, No Trade).  
 Advanced Signal : Offers nuanced signals (Early Buy/Sell, Momentum Peak, Weakening Momentum, etc.) with color-coded alerts.  
 RSI : Displays the Relative Strength Index (RSI) value, colored based on overbought (>70), oversold (<30), or neutral conditions.  
 HTF Filter : Indicates the  higher timeframe trend status  (Bullish, Bearish, Neutral) when using the Leading HTF Filter.  
 VWAP : Shows the V olume-Weighted Average Price  and whether the current price is above (bullish) or below (bearish) it.  
 ADX : Displays the  Average Directional Index (ADX)  value, with color highlighting whether it is rising (green) or falling (red).  
 Market Mode : Shows the selected  market type (Crypto, Stocks, Options, Forex, Custom).   
 Regime : Indicates volatility conditions (High, Low, Moderate) based on the **ATR ratio**.  
 3. Filters Status Panel 
A secondary panel displays the  status of active filters,  helping traders quickly assess which conditions are influencing signals:  
-  DI Reversal Filter:  On/Off (confirms reversals before generating signals).  
-  Dynamic Thresholds:  On/Off (adjusts buy/sell thresholds based on volatility).  
-  Adaptive Weighting:  On/Off (auto-adjusts oscillator weights for trend/momentum/volatility).  
-  Early Signal:  On/Off (enables early momentum-based signals).  
-  Leading HTF Filter:  On/Off (applies higher timeframe trend confirmation).  
 4. Visual Enhancements   
 Color-Coded Cells : Each metric is color-coded (green for bullish, red for bearish, gray for neutral) for quick interpretation.  
 Dynamic Background : The dashboard background adapts to market conditions (bullish/bearish/neutral) based on ADX and DI trends.  
 Customizable Reference Lines : Users can enable/disable fixed reference lines for the oscillator.  
 How It(QFC) Differs from Traditional Indicators 
 Quantum Flux Candle (QFC) Versus Heikin-Ashi 
Heikin-Ashi candles smooth price by averaging (HA’s open/close use averages) so they show trend clearly but hide true price (the current HA bar’s close is not the real price).  QFC candles are different: they are oscillator values, not price averages . A Heikin-Ashi chart “has a smoother look because it is essentially taking an average of the movement”, which can cause lag. The QFC instead shows the raw combined momentum each bar, allowing faster recognition of shifts. In short, HA is a smoothed price chart; QFC is a momentum-based chart.
 Versus Standard Oscillators 
Common oscillators like RSI or MACD use fixed formulas on price (or price+volume). For example, RSI “compares gains and losses and normalizes this value on a scale from 0 to 100”, reflecting pure price momentum. MFI is similar but adds volume. These indicators each show one dimension: momentum or volume. The Ultimate Scalping Tool’s QFC goes further by integrating trend strength and volatility too. In practice, this means a move that looks strong on RSI might be downplayed by low volume or weak trend in QFC. As one source notes, using multiple non-correlated indicators (trend, momentum, volume, volatility) provides a more complete market picture.  The QFC’s multi-factor fusion is unique – it is effectively a multi-dimensional oscillator rather than a traditional single-input one. 
 Signal Style 
Traditional oscillators often use crossovers (RSI crossing 50) or fixed zones (MACD above zero) for signals. The Ultimate Scalping Tool’s signals are custom-classified: it explicitly labels pullbacks, early entries, and strong moves. These terms go beyond a typical indicator’s generic “buy”/“sell.” In other words, it packages a strategy around the oscillator, which traders can backtest or observe without reading code.
 Key Term Definitions 
• Pullback : A short-term dip or consolidation in an uptrend. In this script, a Pullback Buy appears when price is generally rising but shows a brief retracement. (As defined by Investopedia, a pullback is “a brief decline or pause in a generally upward price trend”.)
• Early Buy/Sell : An initial or tentative entry signal. It means the oscillator first starts turning positive (or negative) before a full trend has developed. It’s an early indication that a trend might be starting.
• Strong Buy/Sell : A confident entry signal when multiple conditions align. This label is used when momentum is already strong and confirmed by trend/volume filters, offering a higher-probability trade.
• Momentum Peak : The point where bullish (or bearish) momentum reaches its maximum before weakening. When the oscillator value stops rising (or falling) and begins to reverse, the script flags it as a peak – signaling that the current move could be overextended.
 What is the Flux MA? 
 The Flux MA (Moving Average) is an Exponential Moving Average (EMA) applied to a normalized oscillator, referred to as FM . Its purpose is to smooth out the fluctuations of the oscillator, providing a clearer picture of the underlying trend direction and strength. Think of it as a dynamic baseline that the oscillator moves above or below, helping you determine whether the market is trending bullish or bearish.
 How it’s calculated (Flux MA): 
1.The oscillator is normalized (scaled to a range, typically between 0 and 1, using a default scale factor of 100.0).
2.An EMA is applied to this normalized value (FM) over a user-defined period (default is 10 periods).
3.The result is rescaled back to the oscillator’s original range for plotting.
 Why it matters : The Flux MA acts like a support or resistance level for the oscillator, making it easier to spot trend shifts.
 Color of the Flux Candle 
The Quantum Flux Candle visualizes the normalized oscillator (FM) as candlesticks, with colors that indicate specific market conditions based on the relationship between the FM and the Flux MA. Here’s what each color means:
• Green : The FM is above the Flux MA, signaling bullish momentum. This suggests the market is trending upward.
• Red : The FM is below the Flux MA, signaling bearish momentum. This suggests the market is trending downward.
• Yellow : Indicates strong buy conditions (e.g., a "Strong Buy" signal combined with a positive trend). This is a high-confidence signal to go long.
• Purple : Indicates strong sell conditions (e.g., a "Strong Sell" signal combined with a negative trend). This is a high-confidence signal to go short.
The candle mode shows the oscillator’s open, high, low, and close values for each period, similar to price candlesticks, but it’s the color that provides the quick visual cue for trading decisions.
 How to Trade the Flux MA with Respect to the Candle 
Trading with the Flux MA and Quantum Flux Candle involves using the MA as a trend indicator and the candle colors as entry and exit signals. Here’s a step-by-step guide:
1.  Identify the Trend Direction 
• Bullish Trend : The Flux Candle is green and positioned above the Flux MA. This indicates upward momentum.
• Bearish Trend : The Flux Candle is red and positioned below the Flux MA. This indicates downward momentum.
The Flux MA serves as the reference line—candles above it suggest buying pressure, while candles below it suggest selling pressure.
2.  Interpret Candle Colors for Trade Signals 
• Green Candle : General bullish momentum. Consider entering or holding a long position.
• Red Candle : General bearish momentum. Consider entering or holding a short position.
• Yellow Candle : A strong buy signal. This is an ideal time to enter a long trade.
• Purple Candle : A strong sell signal. This is an ideal time to enter a short trade.
3.  Enter Trades Based on Crossovers and Colors 
• Long Entry : Enter a buy position when the Flux Candle turns green and crosses above the Flux MA. If it turns yellow, this is an even stronger signal to go long.
• Short Entry : Enter a sell position when the Flux Candle turns red and crosses below the Flux MA. If it turns purple, this is an even stronger signal to go short.
4. Exit Trades 
• Exit Long : Close your buy position when the Flux Candle turns red or crosses below the Flux MA, indicating the bullish trend may be reversing.
• Exit Short : Close your sell position when the Flux Candle turns green or crosses above the Flux MA, indicating the bearish trend may be reversing.
•You might also exit a long trade if the candle changes from yellow to green (weakening strong buy signal) or a short trade from purple to red (weakening strong sell signal).
5.  Use Additional Confirmation 
To avoid false signals, combine the Flux MA and candle signals with other indicators or dashboard metrics (e.g., trend strength, momentum, or volume pressure). For example:
•A yellow candle with a " Strong Bullish " trend and high buying volume is a robust long signal.
•A red candle with a " Moderate Bearish " trend and neutral momentum might need more confirmation before shorting.
 Practical Example 
Imagine you’re scalping a cryptocurrency:
• Long Trade : The Flux Candle turns yellow and is above the Flux MA, with the dashboard showing "Strong Buy" and high buying volume. You enter a long position. You exit when the candle turns red and dips below the Flux MA.
• Short Trade : The Flux Candle turns purple and crosses below the Flux MA, with a "Strong Sell" signal on the dashboard. You enter a short position. You exit when the candle turns green and crosses above the Flux MA.
 Market Presets and Adaptation 
This indicator is designed to work on any market with candlestick price data (stocks, crypto, forex, indices, etc.). To handle different behavior, it provides presets for major asset classes.  Selecting a “Stocks,” “Crypto,” “Forex,” or “Options” preset automatically loads a set of parameter values optimized for that market . For example, a crypto preset might use a shorter lookback or higher sensitivity to account for crypto’s high volatility, while a stocks preset might use slightly longer smoothing since stocks often trend more slowly. In practice, this means the same core QFC logic applies across markets, but the thresholds and smoothing adjust so signals remain relevant for each asset type.
 Usage Guidelines 
• Recommended Timeframes : Optimized for 1 minute to 15 minute intraday charts. Can also be used on higher timeframes for short term swings.
• Market Types : Select “Crypto,” “Stocks,” “Forex,” or “Options” to auto tune periods, thresholds and weights. Use “Custom” to manually adjust all inputs.
• Interpreting Signals : Always confirm a signal by checking that trend, volume, and VWAP agree on the dashboard. A green “Strong Buy” arrow with green trend, green volume, and price > VWAP is highest probability.
• Adjusting Sensitivity : To reduce false signals in fast markets, enable DI Reversal Confirmation and Dynamic Thresholds. For more frequent entries in trending environments, enable Early Entry Trigger.
• Risk Management : This tool does not plot stop loss or take profit levels. Users should define their own risk parameters based on support/resistance or volatility bands.
 Background Shading 
To give you an at-a-glance sense of market regime without reading numbers, the indicator automatically tints the chart background in three modes—neutral, bullish and bearish—with two levels of intensity (light vs. dark):
 Neutral (Gray) 
When ADX is below 20 the market is considered “no trend” or too weak to trade. The background fills with a light gray (high transparency) so you know to sit on your hands.
 Bullish (Green) 
As soon as ADX rises above 20 and +DI exceeds –DI, the background turns a semi-transparent green, signaling an emerging uptrend. When ADX climbs above 30 (strong trend), the green becomes more opaque—reminding you that trend-following signals (Strong Buy, Pullback) carry extra weight.
 Bearish (Red) 
Similarly, if –DI exceeds +DI with ADX >20, you get a light red tint for a developing downtrend, and a darker, more solid red once ADX surpasses 30.
By dynamically varying both hue (green vs. red vs. gray) and opacity (light vs. dark), the background instantly communicates trend strength and direction—so you always know whether to favor breakout-style entries (in a strong trend) or stay flat during choppy, low-ADX conditions.
 The setup shown in the above chart snapshot is BTCUSD 15 min chart : Binance for reference. 
 Disclaimer 
No indicator guarantees profits. Backtest or paper trade this tool to understand its behavior in your market. Always use proper position sizing and stop loss orders.
Good luck!
- BullByte 
Intraday Pivot Highs & Lows (Asia London NY)Intraday Pivot Highs & Lows (Asia London NY) 
 Script Description 
 This TradingView indicator is optimized for Forex, scalping, intraday, and day trading strategies. It accurately plots Pivot Points and levels, high/low, support and resistance levels. These are clearly identified to aid the trader during killzone sessions and session opens. Ideal for scalp trading, intraday sessions, and leveraging SMT (Smart Money Techniques). Utilize these Price Levels effectively during London Open, NY Open, and the Asia Session, utilizing Market Structure to pinpoint key levels and reversal zones for successful trading. Improve your Trade Setups, recognize reliable Chart Patterns, identify critical Price Pivots, and trade confidently off Institutional Levels. 
This script marks the intraday pivot highs, lows and midpoints retracement levels for 
 
 Asia
 London 
 New York 
 
It also plots the previous day's high, low, midpoint, and 0.618 Fibonacci retracement levels, providing traders with critical price reference points for making intraday trading decisions.
 Originality & Usefulness 
This indicator uniquely integrates pivot calculations across three major Forex sessions (Asia, London, NY), clearly delineating session boundaries. 
It enhances visibility by using distinct styling 
 
 solid for New York
 dashed for London
 dotted lines for Asia
 
And colour co-ordinated labeling, improving traders' ability to identify important intraday price action zones efficiently. Unlike standard pivot indicators, this script emphasizes session-specific trading dynamics.
### Key Features ###
 Session-Based Levels:  Automatically plots high, low, midpoint, and Fibonacci (.618) levels for each major session (Asia, London, NY).
 Distinct Visual Cues:  Lines and labels use session-specific styles and colors to easily differentiate between sessions.
 Previous Day Reference:  Clearly plots and labels yesterday's high, low, midpoint, and Fibonacci levels.
 Flexible Visibility:  Traders can set timeframe visibility to maintain clean charts on higher timeframes.
### How It Works
At the start of next day's session, previous session lines are cleared, ensuring the chart remains uncluttered.
High, low, midpoint, and Fibonacci retracement levels (.618) are dynamically calculated and displayed at the close of each session.
All session levels remain visible until the start of the next respective session, providing continuous actionable insights.
 Trading Application: 
 
 Session highs and lows act as strong intraday support and resistance zones.
 Midpoints and Fibonacci levels are effective for identifying potential reversal zones and retracements.
 Daily levels provide a broader context, useful for gauging intraday volatility and range.
 
### Limitations and Considerations ##
Best used on liquid assets with clear session-based price action, such as Forex major pairs, if used on indexes make sure they contain 24 hour price action not just New York session.
This indicator is designed to streamline intraday trading by clearly marking essential pivot points and session-based levels, significantly improving traders' market context and decision-making accuracy. Can be used to enhance SMT decision making when scalping killzones.
Williams R Zone Scalper v1.0[BullByte]Originality & Usefulness  
Unlike standard Williams R cross-over scripts, this strategy layers  five dynamic filters—moving-average trend, Supertrend, Choppiness Index, Bollinger Band Width, and volume validation —and presents a real-time dashboard with equity, PnL, filter status, and key indicator values. No other public Pine script combines these elements with toggleable filters and a custom dashboard. In backtests (BTC/USD (Binance), 5 min, 24 Mar 2025 → 28 Apr 2025), adding these filters turned a –2.09 % standalone Williams R into a +5.05 % net winner while cutting maximum drawdown in half.
---
 What This Script Does 
- Monitors Williams R (length 14) for overbought/oversold reversals.  
- Applies up to five dynamic filters to confirm trend strength and volatility direction:  
  - Moving average (SMA/EMA/WMA/HMA)  
  - Supertrend line  
  - Choppiness Index (CI)  
  - Bollinger Band Width (BBW)  
  - Volume vs. its 50-period MA  
- Plots blue arrows for Long entries (R crosses above –80 + all filters green) and red arrows for Short entries (R crosses below –20 + all filters green).  
- Optionally sets dynamic ATR-based stop-loss (1.5×ATR) and take-profit (2×ATR).  
- Shows a dashboard box with current position, equity, PnL, filter status, and real-time Williams R / MA/volume values.
---
 Backtest Summary (BTC/USD(Binance), 5 min, 24 Mar 2025 → 28 Apr 2025)   
•  Total P&L : +50.70 USD (+5.05 %)  
•  Max Drawdown : 31.93 USD (3.11 %)  
•  Total Trades : 198  
•  Win Rate : 55.05 % (109/89)  
•  Profit Factor : 1.288  
•  Commission : 0.01 % per trade  
•  Slippage : 0 ticks  
Even in choppy March–April, this multi-filter approach nets +5 % with a robust risk profile, compared to –2.09 % and higher drawdown for Williams R alone.
---
 Williams R Alone vs. Multi-Filter Version   
•  Total P&L :  
  – Williams R alone → –20.83 USD (–2.09 %)  
  – Multi-Filter → +50.70 USD (+5.05 %)  
•  Max Drawdown :  
  – Williams R alone → 62.13 USD (6.00 %)  
  – Multi-Filter → 31.93 USD (3.11 %)  
•  Total Trades : 543 vs. 198  
•  Win Rate : 60.22 % vs. 55.05 %  
•  Profit Factor : 0.943 vs. 1.288  
---
 Inputs & What They Control 
- wrLen (14): Williams R look-back  
- maType (EMA): Trend filter type (SMA, EMA, WMA, HMA)  
- maLen (20): Moving-average period  
- useChop (true): Toggle Choppiness Index filter  
- ciLen (12): CI look-back length  
- chopThr (38.2): CI threshold (below = trending)  
- useVol (true): Toggle volume-above-average filter  
- volMaLen (50): Volume MA period  
- useBBW (false): Toggle Bollinger Band Width filter  
- bbwMaLen (50): BBW MA period  
- useST (false): Toggle Supertrend filter  
- stAtrLen (10): Supertrend ATR length  
- stFactor (3.0): Supertrend multiplier  
- useSL (false): Toggle ATR-based SL/TP  
- atrLen (14): ATR period for SL/TP  
- slMult (1.5): SL = slMult × ATR  
- tpMult (2.0): TP = tpMult × ATR  
---
 How to Read the Chart   
-  Blue arrow (Long):  Williams R crosses above –80 + all enabled filters green  
-  Red arrow (Short) : Williams R crosses below –20 + all filters green  
-  Dashboard box:   
  -  Top : position and equity  
  -  Next : cumulative PnL in USD & %  
  -  Middle : green/white dots for each filter (green=passing, white=disabled)  
  -  Bottom : Williams R, MA, and volume current values  
---
 Usage Tips   
-  Add the script : Indicators → My Scripts → Williams R Zone Scalper v1.0 → Add to BTC/USD chart on 5 min.  
-  Defaults : Optimized for BTC/USD.  
-  Forex majors : Raise `chopThr` to ~42.  
-  Stocks/high-beta : Enable `useBBW`.  
-  Enable SL/TP : Toggle `useSL`; stop-loss = 1.5×ATR, take-profit = 2×ATR apply automatically.
---
 Common Questions   
- * Why not trade every Williams R reversal?*   
  Raw Williams R whipsaws in sideways markets. Choppiness and volume filters reduce false entries.  
-  *Can I use on 1 min or 15 min?*   
  Yes—adjust ATR length or thresholds accordingly. Defaults target 5 min scalping.  
-  *What if all filters are on?*   
  Fewer arrows, higher-quality signals. Expect ~10 % boost in average win size.
---
 
Disclaimer & License 
Trading carries risk of loss. Use this script “as is” under the Mozilla Public License 2.0 (mozilla.org). Always backtest, paper-trade, and adjust risk settings to your own profile.
---
 Credits & References 
- Pine Script v6, using TradingView’s built-in `ta.supertrend()`.  
- TradingView House Rules: www.tradingview.com
Goodluck!
BullByte
Swing High/Low Scalper(Mastersinnifty)Overview 
The Swing High/Low Scalper is designed for traders seeking structured entries and disciplined stop-loss planning during momentum shifts. It combines smoothed Force Index readings with swing high/low analysis to identify moments where both momentum and structural price levels align.
When a new directional bias is confirmed, the indicator plots clear entry signals and dynamically calculates the nearest logical stop-loss level based on recent swing points.
---
 Core Logic 
- Force Index Bias Detection
    - The Force Index (price × volume change) is smoothed with an EMA to determine sustained bullish or bearish momentum.
- Signal Memory and Noise Reduction
    - The indicator remembers the last signal (buy/sell) and only triggers a new signal when the bias changes, helping avoid redundant entries in sideways or noisy conditions.
- Swing-based Stop-Loss Calculation
    - Upon signal confirmation, the script automatically plots a stop-loss label near the most recent swing low (for buys) or swing high (for sells).
    - If conditions are extreme, fallback safety checks are used to validate the stop-loss placement.
---
 Key Features 
- Dynamic, structure-based stop-loss plots at every trade signal.
- Visual background bias:
    - Green tint = Bullish bias
    - Red tint = Bearish bias
- Minimalist and clean chart visualization for easy interpretation.
- Designed for scalability across timeframes (from 1-minutes to daily charts).
---
 Why It’s Unique 
- Unlike simple momentum oscillators or swing indicators, this tool integrates a state-tracking mechanism.
- A signal is only generated when a true shift in directional force occurs and swing structure supports the move, seeking to catch only meaningful changes rather than every minor fluctuation.
- This dual-filter approach emphasizes quality over quantity, aiming for disciplined entries with risk levels derived from actual price behavior, not arbitrary formulas.
---
 How to Use 
- Apply the Script to your desired chart and timeframe.
- Look for Signals:
    - Green Up Arrow = Buy Signal
    - Red Down Arrow = Sell Signal
- Observe Stop-Loss Labels
    - Use the plotted SL labels for setting exit points based on recent swing structure.
- Monitor Background Bias:
    - Green or Red background hints at prevailing directional momentum.
---
 Important Disclaimer 
This tool is intended to assist technical analysis and trade planning.
It does not provide financial advice or guarantee any future performance.
Always use additional risk management practices when trading.
SynchroTrend Oscillator (STO) [PhenLabs]📊 SynchroTrend Oscillator  
 Version:   PineScript™ v5 
 📌 Description 
The SynchroTrend Oscillator (STO) is a multi-timeframe synchronization tool that combines trend information from three distinct timeframes into a single, easy-to-interpret oscillator ranging from -100 to +100.
This indicator solves the common problem of having to analyze multiple timeframe charts separately by consolidating trend direction and strength across different time horizons. The STO helps traders identify when markets are truly synchronized across timeframes, potentially indicating stronger trend conditions and higher probability trading opportunities.
Using either Moving Average crossovers or RSI analysis as the trend definition metric, the STO provides a comprehensive view of market structure that adapts to various trading strategies and market conditions.
 🚀 Points of Innovation 
  Triple-timeframe synchronization in a single view eliminates chart switching
  Dual trend detection methods (MA vs Price or RSI) for flexibility across different markets
  Dynamic color intensity that automatically increases with signal strength
  Scaled oscillator format (-100 to +100) for intuitive trend strength interpretation
  Customizable signal thresholds to match your risk tolerance and trading style
  Visual alerts when markets reach full synchronization states
 🔧 Core Components 
 Trend Scoring System:  Calculates a binary score (+1, -1, or 0) for each timeframe based on selected metrics, providing clear trend direction
 Multi-Timeframe Synchronization:  Combines and scales trend scores from all three timeframes into a single oscillator
 Dynamic Visualization:  Adjusts color transparency based on signal strength, creating an intuitive visual guide
 Threshold System:  Provides customizable levels for identifying potentially significant trading opportunities
 🔥 Key Features 
  Triple Timeframe Analysis: Synchronizes three user-defined timeframes (default: 60min, 15min, 5min) into one view
  Dual Trend Detection Methods: Choose between Moving Average vs Price or RSI-based trend determination
  Adjustable Signal Smoothing: Apply EMA, SMA, or no smoothing to the oscillator output for your preferred signal responsiveness
  Dynamic Color Intensity: Colors become more vibrant as signal strength increases, helping identify strongest setups
  Customizable Thresholds: Set your own buy/sell threshold levels to match your trading strategy
  Comprehensive Alerts: Six different alert conditions for crossing thresholds, zero line, and full synchronization states
 🎨 Visualization 
 Oscillator Line:  The main line showing the synchronized trend value from -100 to +100
 Dynamic Fill:  Area between oscillator and zero line changes transparency based on signal strength
 Threshold Lines:  Optional dotted lines indicating buy/sell thresholds for visual reference
 Color Coding:  Green for bullish synchronization, red for bearish synchronization
 📖 Usage Guidelines 
 Timeframe Settings 
  Timeframe 1: Default: 60 (1 hour) - Primary higher timeframe for trend definition
  Timeframe 2: Default: 15 (15 minutes) - Intermediate timeframe for trend definition
  Timeframe 3: Default: 5 (5 minutes) - Lower timeframe for trend definition
 Trend Calculation Settings 
  Trend Definition Metric: Default: “MA vs Price” - Method used to determine trend on each timeframe
  MA Type: Default: EMA - Moving Average type when using MA vs Price method
  MA Length: Default: 21 - Moving Average period when using MA vs Price method
  RSI Length: Default: 14 - RSI period when using RSI method
  RSI Source: Default: close - Price data source for RSI calculation
 Oscillator Settings 
  Smoothing Type: Default: SMA - Applies smoothing to the final oscillator
  Smoothing Length: Default: 5 - Period for the smoothing function
 Visual & Threshold Settings 
  Up/Down Colors: Customize colors for bullish and bearish signals
  Transparency Range: Control how transparency changes with signal strength
  Line Width: Adjust oscillator line thickness
  Buy/Sell Thresholds: Set levels for potential entry/exit signals
 ✅ Best Use Cases 
  Trend confirmation across multiple timeframes
  Finding high-probability entry points when all timeframes align
  Early detection of potential trend reversals
  Filtering trade signals from other indicators
  Market structure analysis
  Identifying potential divergences between timeframes
 ⚠️ Limitations 
  Like all indicators, can produce false signals during choppy or ranging markets
  Works best in trending market conditions
  Should not be used in isolation for trading decisions
  Past performance is not indicative of future results
  May require different settings for different markets or instruments
 💡 What Makes This Unique 
  Combines three timeframes in a single visualization without requiring multiple chart windows
  Dynamic transparency feature that automatically emphasizes stronger signals
  Flexible trend definition methods suitable for different market conditions
  Visual system that makes multi-timeframe analysis intuitive and accessible
 🔬 How It Works 
 1. Trend Evaluation: 
For each timeframe, the indicator calculates a trend score (+1, -1, or 0) using either:
  MA vs Price: Comparing close price to a moving average
  RSI: Determining if RSI is above or below 50
 2. Score Aggregation: 
  The three trend scores are combined and then scaled to a range of -100 to +100
  A value of +100 indicates all timeframes show bullish conditions
  A value of -100 indicates all timeframes show bearish conditions
  Values in between indicate varying degrees of alignment
 3. Signal Processing: 
  The raw oscillator value can be smoothed using EMA, SMA, or left unsmoothed
  The final value determines line color, fill color, and transparency settings
  Threshold levels are applied to identify potential trading opportunities
 💡 Note: 
The SynchroTrend Oscillator is most effective when used as part of a comprehensive trading strategy that includes proper risk management techniques. For best results, consider using the oscillator in conjunction with support/resistance levels, price action analysis, and other complementary indicators that align with your trading style.
Triple Confirmation Scalper v2 - Alarm CompatibleTriple Confirmation Scalper Strategy
A high-probability scalping strategy combining trend momentum, overbought/sold conditions, and volume confirmation to filter low-noise signals.
📊 Strategy Logic
Trend Direction
Dual EMA crossover (9 & 21 periods) for momentum and trend bias.
Overbought/Oversold Zones
RSI (14-period) to avoid entries at extremes.
Volume Spike Filter
OBV + 20-period volume average to confirm breakout validity.
Dynamic Risk Management
Stop-loss: Adaptive to recent price action (5-candle low/high ±1%).
Take-profit: 1.5% target (1.5:1 risk/reward).
🔍 Advanced Features
Precision VWAP (20-period, HLC3-based) for dynamic S/R levels.
Visual Aids:
EMA/VWAP bands + trend-colored background.
Volume spike alerts.
TradingView Alerts pre-configured for long/short signals.
⚙️ Default Settings
Commission: 0.1% factored into backtests.
Mode: Supports both long/short positions.
⚠️ Disclaimer
This is a technical analysis tool, not financial advice.
Past performance ≠ future results. Test thoroughly in a demo account.
Adjust parameters (e.g., EMA periods, RSI thresholds) to match your risk tolerance.
✅ TradingView Compliance Notes:
No exaggerated claims (e.g., "100% win rate").
Clear disclaimer included.
Focus on objective strategy logic (no promotional language).
Smart Grid Scalping (Pullback) Strategy[BullByte]The  Smart Grid Scalping (Pullback) Strategy   is a high-frequency trading strategy designed for short-term traders who seek to capitalize on market pullbacks. This strategy utilizes a dynamic ATR-based grid system to define optimal entry points, ensuring precise trade execution. It integrates volatility filtering and an RSI-based confirmation mechanism to enhance signal accuracy and reduce false entries.
This strategy is specifically optimized for scalping by dynamically adjusting trade levels based on current market conditions. The grid-based system helps capture retracement opportunities while maintaining strict trade management through predefined profit targets and trailing stop-loss mechanisms.
  Key Features :
1.  ATR-Based Grid System :
   - Uses a 10-period ATR to dynamically calculate grid levels for entry points.
   - Prevents chasing trades by ensuring price has reached key levels before executing entries.
2.  No Trade Zone Protection :
   - Avoids low-volatility zones where price action is indecisive.
   - Ensures only high-momentum trades are executed to improve success rate.
3.  RSI-Based Entry Confirmation :
   - Long trades are triggered when RSI is below 30 (oversold) and price is in the lower grid zone.
   - Short trades are triggered when RSI is above 70 (overbought) and price is in the upper grid zone.
4.  Automated Trade Execution :
   - Long Entry: Triggered when price drops below the first grid level with sufficient volatility.
   - Short Entry: Triggered when price exceeds the highest grid level with sufficient volatility.
5.  Take Profit & Trailing Stop :
   - Profit target set at a customizable percentage (default 0.2%).
   - Adaptive trailing stop mechanism using ATR to lock in profits while minimizing premature exits.
6.  Visual Trade Annotations :
   - Clearly labeled "LONG" and "SHORT" markers appear at trade entries for better visualization.
   - Grid levels are plotted dynamically to aid decision-making.
 Strategy Logic :
- The script first calculates the ATR-based grid levels and ensures price action has sufficient volatility before allowing trades.
- An additional RSI filter is used to ensure trades are taken at ideal market conditions.
- Once a trade is executed, the script implements a trailing stop and predefined take profit to maximize gains while reducing risks.
---
 Disclaimer :
 Risk Warning :
This strategy is provided for educational and informational purposes only. Trading involves significant risk, and past performance is not indicative of future results. Users are advised to conduct their own due diligence and risk management before using this strategy in live trading.
The developer and publisher of this script are not responsible for any financial losses incurred by the use of this strategy. Market conditions, slippage, and execution quality can affect real-world trading outcomes.
 Use this script at your own discretion and always trade responsibly. 
 Pro Scalper AI [BullByte]The  Pro Scalper AI    is a powerful, multi-faceted scalping indicator designed to assist active traders in identifying short-term trading opportunities with precision. By combining trend analysis, momentum indicators, dynamic weighting, and optional AI forecasting, this tool provides both immediate and latched trading signals based on confirmed (closed bar) data—helping to avoid repainting issues. Its flexible design includes customizable filters such as a higher timeframe trend filter, and adjustable settings for ADX, ATR, and Hull Moving Average (HMA), giving traders the ability to fine-tune the strategy to different markets and timeframes.
 Key Features :
-  Confirmed Data Processing :
  Utilizes a helper function to lock in price and volume data only from confirmed (closed) bars, ensuring the reliability of signals without the risk of intrabar repainting.
-  Trend Analysis : 
  Employs ADX and Directional Movement (DI) calculations along with a locally computed HMA to detect short-term trends. An optional higher timeframe trend filter can further refine the analysis.
-  Flexible Momentum Modes :
  Choose between three momentum calculation methods—Stochastic RSI, Fisher RSI, or Williams %R—to match your preferred style of analysis. This versatility allows you to optimize the indicator for different market conditions.
-  Dynamic Weighting & Volatility Adjustments :
  Adjusts the contribution of trend, momentum, volatility, and volume through dynamic weighting. This ensures that the indicator responds appropriately to varying market conditions by scaling its sensitivity with user-defined maximum factors.
-  Optional AI Forecast :
  For those who want an extra edge, the built-in AI forecasting module uses linear regression to predict future price moves and adjusts oscillator thresholds accordingly. This feature can be toggled on or off, with smoothing options available for more stable output.
-  Latching Mode for Signal Persistenc e: 
  The script features a latching mechanism that holds signals until a clear reversal is detected, preventing whipsaws and providing more reliable trade entries and exits.
-  Comprehensive Visualizations & Dashboard :  
  -  Composite Oscillator & Dynamic Thresholds : The oscillator is plotted with dynamic upper and lower thresholds, and the area between them is filled with a color that reflects the active trading signal (e.g., Strong Buy, Early Sell).
  -  Signal Markers : Both immediate (non-latching) and stored (latched) signals are marked on the chart with distinct shapes (circles, crosses, triangles, and diamonds) to differentiate between signal types.
  -  Real-Time Dashboard : A customizable dashboard table displays key metrics including ADX, oscillator value, chosen momentum mode, HMA trend, higher timeframe trend, volume factor, AI bias (if enabled), and more, allowing traders to quickly assess market conditions at a glance.
 How to Use :
1. S ignal Interpretation :
   -  Immediate Signals : For traders who prefer quick entries, the indicator displays immediate signals such as “Strong Buy” or “Early Sell” based on the current market snapshot.
   -  Latched Signals : When latching is enabled, the indicator holds a signal state until a clear reversal is confirmed, offering sustained trade setups.
2.   Trend Confirmation :
   - Use the HMA trend indicator and the optional higher timeframe trend filter to confirm the prevailing market direction before acting on signals.
3.  Dynamic Thresholds & AI Forecasting :
   - Monitor the dynamically adjusted oscillator thresholds and, if enabled, the AI bias to gauge potential shifts in market momentum.
4.  Risk Management :
   - Combine these signals with additional analysis and sound risk management practices to determine optimal entry and exit points for scalping trades.
 Disclaimer : 
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading involves risk, and past performance is not indicative of future results. Always perform your own analysis and use proper risk management strategies before trading.
Money Flow Oscillator [BullByte]
 Overview :
The  Money Flow Oscillator   is a versatile technical analysis tool designed to provide traders with insights into market momentum through the Money Flow Index (MFI). By integrating trend logic, dynamic support/resistance levels, multi-timeframe analysis, and additional indicators like ADX and Choppiness, this script delivers a detailed view of market conditions and signal strength—all while adhering to TradingView’s publication guidelines.
 Key Features :
 Money Flow Analysis :
Uses the MFI to assess buying and selling pressure, helping traders gauge market momentum.
 Trend Switch Logic :
Employs ATR-based calculations to determine trend direction. The background color adjusts dynamically to signal bullish or bearish conditions, and a prominent center line changes color to reflect the prevailing trend.
 Dynamic Support/Resistance :
Calculates oscillator support and resistance over a pivot lookback period. These levels help you identify potential breakouts or reversals as the MFI moves above or below prior levels.
 Signal Metrics & Classifications :
Combines MFI values with additional metrics to classify signals into categories such as “Strong Bullish,” “Bullish,” “Bearish,” or “Strong Bearish.” An accompanying note provides details on momentum entry and overall signal strength.
 Multi-Timeframe Order Flow Confirmatio n:
Analyzes the MFI on a higher timeframe to confirm order flow. This extra layer of analysis helps verify the short-term signals generated on your primary chart.
 Volume and ADX Integration :
Incorporates volume analysis and a manual ADX calculation to further validate signal strength and trend stability. A dashboard displays these metrics for quick reference.
 Choppiness Indicator :
Includes a choppiness index to determine if the market is trending or choppy. When the market is identified as choppy, the script advises caution by adjusting the overall signal note.
 Comprehensive Dashboard :
A built-in dashboard presents key metrics—including ADX, MFI, order flow, volume score, and support/resistance details—allowing you to quickly assess market conditions at a glance.
 How to Use :
 Trend Identification : Monitor the dynamic background and center line colors to recognize bullish or bearish market conditions.
 Signal Confirmation : Use the oscillator support/resistance levels along with the signal classifications and dashboard data to make informed entry or exit decisions.
 Multi-Timeframe Analysis : Validate short-term signals with the higher timeframe MFI order flow confirmation.
 Risk Management : Always combine these insights with your own risk management strategy and further analysis.
 Disclaimer :
This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Always perform your own analysis and use proper risk management before making any trading decisions. Past performance is not indicative of future results.
Scalping Strategy Signal v2 by [INFINITYTRADER]Overview 
This Pine Script (v6) implements a scalping strategy that uses higher timeframe data (default: 4H) to generate entry and exit signals, originally designed for the 15-minute timeframe with an option for 30-minute charts. The "Scalping Strategy Signal v2 by  " integrates moving averages, RSI, volume, ATR, and candlestick patterns to identify trading opportunities. It features adjustable risk management with ATR-based stop-loss, take-profit, and trailing stops, plus dynamic position sizing based on user-set capital. Trades trigger only on the higher timeframe candle close (e.g., 4H) to limit activity within the same period. This closed-source script offers a structured scalping approach, blending multiple entry methods and risk controls for adaptability across market conditions.
 What Makes It Unique 
Unlike typical scalping scripts relying on single-indicator triggers (e.g., RSI alone or basic MA crossovers), this strategy combines four distinct entry methods—standard MA crossovers, RSI-based momentum shifts, trend-following shorts, and candlestick pattern logic—evaluated on a 4H timeframe for confirmation. This multi-layered design, paired with re-entry logic after losses and a mix of manual, ATR-based, and trailing exits, aims to balance trade frequency and reliability. The higher timeframe filter adds precision not commonly found in simpler scalping tools, while the 30-minute option enhances consistency by reducing noise.
 How It Works 
 Timeframe Logic 
 
 Runs on a base timeframe (designed for 15-minute charts, with a 30-minute option) while pulling data from a user-chosen higher timeframe (default: 4H) for signal accuracy.
 Limits entries to the close of each 4H candle, ensuring one trade per period to avoid over-trading in volatile conditions.
 
 
Indicators and Data 
 
 Moving Averages : Employs 21-period and 50-period simple moving averages on the higher timeframe to detect trends and signal entries/exits.
  Volume : Requires volume to exceed 70% of its 20-period average on the higher timeframe for momentum confirmation.
 RSI : Uses a 14-period RSI for overbought/oversold filtering and a 6-period RSI for precise entry timing.
 ATR : Applies a 14-period Average True Range on the higher timeframe to set adaptive stop-loss and take-profit levels.
  Candlestick Patterns : Analyzes consecutive green or red 4H bars for trend continuation signals.
 
 Why These Indicators 
The blend of moving averages, RSI, volume, ATR, and candlestick patterns forms a robust scalping framework. Moving averages establish trend context, RSI filters momentum and avoids extremes, volume confirms market activity, ATR adjusts risk to volatility, and candlestick patterns enhance entry timing with price action insights. Together, they target small, frequent moves in flat or trending markets, with the 4H filter reducing false signals common in lower-timeframe scalping.
 
Entry Conditions 
Four entry methods are evaluated at the 4H candle close:
  Standard Long Entry: Price crosses above the 21-period moving average, volume exceeds 70% of its 20-period average, and the 1H 14-period RSI is below 70—confirms uptrend momentum.
  Special Long Entry: The 6-period RSI crosses above 23, price is more than 1.5 times the ATR from the 21-period moving average, and price exceeds its prior close—targets oversold bounces with a stop-loss at the 4H candle’s low.
  Short Entries:
     - RSI-Based: The 6-period RSI crosses below 68 with volume support—catches overbought pullbacks.
     - Trend-Based: Price crosses below the 21-period moving average, volume is above 70% of its average, and the 1H 14-period RSI is above 30—confirms downtrends.
  Red/Green Bar Logic: Two consecutive green 4H bars for longs or red 4H bars for shorts—uses candlestick patterns for continuation, with a tight stop-loss from the base timeframe candle.
 
 
Re-Entry Logic 
 
 Long : After a losing special long, triggers when the 6-period RSI crosses 27 and price crosses the 21-period moving average.
 Short : After a losing short, triggers when the 6-period RSI crosses 50 and price crosses below the 21-period moving average.
 Purpose: Offers recovery opportunities with stricter conditions.
 
 Exit Conditions 
 
 Manual Exits: Longs close if the 21-period MA crosses below the 50-period MA or the 1H 14-period RSI exceeds 68; shorts close if the 21-period MA crosses above the 50-period MA or RSI drops below 25.
 ATR-Based TP/SL: Stop-loss is entry price ± ATR × 1.5 (default); take-profit is ± ATR × 4 (default), checked at 4H close.
 Trailing Stop: Adjusts ±6x ATR from peak/trough, closing if price retraces within 1x ATR.
 Special/Tight SL: Special longs exit if price opens below the 4H candle’s low; 4th method entries use the base timeframe candle’s low/high, checked every bar.
 
 
Position Sizing 
 
 Bases trade value on user-set capital (default: 100 USDT), dividing by the higher timeframe close price for dynamic sizing.
 
 Visualization 
 
 Displays a table at the bottom-right with current/previous signals, TP/SL levels, equity, trading pair, and trade size—color-coded for clarity (green for buy, red for sell).
 
 Inputs 
 
 Initial Capital (USDT): Sets trade value (default: 100, min: 1).
 ATR Stop-Loss Multiplier: Adjusts SL distance (default: 1.5, min: 1).
 ATR Take-Profit Multiplier: Adjusts TP distance (default: 4, min: 1).
 Higher Timeframe: Selects analysis timeframe (options: 1m, 5m, 15m, 30m, 1H, 4H, D, W; default: 4H).
 
 Usage Notes 
 
 Intended Timeframe: Designed for 15-minute charts with 4H confirmation for precision and frequency; 30-minute charts improve consistency by reducing noise.
 Backtesting: Adjust ATR multipliers and capital to match your asset’s volatility and risk tolerance.
 Risk Management: Combines manual, ATR, and trailing exits—monitor to avoid overexposure.
 Limitations: 4H candle-close dependency may delay entries in fast markets; RSI/volume filters can reduce trades in low-momentum periods.
 
 Backtest Observations 
Tested on BTC/USDT (4H higher timeframe, default settings: Initial Capital: 100 USDT, ATR SL: 1.5x, ATR TP: 4x) across market conditions, comparing 15-minute and 30-minute charts:
  Bull Market (Jul 2023 - Dec 2023): 
 
   15-Minute: 277 long, 219 short; Win Rate: 42.74%; P&L: 108%; Drawdown: 1.99%; Profit Factor: 3.074.
   30-Minute: 257 long, 215 short; Win Rate: 49.58%; P&L: 116.85%; Drawdown: 2.34%; Profit Factor: 3.14.
   Notes: Moving average crossovers and green bar patterns suited this bullish phase; 30-minute improved win rate and P&L by filtering weaker signals.
 
  Bear Market (Jan 2022 - Jun 2022): 
 
   15-Minute: 262 long, 211 short; Win Rate: 44.4%; P&L: 239.80%; Drawdown: 3.74%; Profit Factor: 3.419.
   30-Minute: 250 long, 200 short; Win Rate: 52.22%; P&L: 258.77%; Drawdown: 5.34%; Profit Factor: 3.461.
   Notes: Red bar patterns and RSI shorts thrived in the downtrend; 30-minute cut choppy reversals for better consistency.
 
 
Flat Market (Jan 2021 - Jun 2021): 
 
   15-Minute: 280 long, 208 short; Win Rate: 51.84%; P&L: 340.33%; Drawdown: 9.59%; Profit Factor: 2.924.
   30-Minute: 270 long, 209 short; Win Rate: 55.11%; P&L: 315.42%; Drawdown: 7.21%; Profit Factor: 2.598.
   Notes: High trade frequency and P&L showed strength in ranges; 30-minute lowered drawdown for better risk control.
 
Results reflect historical performance on BTC/USDT with default settings—users should test on their assets and timeframes. Past performance does not guarantee future results and is shared only to illustrate the strategy’s behavior.
 Why It Works Well in Flat Markets 
A "flat market" lacks strong directional trends, with price oscillating around moving averages, as in Jan 2021 - Jun 2021 for BTC/USDT. This strategy excels here because its crossover-based entries trigger frequently in tight ranges. In trending markets, an exit might not be followed by a new entry without a pullback, but flat markets produce multiple crossovers, enabling more trades. ATR-based TP/SL and trailing stops capture these small swings, while RSI and volume filters ensure momentum, driving high P&L and win rates.
 Technical Details 
 
 Built in Pine Script v6 for TradingView compatibility.
 Prevents overlapping trades with long/short checks.
  Handles edge cases like zero division and auto-detects the trading pair’s base currency (e.g., BTC from BTCUSDT).
 
This strategy suits scalpers seeking structured entries and risk management. Test on 15-minute or 30-minute charts to match your style and market conditions.
Scalping long-shortThe Scalping long-short indicator is a comprehensive system for analyzing candle patterns and trading volume, designed for use in a scalping strategy. The main purpose of the indicator is to identify the key points of changing market sentiment and provide the trader with accurate signals for entering a trade.
The main components of the indicator:
1. Candle Pattern Analysis:
The indicator analyzes four main candle patterns:
-A Bullish Hammer is a candle with a small body and a long lower tail, which indicates the possible completion of a downward movement and the beginning of an uptrend.
-Bearish Hanging Man is a candle similar to a bullish hammer, but it appears after an upward movement, signaling the possible beginning of a downtrend.
-Bullish Engulfing is a candle with a large body that completely covers the body of the previous candle, showing strong buyer interest.
-Bearish Engulfing is the reverse situation, when a large bearish candle absorbs the previous bullish candle, indicating the predominance of sellers.
-Doji is a candle with almost identical opening and closing prices, indicating market indecision.
For each of these patterns, the indicator sets certain threshold values that the user can adjust to their preferences and features of the trading instrument.
2. Volume analysis:
The volume is an important confirmation of the strength of the signal. The indicator compares the current volume with the average value for the user-selected period (length parameter) multiplied by the volumeMultiplier coefficient. If the current volume exceeds this indicator, the signal is considered confirmed.
3. Visual indication:
Graphical elements corresponding to each type of signal are displayed on the price chart.:
-The green triangle down is a buy signal (bullish hammer or bullish takeover).
-The red triangle up is a sell signal (bearish hanging or bearish engulfing).
-The yellow diamond is a neutral state (doji).
These visual cues help you quickly assess the current market situation without having to analyze each candle manually in depth.
4. Alerts:
The indicator supports setting alerts that can be sent via the TradingView platform or other supporting systems. This allows the trader to receive notifications about the occurrence of new signals even outside the workplace.
Settings:
The user can change the following settings:
-Length is the period for calculating the average volume.
-Multiplier is a multiplier for the thresholds of candle patterns.
-HammerThreshold, HangingManThreshold, EngulfingThreshold, DojiThreshold are Thresholds for recognizing specific candlestick patterns.
-VolumeMultiplier is a coefficient for comparing the current volume with the average value.
These parameters allow you to adapt the indicator to various trading instruments and time intervals, making it a universal tool for a wide range of traders.
Conclusion:
The Scalping long-short indicator combines powerful analytical tools to identify key points in the market, providing the trader with clear and timely signals for making trading decisions. Its flexibility and fine-tuning capability make it useful for both beginners and experienced market participants.
Johnny The Scalper -  Momentum/Speed [by Oberlunar]The  Johnny The Scalper   indicator is designed to provide scalpers with insights into market momentum and speed dynamics by analyzing the price movement within candles. It calculates the "candle speed," defined as the range of a candle (high minus low) divided by the elapsed time in seconds since the candle opened. Users can customize the distance for comparison by specifying how many candles back the indicator should look when calculating the speed difference (`Diff`).
The script retrieves the speed of the specified candle from the past (`candle_speed_x`) and compares it to the speed of the current candle, calculating the difference (`speed_difference`). The indicator also identifies whether the current candle and the candle from the past are bullish (green) or bearish (red), using this information to interpret the dynamics of the difference.
If the difference is negative, it means the current candle's speed is slower than the reference candle's speed. A negative difference combined with candles of the same direction suggests a slowdown, while candles of opposite directions indicate a slowing reversal. A positive difference suggests that the current candle is faster. If the candles have the same direction, it signifies an acceleration in the current trend; if their directions differ, it indicates a faster reversal.
The results are displayed graphically as labels on the chart. Labels above the candles show the difference  Diff  with color-coded backgrounds based on the calculated dynamics: 
 
 orange for a slowdown in the same direction, 
 red for a slowing reversal, 
 green for acceleration in the same direction,
 and blue for a faster reversal.
 
An additional label below the candle optionally displays the current candle's speed in real time. This indicator helps scalpers identify momentum shifts and potential reversals in a highly customizable manner, adapting to different trading strategies and timeframes.
Thrax - QuickStrike 5-Mins Scalping** Indicator Description ** 
 1. Price Change Threshold (%)  – The minimum price change required for a candle to be recognized as significant. Candles exceeding this threshold are considered potential candidates for zone creation. Default value for 5 min is 0.5%. As you move on higher timeframe the threshold should increase  
 2. Percentage Change for Zones (%)  – The amount of price movement needed to form a dynamic support or resistance zone. Tweak this to control how sensitive the indicator is to price fluctuations. 5 min default value is 1%. For 15 min suggested is 2-3%. 
 3. Break Threshold for Zones (%)  – Defines how much price must break above or below a zone for it to be removed from the chart/mitigated. Keeps the chart clean by removing invalidated zones. Default value is 0.1% in 5 min, for 15 min it is 0.5%.
 4. Buy Zone Retracement Level (%)  – The percentage retracement level for defining the inner buy zone within a broader bullish zone. Ideal for timing precision entries. Ideal value is 75%
 5. Sell Zone Retracement Level (%)  – The percentage retracement level used to determine the inner sell zone within a larger bearish zone. Helps in identifying potential reversal areas or exits. Ideal value is 25%
By tailoring these inputs, traders can fully customize the indicator to suit their scalping strategies, enhancing their ability to navigate fast-moving markets with confidence.
---------------------------------------------------------------------------
   
There are two primary approaches for scalping using this indicator:
 1. Candle-Based Scalping: 
a. Bullish Signal: When you observe a bullish candle highlighted in blue (by default), you can consider entering a long position at the close of this candle. It’s advisable to wait for the candle to close before taking action. For a more aggressive scalp, you might take profits based on your scalp target after a few subsequent candles. If the price remains stagnant or moves unfavorably in the next few candles, you can exit with a small loss. Alternatively, if you have a higher risk tolerance, you may hold the position even if the price initially declines within a set percentage.
b. Bearish Signal: For a bearish candle highlighted in yellow, you can enter a short trade at the close of the candle. Similar to the bullish setup, you have the option to exit after a few candles if the price doesn’t move as expected or hold the position with a higher risk tolerance if the price goes up initially.
 2. Zone-Based Scalping: 
Entering Zones: Monitor the price as it enters a defined support or resistance zone. If you are open to higher risk, you can enter a trade immediately upon the price entering the zone. For a more cautious approach with a smaller stop loss, wait for the price to reach a retracement level within the zone before initiating your trade. This approach allows for a more precise entry but may result in missing out on trades if the price reverses before hitting the retracement level. Conversely, entering at the zone’s boundary offers the potential for early trade capture but comes with a higher stop loss risk.
Adjust these strategies based on your risk tolerance and trading preferences to optimize your scalping opportunities.
HilalimSBHilalimSB A Wedding Gift 🌙
HilalimSB - Revealing the Secrets of the Trend
HilalimSB is a powerful indicator designed to help investors analyze market trends and optimize trading strategies. Designed to uncover the secrets at the heart of the trend, HilalimSB stands out with its unique features and impressive algorithm.
Hilalim Algorithm and Fixed ATR Value:
HilalimSB is equipped with a special algorithm called "Hilalim" to detect market trends. This algorithm can delve into the depths of price movements to determine the direction of the trend and provide users with the ability to predict future price movements. Additionally, HilalimSB uses its own fixed Average True Range (ATR) value. ATR is an indicator that measures price movement volatility and is often used to determine the strength of a trend. The fixed ATR value of HilalimSB has been tested over long periods and its reliability has been proven. This allows users to interpret the signals provided by the indicator more reliably.
ATR Calculation Steps
1.True Range Calculation:
           + The True Range (TR) is the greatest of the following three values:                        
                       1.  Current high minus current low
                       2.  Current high minus previous close (absolute value)
                       3.  Current low minus previous close (absolute value)
2.Average True Range (ATR) Calculation:
        -The initial ATR value is calculated as the average of the TR values over a specified period 
         (typically 14 periods).
        -For subsequent periods, the ATR is calculated using the following formula: 
                                        ATRt=(ATRt−1×(n−1)+TRt)/n
Where:
                                     
+ ATRt is the ATR for the current period,
+ ATRt−1 is the ATR for the previous period,
+ TRt is the True Range for the current period,
+ n is the number of periods.
Pine Script to Calculate ATR with User-Defined Length and Multiplier
Here is the Pine Script code for calculating the ATR with user-defined X length and Y multiplier:
 //@version=5
indicator("Custom ATR", overlay=false)
// User-defined inputs
X = input.int(14, minval=1, title="ATR Period (X)")
Y = input.float(1.0, title="ATR Multiplier (Y)")
// True Range calculation
TR1 = high - low
TR2 = math.abs(high - close )
TR3 = math.abs(low - close )
TR = math.max(TR1, math.max(TR2, TR3))
// ATR calculation
ATR = ta.rma(TR, X)
// Apply multiplier
customATR = ATR * Y
// Plot the ATR value
plot(customATR, title="Custom ATR", color=color.blue, linewidth=2)
 
This code can be added as a new Pine Script indicator in TradingView, allowing users to calculate and display the ATR on the chart according to their specified parameters.
HilalimSB's Distinction from Other ATR Indicators
HilalimSB emerges with its unique Average True Range (ATR) value, presenting itself to users. Equipped with a proprietary ATR algorithm, this indicator is released in a non-editable form for users. After meticulous testing across various instruments with predetermined period and multiplier values, it is made available for use.
ATR is acknowledged as a critical calculation tool in the financial sector. The ATR calculation process of HilalimSB is conducted as a result of various research efforts and concrete data-based computations. Therefore, the HilalimSB indicator is published with its proprietary ATR values, unavailable for modification.
The ATR period and multiplier values provided by HilalimSB constitute the fundamental logic of a trading strategy. This unique feature aids investors in making informed decisions.
Visual Aesthetics and Clear Charts:
HilalimSB provides a user-friendly interface with clear and impressive graphics. Trend changes are highlighted with vibrant colors and are visually easy to understand. You can choose colors based on eye comfort, allowing you to personalize your trading screen for a more enjoyable experience. While offering a flexible approach tailored to users' needs, HilalimSB also promises an aesthetic and professional experience.
  
Strong Signals and Buy/Sell Indicators:
After completing test operations, HilalimSB produces data at various time intervals. However, we would like to emphasize to users that based on our studies, it provides the best signals in 1-hour chart data. HilalimSB produces strong signals to identify trend reversals. Buy or sell points are clearly indicated, allowing users to develop and implement trading strategies based on these signals.
For example, let's imagine you wanted to open a position on BTC on 2023.11.02. You are aware that you need to calculate which of the buying or selling transactions would be more profitable. You need support from various indicators to open a position. Based on the analysis and calculations it has made from the data it contains, HilalimSB would have detected that the graph is more suitable for a selling position, and by producing a sell signal at the most ideal selling point at 08:00 on 2023.11.02 (UTC+3 Istanbul), it would have informed you of the direction the graph would follow, allowing you to benefit positively from a 2.56% decline.
Technology and Innovation:
HilalimSB aims to enhance the trading experience using the latest technology. With its innovative approach, it enables users to discover market opportunities and support their decisions. Thus, investors can make more informed and successful trades. Real-Time Data Analysis: HilalimSB analyzes market data in real-time and identifies updated trends instantly. This allows users to make more informed trading decisions by staying informed of the latest market developments. Continuous Update and Improvement: HilalimSB is constantly updated and improved. New features are added and existing ones are enhanced based on user feedback and market changes. Thus, HilalimSB always aims to provide the latest technology and the best user experience.
Social Order and Intrinsic Motivation:
Negative trends such as widespread illegal gambling and uncontrolled risk-taking can have adverse financial effects on society. The primary goal of HilalimSB is to counteract these negative trends by guiding and encouraging users with data-driven analysis and calculable investment systems. This allows investors to trade more consciously and safely.
Session Breakout Scalper Trading BotHi Traders !
 Introduction: 
I have recently been exploring the world of automated algorithmic trading (as I prefer more objective trading strategies over subjective technical analysis (TA)) and would like to share one of my automation compatible (PineConnecter compatible) scripts “Session Breakout Scalper”.
The strategy is really simple and is based on time conditional breakouts although has more ”relatively” advanced optional features such as the regime indicators (Regime Filters) that attempt to filter out noise by adding more confluence states and the ATR multiple SL that takes into account volatility to mitigate the down side risk of the trade.
 What is Algorthmic Trading: 
Firstly what is algorithmic trading? Algorithmic trading also known as algo-trading, is a method of using computer programs (in this case pine script) to execute trades based on predetermined rules and instructions (this trading strategy). It's like having a robot trader who follows a strict set of commands to buy and sell assets automatically, without any human intervention.
 Important Note: 
For Algorithmic trading the strategy will require you having an essential TV subscription at the minimum (so that you can set alerts) plus a PineConnecter subscription (scroll down to the .”How does the strategy send signals” headings to read more)
 The Strategy Explained: 
 
 Is the Time input true ? (this can be changed by toggling times under the “TRADE MEDIAN TIMES” group for user inputs).
 Given the above is true the strategy waits x bars after the session and then calculates the highest high (HH) to lowest low (LL) range. For this box to form, the user defined amount of bars must print after the session. The box is symmetrical meaning the HH and LL are calculated over a lookback that is equal to the sum of user defined bars before and after the session (+ 1).
 The Strategy then simultaneously defines the HH as the buy level (green line) and the LL as the sell level (red line). note the strategy will set stop orders at these levels respectively.
 Enter a buy if price action crosses above the HH, and then cancel the sell order type (The opposite is true for a stop order).
 If the momentum based regime filters are true the strategy will check for the regime / regimes to be true, if the regime if false the strategy will exit the current trade, as the regime filter has predicted a slowing / reversal of momentum.
 
The image below shows the strategy executing these trading rules  ( Regime filters, "Trades on chart",  "Signal & Label" and  "Quantity" have been omitted. "Strategy label plots" has been switched to true) 
 Other Strategy Rules: 
 
 If a new session (time session which is user defined) is true (blue vertical line) and the strategy is currently still in a trade it will exit that trade immediately.
 It is possible to also set a range of percentage gain per day that the strategy will try to acquire, if at any point the strategy’s profit is within the percentage range then the position / trade will be exited immediately (This can be changed in the “PERCENT DAY GAIN” group for user inputs)
 
 Stops and Targets: 
The strategy has either static (fixed) or variable SL options. TP however is only static. The “STRAT TP & TP” group of user inputs is responsible for the SL and TP values (quoted in pips). Note once the ATR stop is set to true the SL values in the above group no longer have any affect on the SL as expected.
 What are the Regime Filters: 
The Larry Williams Large Trade Index (LWLTI): The Larry Williams Large Trade Index (LWTI) is a momentum-based technical indicator developed by iconic trader Larry Williams. It identifies potential entries and exits for trades by gauging market sentiment, particularly the buying and selling pressure from large market players. Here's a breakdown of the LWTI:
LWLTI components and their interpretation:
Oscillator: It oscillates between 0 and 100, with 50 acting as the neutral line.
Sentiment Meter: Values above 75 suggest a bearish market dominated by large selling, while readings below 25 indicate a bullish market with strong buying from large players.
Trend Confirmation: Crossing above 75 during an uptrend and below 25 during a downtrend confirms the trend's continuation.
The Andean Oscillator (AO) : The Andean Oscillator is a trend and momentum based indicator designed to measure the degree of variations within individual uptrends and downtrends in the prices.
 Regime Filter States: 
In trading, a regime filter is a tool used to identify the current state or "regime" of the market.
These Regime filters are integrated within the trading strategy to attempt to lower risk (equity volatility and/or draw down). The regime filters have different states for each market order type (buy and sell). When the regime filters are set to true, if these regime states fail to be true the trade is exited immediately.
For Buy Trades:
 
 LWLTI positive momentum state: Quotient of the lagged trailing difference and the ATR > 50
 AO positive momentum state: Bull line > Bear line (signal line is omitted)
 
For Sell Trades:
 
 LWLTI negative momentum stat: Quotient of the lagged trailing difference and the ATR < 50
 AO negative momentum state: Bull line < Bear line (signal line is omitted)
 
 How does the Strategy Send Signals: 
The strategy triggers a TV alert (you will neet to set a alert first), TV then sends a HTTP request to the automation software (PineConnecter) which receives the request and then communicates to an MT4/5 EA to automate the trading strategy.
For the strategy to send signals you must have the following
 
 At least a TV essential subscription
 This Script added to your chart
 A PineConnecter account, which is paid and not free. This will provide you with the expert advisor that executes trades based on these strategies signals.
 
For more detailed information on the automation process I would recommend you read the PineConnecter documentation and FAQ page.
 Dashboard: 
This Dashboard (top right by defualt) lists some simple trading statistics and also shows when a trade is live.
 Important Notice: 
- USE THIS STRATEGY AT YOUR OWN RISK AND ALWAYS DO YOUR OWN RESEARCH & MANUAL BACKTESTING !
- THE STRATEGY WILL NOT EXHIBIT THE BACKTEST PERFORMANCE SEEN BELOW IN ALL MARKETS !






















