Oybek stats**PM Gap Scanner — 10 Tickers**
Monitors up to 10 symbols at once and fires an alert when a stock moves away from its previous regular-session close by more than a set threshold during pre-market hours.
Key features:
- Ten user-defined symbols, each with its own threshold (set to 0 to fall back to the global one)
- Threshold measured in points or percent
- Direction filter: gap up only, gap down only, or both
- Configurable pre-market window (default 04:00–09:30 ET)
- One alert per ticker per day, optional
- On-chart table showing live Δ$ and Δ% for every symbol, with a highlight on triggered rows
- Alert message includes ticker, gap in points and percent, previous close, current price, and the threshold that fired
Setup: add to a 1-minute chart with Extended Trading Hours enabled, then create an alert using "Any alert() function call" set to Once Per Bar. A single alert covers the whole list. Indicator

Indicator

Previous Day Levels & Stats - High and Low, Wicks, Gaps👀OVERVIEW
Previous Day Levels & Stats (PDH/PDL) draws yesterday's open, high, low and close on today's chart and pairs them with a statistics table showing how this symbol has historically behaved at those levels and split both by whether yesterday closed red or green, and by where today opened.
Most previous-day indicators tell you where yesterday's high and low sit. This one also tells you what price has historically done at those levels including:
⚪ How often the previous day level broke
⚪ How often a break held
⚪ How often price traded into yesterday's wick zone and got rejected
⚪ How far a real break typically ran which is then calculated in today's dollars and added to the chart as an option.
Stats tables like this exist already, but this one splits every statistic two ways at once. First by whether yesterday closed red or green, and then by where today opened. A three-way open classification decides which numbers apply to today.
⚡ CONCEPT
Previous Day. The previous day is the most recently completed regular trading session. At the 4:00 pm close, the levels, candle, projection, and table all flip to the day that just finished and these new levels hold through post-market and the next morning's pre-market. This allows you to prepare for the next day ahead of time.
Conditioning on yesterday's color. The data for red days and green days are kept in two separate sets. The table header tells you which condition applies right now ("AFTER A RED DAY" / "AFTER A GREEN DAY"), and you only ever see the set that matters today.
Conditioning on today's open. Each day is classified three ways against yesterday's range: ⚪Opened inside the range
⚪Gapped above the previous day's high
⚪Gapped below the previous day's low
These are all different situations, a PDH break on an inside day and a gap that opened above PDH are not the same event, so they get separate data and are shown in separate rows.
When trading opens on each new day, the table reduces to only show the section that applies for today. The full table returns at the close so you can study both possibilities while preparing for the next day. If you prefer to always see both sections, a setting turns this off and the non-applicable section dims instead.
Inside-day rows. For days that opened inside yesterday's range.
🔴A: Wick rejected: The day opened inside yesterday's range and traded up into yesterday's upper wick, reaching at least the top of yesterday's body. It never touched yesterday's high, and it ultimately closed back below the top of the body (below the wick). If the day so much as touched yesterday's high, it counts in the break rows instead of in wick rejected row. The percentage is out of all days that opened inside yesterday's range after the same color day. This is showing when we open inside the previous day how often price traded both up into the wick and then got rejected. The PDL column is the mirror image using the lower wick and yesterday's low.
🔵B: Broke but failed: The day opened inside yesterday's range and traded up to or above yesterday's high then ultimately closed at or under yesterday's high. This includes closes just under the high, inside the wick, inside the body and through to the other side of the previous day. This is showing when we open inside the previous day how often price traded both up above the previous day and then got rejected. The PDL column is the mirror image using yesterday's low.
🟡C: Broke & held: The day opened inside yesterday's range and traded up to and above yesterday's high then ended up closing the day above it. This does not track anything that happens in between the break and the close, simply the final outcome. The PDL column is the mirror image using the low of yesterday.
🟢D: Typical run past level: On inside opening days where a break beyond PDH or PDL held, the indicator measures how far price historically ran beyond the level. A run measured in dollars from years ago is not comparable to one from last week. So each historical run is first measured against what a normal daily range was at that time, the median value of all those runs is taken, and that value is converted back to dollars using what a normal daily range is now. The result reads like this: when a break like this held, price typically ran about this far past the level. The median average is used instead of mean average so a single giant day cannot distort the number. In addition to the median distance of the run, a second, farther distance is also available: about 1 in 4 of those runs went beyond this level. This does not include days that closed back inside, these are all from days that broke and held. This also is the furthest distance of the day, not how far the final close of the day was.
Each row is a separate outcome from the same set of days. A day lands in at most one of the three rows per column. The rows do not add up to 100 because some inside days never reach some of the levels at all. The only row that is connected is the Typical run past level row which is based on days that broke and closed past the high or low.
Gap-day rows. For days that opened either above PDH or below PDL.
🔴A: Gap Fill: Opened beyond either PDH or PDL and price came back to at least touch the respective PDH or PDL during the day. This is specifically for the high or low of the previous day, not the previous days close. A day can fill the gap to the level and still close back beyond it, so this row overlaps the rows below it.
🔵B: Wick rejected: Opened beyond either PDH or PDL, traded back into only the wick of the previous day (did not trade back into the body of the candle) and then closed back beyond respective high or low. This is showing when we opened above or below previous day, how often we both traded into the respective high or low wick and back out beyond it. If price at any time during the day traded into the body of the previous candle, it no longer counts in this row.
🟡C: Body rejected: Opened beyond either PDH or PDL, traded back into the body of the previous day candle and then closed the day all the way back beyond respective high or low.
🟢D: Closed back inside: Opened beyond either PDH or PDL and by the end of the day closed back inside the previous day range (wick or body).
🟠E: Closed through: Opened beyond PDH or PDL and ultimately closed the day on the opposite side of the previous day candle than where it opened.
🟣F: Gap held: Opened above PDH and closed the day still above PDH, or opened below PDL and closed the day still below PDL, regardless of what happened in between. This row includes days that never pulled back and days that pulled back and recovered. So price could have never even touched the previous days candle, traded clear through to the other side and back again or anything in between, but closed the day on the same side as the open gap.
Wick rejected and Body rejected are subsets of Gap held. Gap held, Closed back inside, Closed through partition all gap days and sum to 100%.
⭐Doji days. If yesterday closed exactly where it opened, it has no color, so no condition applies. The indicator carries the most recent non-doji color forward for the table, and the header reads "AFTER A DOJI DAY*" on a neutral background so you know a substitution happened. Days that follow a doji are not counted into either condition's statistics, they're displayed under the carried color, never counted under it. So the previous day open, high, low and close are based on the actual previous day (the doji), but the stats are filtered through the most recent colored day before it. There are not enough doji days to have a realistic amount of data to work from. So the levels are used but the data is from the color of the bar before the doji day.
💥FEATURES
• The statistics table: conditioned as described above, with preset color themes (including one designed for light charts). Cell color intensity shows decisiveness, not direction. The further a percentage sits from a coin flip (50/50) in either direction, the stronger the cell glows. Sample sizes appear in hover tooltips on every row.
• Previous-day OHLC lines: with span, style, width, and label options.
• Previous-day candle: a large rendering of yesterday's candle beside today's action, with different placement options.
• Projection overlay: yesterday's candle projected across today's session, so you watch today on top of yesterday's shape.
• Typical-run levels: optional lines shown on the chart from inside days only.
❓HOW TO USE
1. Open an intraday chart of a stock before the market opens. The levels and/or projection already show the most recently completed day and the table shows the data based on what color the previous day was for both if today opens inside previous day and if today opens with a gap in either direction.
2. At 9:30 AM ET, the table will classify the day and the section matching today's open highlights. That shows context, what this symbol has historically done from this starting situation in the past.
3. Use the OHLC lines and wick zones as the map, and the table as the stats at each level. Hover any row for its exact definition and sample size.
4. On inside-open days, turn on the typical-run levels if you want the median-run distances drawn on the chart.
The table describes what this symbol has done, not what it will do. Treat every number as context, not a prediction.
❗ LIMITATIONS
• Session logic is built around US stocks (9:30–4:00 ET regular session). The indicator loads on other symbols, but the open classification, the flip at the close, and the projection presets assume US stock sessions; on 24-hour markets without distinct pre/post sessions the close-flip does not engage.
• Statistics are historical frequencies on your symbol's data. They are not predictions, carry no performance implication, and small samples (newer tickers, rare conditions) mean wider uncertainty so check the sample sizes in the tooltips.
• Days following a doji are excluded from both condition samples (see Concepts), so condition totals will be slightly smaller than the symbol's full day count.
• Absence of typical-run lines on a gap open is intentional, the typical run lines are based on a break out of the prior day. In an attempt to keep the indicator simple and user friendly, the lines are only applied for break outs of the range.
• During post-market, the projection covers the just-completed session behind price; the pre-market view is the designed preparation window.
• Different data feeds disagree by cents on some historical days, so counts can differ slightly between feeds.
• This indicator is for educational purposes and is not intended to be used alone for decision making. Make sure that you properly backtest with any data before using it.
📋NOTES
All statistics are computed from the symbol's complete daily history, so the numbers are the same on every chart timeframe and don't depend on how many bars your chart happens to have loaded. Everything is computed on confirmed bars only and states move forward-only so nothing is retroactively relabeled, and what you see live is what remains on the chart in history and in replay.
Indicator

Terminal Velocity Stop | Lyro RSOverview:
Terminal Velocity Stop is an ATR-based trailing stop that borrows a physics concept for its trailing logic: a falling object stops accelerating once it hits terminal velocity. Instead of letting a single vertical candle snap the stop right under price, this stop's per-bar movement is hard-capped at a maximum speed, so it keeps a controlled distance through violent moves and only closes the gap gradually once the market settles.
Key Features
ATR-Based Stop Targeting: Calculates a bullish and bearish stop target using independent ATR multipliers, allowing asymmetric distance in uptrends versus downtrends.
Terminal Velocity Cap: Limits how far the stop can travel per bar (in ATR terms), so parabolic candles cannot yank the stop into the noise — the stop always approaches its target at a controlled, capped speed.
Directional Trailing Logic: The stop only tightens in the direction of the current trend and flips direction (with a fresh target) once price closes through it.
Trend Cloud Fill: Fills the space between price and the stop line, shaded and colored to reflect current trend direction and give a clear visual sense of the cushion between price and the stop.
Flip Markers: Plots a marker dot at the exact bar where the stop flips direction, making trend reversals easy to spot at a glance.
Candle Coloring: Colors chart candles according to the current stop direction for immediate visual alignment between price action and trend state.
Customizable Visuals: Choose from 4 preset palettes — Classic, Mystic, Accented, Royal — or define your own custom bullish/bearish colors.
How It Works
ATR Calculation – Computes the Average True Range over the chosen length as the base volatility measure.
Target Calculation – Sets a bullish target below price or bearish target above price, offset by the respective ATR multiplier.
Speed Capping – Limits the stop's movement toward its target each bar to a maximum of the Terminal Velocity setting (in ATR per bar), regardless of how far the target has moved.
Directional Trailing – In an uptrend the stop only ratchets upward toward its target; in a downtrend it only ratchets downward, never loosening.
Flip Detection – When price closes beyond the current stop, direction flips and a new stop target is established on the opposite side of price.
Visualization – Plots the stop line with a glow effect, fills the trend cloud between price and stop, marks flips, and colors candles to match the current direction.
Practical Use
Trailing Stop Management – Use the plotted stop line as a dynamic trailing stop level for open positions, adjusting for the asymmetric up/down multipliers to suit your risk tolerance.
Volatility Spike Protection – The Terminal Velocity cap helps avoid getting stopped out prematurely during a single volatile candle by preventing the stop from moving too aggressively in one bar.
Trend Direction Read – Use flip markers and candle coloring as a quick visual cue for the prevailing trend direction.
Cushion Awareness – Watch the width of the trend cloud to gauge how much room price currently has before triggering a stop flip.
Customization
Adjust ATR Length to tune stop responsiveness to volatility.
Set independent + and - Multipliers to control stop distance separately for uptrends and downtrends.
Adjust Terminal Velocity to control the maximum per-bar speed of the stop.
Pick a preset palette or define fully custom bullish/bearish colors.
⚠️Disclaimer
This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals. Indicator

WEINSTEIN 4-STAGE ANALYSIS (A/B Sub-Stages)WEINSTEIN 4-STAGE ANALYSIS (A/B Sub-Stages)
This indicator implements Stan Weinstein's classic 4-stage market cycle theory, with an added layer of A/B sub-stage granularity so you know not just what stage a stock is in, but where it sits within that stage.
THE FOUR STAGES
Stage 1 - Basing: Price is flat, moving averages are flattening out after a decline. No clear trend. This is a "wait and watch" phase.
Stage 2 - Advancing: Price is above a rising 200 SMA, with the 50 SMA also above the 200 SMA. This is the primary uptrend / buy zone.
Stage 3 - Topping: The advance is losing steam. Price and averages start to roll over. Time to start reducing exposure.
Stage 4 - Declining: Price is below a falling 200 SMA, with the 50 SMA also below it. Downtrend confirmed. Avoid or exit longs.
SUB-STAGES (A/B)
Each stage is split further:
1A (Early Base) vs 1B (Late Base) - based on whether the 200 SMA slope has flattened out yet
2A (Early Advance / Primary Buy) vs 2B (Late Advance) - based on how long the stock has been in Stage 2, or how extended price is above the 50 SMA
3A (Early Top / Trim) vs 3B (Late Top / Sell Remaining) - based on a support break or a rolling-over 200 SMA
4A (Early Decline / Exit) vs 4B (Late Decline / Stay Out) - based on time spent declining, plus volume contraction and slope steepness
KEY INPUTS
Slope Lookback & Rising/Falling Thresholds - controls how sensitive the Stage 2/4 classification is to the 200 SMA's slope
Sub-Stage Thresholds - separately tunable settings for the A/B splits (flat slope %, weeks-in-stage limits, extension %, support break lookback)
Volume Confirmation - flags Expansion/Contraction relative to a moving average of volume
Relative Strength - compares the stock's return over a lookback period to a benchmark (default SPY)
Sector Trend - auto-detects the stock's sector and compares it to the matching Sector SPDR ETF (or manually override the ETF)
ON-CHART TABLE
A live table (position and text size configurable) shows: current stage, sub-stage, recommended action, days/weeks in stage, 50 vs 200 SMA relationship, 200 SMA slope, extension above 50 SMA, volume state, relative strength vs benchmark, sector trend, and the date of the last Buy/Sell signal.
SIGNALS & ALERTS
BUY label - fires on transition into Stage 2
SELL label - fires on transition from Stage 2 into Stage 3
Background shading - color-coded by current stage
Full alert suite - covers Buy/Sell signals, Stage 4 confirmation, early-window alerts, and a dedicated alert for every A/B sub-stage transition
HOW TO USE IT
Use Stage 2A as your primary entry signal, 2B as a cue to tighten stops rather than add new exposure, 3A/3B to scale out, and 4A/4B to stay in cash or avoid bottom-fishing too early. Combine with your own position sizing and stop-loss rules — this indicator classifies the stage but does not manage risk for you.
This indicator is for educational and informational purposes only and is not financial advice. Indicator

Indicator

Bank Nifty Box 9 OVERVIEW
Bank Nifty Box 9 is an intraday reference-level indicator designed primarily for BANKNIFTY.
The indicator uses the closing price of the first 5-minute candle of the trading day and calculates an upper and lower band at a configurable percentage distance from that closing price.
The default calculation uses ±0.09%.
It also displays the daily Volume Weighted Average Price (VWAP) to provide additional intraday price-location context.
The indicator displays:
• Upper 0.09% band
• Lower 0.09% band
• Daily VWAP
• Automatically updated levels for each new trading day
This indicator does not generate automatic buy or sell signals and does not place or manage trades.
FIRST 5-MINUTE REFERENCE CANDLE
The script identifies the 5-minute candle beginning at 9:15 AM in the exchange timezone.
For the Indian equity market, this represents the first regular-session candle from approximately 9:15 AM to 9:20 AM.
The closing price of this candle becomes the base price for that trading day.
The bands remain unavailable until the first 5-minute candle has completed and its closing price is confirmed.
CALCULATION
The percentage input is converted into decimal form:
Percentage Value = Band Percentage ÷ 100
With the default setting:
0.09 ÷ 100 = 0.0009
The upper and lower levels are then calculated as:
Upper Band = First 5-Minute Close × (1 + 0.0009)
Lower Band = First 5-Minute Close × (1 − 0.0009)
EXAMPLE
Assume the first 5-minute BANKNIFTY candle closes at 50,000.
Upper Band:
50,000 × 1.0009 = 50,045
Lower Band:
50,000 × 0.9991 = 49,955
The indicator will therefore display:
Upper Band: 50,045
Lower Band: 49,955
These levels remain fixed for the rest of that trading day.
At the beginning of the next trading day, the previous reference price is cleared and new bands are calculated from the new first 5-minute candle close.
UPPER BAND INTERPRETATION
The upper band represents a price level positioned 0.09% above the first 5-minute closing price.
When price closes and sustains above the upper band, traders may interpret this as evidence of positive intraday expansion or bullish acceptance above the opening reference range.
Price trading above both the upper band and VWAP may provide stronger bullish context than a temporary wick above the band.
However, an upper-band break does not guarantee that price will continue higher.
LOWER BAND INTERPRETATION
The lower band represents a price level positioned 0.09% below the first 5-minute closing price.
When price closes and sustains below the lower band, traders may interpret this as evidence of negative intraday expansion or bearish acceptance below the opening reference range.
Price trading below both the lower band and VWAP may provide stronger bearish context than a temporary wick below the band.
However, a lower-band break does not guarantee that price will continue lower.
VWAP
VWAP means Volume Weighted Average Price.
It represents the average traded price of the session while accounting for volume.
The indicator calculates VWAP using:
High + Low + Close
──────────────────
3
This value is used as the price source for the VWAP calculation.
VWAP can provide additional context:
• Price above VWAP may indicate positive intraday positioning.
• Price below VWAP may indicate negative intraday positioning.
• Price repeatedly crossing VWAP may indicate indecision or a ranging market.
• VWAP can act as a dynamic reference level, but it is not guaranteed support or resistance.
The VWAP display can be enabled or disabled from the indicator settings.
BASIC INTERPRETATION MODEL
Potential bullish context:
• The first 5-minute candle has closed.
• Price moves above the upper 0.09% band.
• A candle closes above the upper band.
• Price remains above VWAP.
• The upper band is respected during a pullback.
Potential bearish context:
• The first 5-minute candle has closed.
• Price moves below the lower 0.09% band.
• A candle closes below the lower band.
• Price remains below VWAP.
• The lower band is respected during a retracement.
Potential neutral or ranging context:
• Price remains between the upper and lower bands.
• Price repeatedly crosses VWAP.
• Breakouts above or below the bands fail to sustain.
• Price returns quickly inside the band range.
These are analytical observations and not automatic entry conditions.
HOW TO USE
1. Add the indicator to a BANKNIFTY intraday chart.
2. Use a standard candlestick chart.
3. Wait for the first 5-minute candle of the regular session to close.
4. Observe the upper and lower bands calculated from that closing price.
5. Monitor whether price remains inside the range, closes above the upper band, or closes below the lower band.
6. Use VWAP to evaluate whether price is trading with or against the broader intraday positioning.
7. Prefer confirmed candle closes and sustained price acceptance rather than relying only on intrabar wicks.
8. Combine the levels with an independently tested method of market structure, price action, volume, risk management, and stop-loss placement.
SETTINGS
Band Percentage
Controls the percentage distance of the upper and lower bands from the first 5-minute closing price.
Default value: 0.09%
Increasing the value creates wider bands.
Reducing the value creates narrower bands.
Show VWAP
Enables or disables the daily VWAP line.
DAILY RESET
The stored base price is reset when a new trading day begins.
The indicator then waits for the new 9:15 AM 5-minute candle to complete.
Once that candle closes, the script stores its closing price and calculates the new upper and lower bands for the current day.
The previous day’s calculated bands do not continue into the next trading day.
REAL-TIME BEHAVIOUR
The first 5-minute closing price is only confirmed after the 9:15 AM candle has completed.
Before that candle closes, the daily upper and lower bands may not be displayed.
Once confirmed, the base closing price and its calculated bands remain fixed for that trading day.
VWAP continues updating throughout the trading session as new price and volume data become available.
A developing candle can move above or below a band before it closes. Traders should distinguish between:
• An intrabar wick through a level
• A candle close beyond a level
• Sustained acceptance beyond a level
PURPOSE AND ORIGINALITY
The indicator uses a focused intraday calculation based on the first confirmed 5-minute closing price of the regular BANKNIFTY session.
Rather than using conventional pivot points, previous-day levels, moving averages, or opening-range highs and lows, it calculates a symmetrical percentage expansion around the first 5-minute close.
Its primary purpose is to automate the daily calculation:
First 5-Minute Close + 0.09%
First 5-Minute Close − 0.09%
VWAP is included as a separate dynamic reference to help assess whether price movement beyond the calculated bands is supported by the session’s volume-weighted positioning.
WHAT THE INDICATOR DOES NOT DO
The indicator does not:
• Automatically generate buy or sell signals
• Guarantee continuation after a breakout
• Guarantee reversal from a band
• Calculate stop-loss or take-profit prices
• Place or manage orders
• Measure upcoming volatility
• Account for economic news
• Evaluate option premiums
• Determine position size
• Guarantee profitable results
LIMITATIONS
The fixed 9:15 AM reference is designed for instruments that use the Indian regular-session opening time.
The indicator may not calculate the intended first-session candle correctly on instruments with different trading hours or exchange timezones.
The relevance of the default 0.09% setting can vary according to volatility and market conditions.
A temporary breakout may fail and return inside the bands.
VWAP can be less reliable when volume data is unavailable, incomplete, or not representative of the underlying market.
BANKNIFTY spot, futures, and option charts can have different prices, volume characteristics, and reactions.
The script should preferably be used on intraday chart timeframes.
DISCLAIMER
This indicator is provided for educational, informational, and technical-analysis purposes only.
It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument.
Price trading above the upper band does not guarantee further upward movement. Price trading below the lower band does not guarantee further downward movement.
Breakouts can fail, price can reverse suddenly, and losses can occur.
Users are responsible for independently testing the method, confirming market conditions, managing risk, and making their own trading decisions. Indicator

State Machine Entry DebuggerState Machine Entry Debugger - CoffeeKiller
State Machine Entry Debugger - CoffeeKiller is a development and diagnostic indicator designed to make a strategy's long-entry process visible on the chart.
Many strategies do not enter immediately when one condition becomes true. Instead, they move through a sequence of internal states. That sequence may include detecting a setup area, validating filters, waiting for confirmation, checking execution permission, and finally producing an entry signal.
These internal stages are normally invisible. A developer may see only the final strategy order and assume the entry was delayed without knowing which part of the logic caused the delay.
This indicator turns that hidden process into a visible chart timeline.
Important
This is not a standalone trading system.
The included EMA, ATR, pullback, and breakout conditions are placeholders used only to demonstrate how the debugger operates. They are not intended as production trading signals.
The current example is designed for long-entry debugging only. It does not contain a separate short-side state machine.
Entry Sequence
The debugger tracks the following sequence:
Touch -> ARM -> Trigger -> Entry Signal -> Reset
Touch
Price reaches or interacts with the defined setup area.
ARM
The setup passes its required filters and becomes eligible to wait for a trigger.
Trigger
The strategy's confirmation condition becomes true.
Entry Signal
All setup, filter, trigger, and final permission requirements have passed.
Reset
The example state machine returns to its idle state and waits for another setup.
Why This Tool Exists
A strategy may appear to enter late for several different reasons:
A setup filter remained false.
The trigger occurred several bars after the initial touch.
The setup expired before confirmation.
Entry permission blocked execution.
The state machine required each stage to begin on a separate bar.
The strategy waited for the candle to close.
The debugger and strategy used different realtime calculation behavior.
The strategy created an order on one bar but filled it on the next.
Reset or cancellation logic removed the setup.
Without a debugger, these situations may all appear to be the same problem: a late entry.
This script separates those possibilities.
Confirmed-Bar State Transitions
The state machine advances only when the candle is confirmed:
barstate.isconfirmed
This means a state transition is committed only after the candle closes.
This behavior is intended to match strategies that evaluate their entry logic at bar close.
Without confirmed-bar gating, a condition may temporarily become true while the realtime candle is forming. Touch, ARM, Trigger, or Entry labels could then appear, disappear, or move before the candle closes.
That can make an indicator appear to react earlier than the strategy it is supposed to diagnose.
By waiting for candle confirmation, the debugger provides a more consistent comparison with bar-close strategy logic.
A strategy that intentionally calculates intrabar requires a debugger configured to reproduce its execution behavior.
Relevant strategy settings and behaviors may include:
calc_on_every_tick
calc_on_order_fills
process_orders_on_close
Wick-based versus close-based confirmation
Higher-timeframe data behavior
Session filters
Time filters
The debugger and the strategy must use equivalent assumptions before their results can be compared accurately.
Entry Signal Versus Strategy Fill
The green Entry Signal marker identifies the bar where the state machine determines that all entry requirements have passed.
It does not necessarily represent the strategy broker emulator's actual fill bar or fill price.
Under the normal strategy execution model, an order created after a bar closes is generally filled at the next available tick. For a bar-close strategy, that commonly means the open of the next bar.
The chart may therefore show:
Debugger Entry Signal on the current bar
Strategy fill on the next bar
That one-bar difference is not automatically a bug.
A strategy using the following setting may instead process an order at the close of the signal bar:
process_orders_on_close=true
When comparing the debugger with a strategy, determine whether you are comparing:
The signal bar
The order-creation bar
The broker-emulator fill bar
The recorded fill price
These events are related, but they are not always identical.
One Transition Per Bar
The example state machine intentionally allows only one transition per confirmed bar.
A completed sequence may therefore appear as:
Bar 1: Touch
Bar 2: ARM
Bar 3: Trigger
Bar 4: Entry Signal
This occurs because the transition logic uses an if / else if structure.
Even when several conditions are already true, the state machine cannot move through multiple stages during the same bar. It must begin the bar in the required prior state before it can advance.
This behavior is useful for exposing structural delays.
For example, the market may satisfy the setup filters and breakout condition on the same candle, but the state machine may still require separate bars for Touch, ARM, Trigger, and Entry Signal.
In that situation, the apparent delay is caused by the state-machine architecture rather than by the market conditions.
This design is intentional for debugging purposes.
A strategy that permits multiple transitions on the same bar requires a different transition structure.
What the Debugger Displays
The script can display event labels for:
Touch
ARM
Trigger
Entry Signal
Touch expiration
ARM expiration
State reset
It can also display blocked-condition labels for:
Trend filter
Quality filter
Extension filter
Trigger condition
Entry permission
A blocked label identifies the first condition preventing the current state from advancing on a confirmed bar.
A blocked condition does not automatically mean the strategy is malfunctioning.
For example, while an armed setup is waiting for confirmation, the trigger condition should normally remain false. A Waiting Trigger label may simply indicate that the state machine is operating as designed.
Timeline Measurements
The debugger measures the number of confirmed bars between the major state transitions:
Touch to ARM
ARM to Trigger
Trigger to Entry Signal
Touch to Entry Signal
These measurements help distinguish between:
Filter delay
Trigger delay
Permission delay
State-sequencing delay
Timeout behavior
The debugger also tracks:
Bars since Touch
Bars since ARM
Bars since Trigger
State Background
Optional chart-background colors show the current internal state:
Blue: Touched
Orange: Armed
Purple: Triggered
Green: Entry Signal reached
No background: Idle
The green state represents the debugger's logical Entry Signal state. It should not automatically be interpreted as the strategy's broker-emulator fill.
Debug Table
The on-chart table shows the latest state and condition information, including:
Current state
Last event
Last blocking condition
Touch condition
Trend filter
Quality filter
Extension filter
Trigger condition
Entry permission
Bars since Touch
Bars since ARM
Bars since Trigger
ATR extension distance
Confirmed-bar status
Realtime-bar status
Current bar index
Conditions are displayed as PASS or FAIL.
A FAIL value means only that the condition is currently false. Whether that is expected depends on the current state.
The table displays condition values for the latest chart bar. On a forming realtime candle, those values may continue to change, but the state machine will not advance until the candle closes.
Data Window Values
The indicator also sends its internal values to the PulseWire Data Window.
This allows developers to inspect individual historical bars and compare the debugger with the original strategy.
Available values include:
State number
Touch condition
Trend filter
Quality filter
Extension filter
Trigger condition
Entry permission
ATR extension distance
Bars since Touch
Bars since ARM
Bars since Trigger
Same-bar transition checks
Confirmed-bar status
Realtime-bar status
Boolean values appear as:
1 = true
0 = false
Placeholder Logic
The included conditions exist only so the indicator can compile and demonstrate its operation.
The main placeholder variables are:
touchCondition
trendFilter
qualityFilter
extensionFilter
triggerCondition
entryPermission
Replace these variables with the exact conditions from the strategy being diagnosed.
For an accurate comparison, developers should also reproduce the strategy's:
Price sources
Wick or close confirmation rules
Session restrictions
Time restrictions
Higher-timeframe requests
Position-state restrictions
Pyramiding behavior
Cooldown rules
Cancellation logic
Rearm logic
Order-processing settings
Suggested Implementation Process
Start with a duplicate of the strategy you want to diagnose.
Assign the condition that begins the setup to:
touchCondition
Assign the setup-validation requirements to:
trendFilter
qualityFilter
extensionFilter
Assign the actual confirmation event to:
triggerCondition
Assign final execution restrictions to:
entryPermission
Then compare the debugger's Touch, ARM, Trigger, and Entry Signal markers with the strategy's signal condition, order creation, order marker, and broker-emulator fill.
Do not assume that the debugger's Entry Signal and the strategy's fill marker should always appear on the same bar.
Recommended Debugging Method
First reproduce the strategy's existing behavior exactly.
Do not begin by removing filters or forcing earlier entries.
Once the debugger and strategy agree, change one part of the logic at a time.
This helps determine whether an entry delay comes from:
The market setup
A filter
The trigger
Entry permission
A timeout
State sequencing
Bar-close confirmation
Intrabar calculation
Order-fill timing
Reset or cancellation behavior
The goal is not simply to make the strategy enter earlier.
The goal is to understand why it entered when it did.
Current Design Limitations
This version uses long-side placeholder logic.
It does not contain an independent short-side state machine.
Although the placeholder conditions can be replaced with bearish conditions, a complete two-direction debugger should normally use independent long and short state machines. This prevents one direction's setup from overwriting or blocking the other direction's state.
The example resets immediately after reaching the Entry Signal state.
A production strategy should replace that behavior with its actual:
Position-entry handling
Exit handling
Setup cancellation
Rearm rules
Cooldown period
Opposite-signal behavior
The debugger intentionally permits only one transition per confirmed bar.
Because this script is an indicator rather than a strategy, it does not simulate:
Strategy orders
Position sizing
Pyramiding
Commissions
Slippage
Broker-emulator fills
Labels may become crowded across long historical ranges. The recent-bars setting can be used to reduce chart clutter.
Final Purpose
State Machine Entry Debugger converts an invisible decision process into a visible chart timeline.
Instead of seeing only the final strategy entry, developers can inspect:
Where the setup began
When it became armed
Which condition delayed it
When the trigger occurred
When the logical entry signal became valid
Whether the setup expired or reset
Whether the apparent delay came from state logic or order-fill timing
This makes complex state-machine behavior easier to test, explain, and improve.
Disclaimer
This indicator is intended solely for educational, informational, diagnostic, and software-development purposes.
It is not a trading system and should not be interpreted as a recommendation to buy or sell any financial instrument.
The included conditions are placeholders and are not presented as a profitable or complete trading methodology.
Trading involves substantial risk of loss. Historical behavior, simulated performance, and strategy results do not guarantee future performance.
Always perform your own analysis, thoroughly test all strategy logic, account for realistic execution conditions, and consult a qualified financial professional when appropriate before risking real capital.
Indicator

Indicator

Machine Learning Neural Network EngineMachine Learning Neural Network Engine turns complex Daily market behavior into three clear states: LONG, WATCH and CASH.
Instead of relying on one fixed trend signal, the indicator combines an adaptive neural network, continuous model validation and an independent crisis detector. The result is a simple visual interface backed by a fully causal machine-learning process.
HOW IT WORKS
At its core is a compact 6-5-1 neural network trained directly on the chart.
It analyzes six normalized features:
Short- and medium-term trend structure
RSI momentum
Deviation from linear regression
Directional price efficiency
Relative volatility
Candle pressure adjusted by relative volume
The network learns sequentially from completed market outcomes. On each confirmed Daily bar, it can only train on information from an earlier bar whose result has become known. Current predictions never use future data.
Training uses nonlinear neurons, RMS-scaled gradient updates, error clipping and regularization. This is an adaptive online model, not a set of fixed coefficients labelled as machine learning.
SELF-AUDITING MACHINE LEARNING
The neural network is continuously compared with an independent structural trend model.
When the network’s matured predictions provide useful additional information, its influence increases. When its recent error becomes worse than the structural baseline, its influence is automatically reduced.
This live validation mechanism prevents the indicator from trusting its machine-learning component unconditionally.
CRISIS DETECTION
A separate stress engine monitors:
Rapid 10-day declines
Drawdown from the 63-day high
Abnormal ATR expansion
Long-term price structure
This layer can trigger a defensive state independently of the neural model, helping the indicator respond to sudden market deterioration.
HOW TO READ IT
LONG — Green
The model, trend structure and confirmation rules support a constructive market environment.
WATCH — Amber
The market remains structurally LONG, but risk or exit evidence is increasing.
CASH — Red
The environment is defensive because of persistent weakness or confirmed crisis stress. The indicator never takes short positions.
The colored neural axis and surrounding halo display the active state without covering the chart with labels. Transition pulses identify confirmed changes, while the dashboard shows bull probability, neural risk and the current machine-learning audit.
WHAT MAKES IT DIFFERENT
The script integrates four distinct functions:
1. Online neural-network learning
2. Live error-based model validation
3. Independent downside-stress detection
4. A confirmed state machine designed to limit excessive switching
These components are not combined as a simple indicator vote. Each has a separate role in learning, validation, protection or state stabilization.
SETTINGS
ML response controls adaptation speed and signal stability:
Fast reacts sooner.
Balanced is the recommended starting point.
Smooth prioritizes stability.
ML selectivity controls how much evidence is required before LONG or CASH is confirmed.
The indicator is designed exclusively for standard Daily charts.
BUILT-IN COMPARISON
The dashboard includes a lagged long/cash comparison with buy-and-hold. It applies the selected transition cost and openly displays periods when the model underperforms.
This comparison is a diagnostic tool, not a complete strategy backtest. It does not include every possible spread, slippage, tax, financing or execution constraint.
IMPORTANT LIMITATIONS
The bull probability is an internal normalized score, not a statistically calibrated probability of profit. The model can react late, generate false transitions in sideways markets and cannot eliminate gap risk.
The developing Daily bar may change before closing. Confirmed historical states use no future data, no lookahead and no higher-timeframe security calls.
This indicator provides market context, not financial advice or guaranteed performance. Online learning does not imply future outperformance.
Indicator

Mirror Suite SignalsThe lightweight, alert-focused companion to Mirror Suite — Strategy. Same engine, same presets, no backtester: it keeps your chart clean and fires alerts.
The idea
Price is normalized into a z-score and compared against a "mirror" — a time-reversed, inverted copy of the symbol's own past, shifted back a configurable number of bars. Signals come from how now interacts with that reflection: line crosses (Wave Flip), threshold breaks (Momentum), both together, or a MACD-style histogram built from the two lines (Histogram Cross, the default).
What it draws
▲/▼ signal markers on the price chart (on by default) and in the oscillator pane at every raw cross.
A price-scaled Mirror line on the main chart — the classic "overlay" view. Price above the line reads bullish; a wave-flip signal is literally price crossing this line.
The oscillator pane: Current vs Mirror lines with divergence fill, or histogram + signal line, depending on mode.
Optional Info Panel (bottom-right of the price chart) showing the effective preset, mode, sessions held, and risk settings.
Quick start
Add to a 15-minute chart, pick a Preset in Settings, done. Presets override every Advanced group ("Custom" unlocks them). GME is the tuned baseline; presets were tuned on regular-hours 2023–2026 data across GME plus a 6-ticker basket.
Signals logic worth knowing
The indicator simulates a single long position internally so its markers match what the Strategy version would actually do — including the Hold Overnight discipline: exit signals are suppressed until the position has been held a minimum number of trading sessions (default 2). That's a strategy choice, not a broker rule. To see historical performance, stops, and targets, use the Strategy version — this one is for watching and alerting.
Alerts & webhooks
Plain alerts: create an alert on "Long Entry" or "Exit Long".
Webhook JSON: paste your secret into the Webhook Secret input, then create an alert with "Any alert() function call". Messages look like:
{"secret":"YOUR_SECRET","action":"buy","ticker":"GME"}
Transparency notes
Signals are computed on confirmed bars from chart-timeframe data; no lookahead is used (request.security runs with lookahead_off). The optional Paste Drift engine (off by default and off in every preset) samples lower-timeframe data, which can repaint intrabar — treat it as experimental.
Open source
Published open-source under the MIT License (full terms in the code header). © @TheGameStopsNow — attribution appreciated, never required.
Not financial advice. Signals are generated from in-sample-tuned settings; markets change. Bring your own judgment and risk management. Indicator

Position Arrow (P/L %)Visualize your open positions' gain/loss at a glance.
This indicator draws a vertical arrow from your purchase price to the current price, to the right of the last candle, with a label showing your profit/loss as a percentage — and in USD if you enter a quantity.
HOW IT WORKS
Enter up to 8 positions in the settings (symbol, purchase price, and optional quantity). The indicator only displays on a chart whose symbol matches one of your slots, so you can add it once to your layout and it follows you across your portfolio's charts.
FEATURES
- Arrow from entry price to current price, pointing up (gain) or down (loss)
- Label shows P/L % and total gain/loss in USD when quantity is set
- Auto-contrast label text (black/white chosen by arrow color brightness)
- Customizable arrow color, line width, label size, and distance from the last candle
HOW TO USE
1. Add the indicator to your chart
2. Open Settings and fill in a symbol (e.g. AAPL), your purchase price, and optionally quantity
3. The arrow and P/L label appear to the right of the latest candle whenever that symbol's chart is open
Written in Pine Script v6. Open source — feel free to reuse and adapt. Indicator

Supertrend + Apex HUD Master Pro - Farthaze### Overview
**Supertrend + Apex HUD Master Pro** is an all-in-one trading dashboard designed to combine clean price action trailing stops with a high-density, real-time Heads-Up Display (HUD).
Instead of cluttering your chart with dozens of individual indicators, this script consolidates market trend, momentum, intraday volume dynamics, key daily pivot levels, and target projections into a single, compact interface.
---
### Key Features
#### 1. Adaptive Supertrend Engine
* **Trailing Stop Overlay:** Uses Average True Range (ATR) to trail stops dynamically based on volatility.
* **Visual Trend Fill:** Highlights the active trend direction with transparent, non-intrusive color shading between price and the Supertrend line.
* **Signal Labels:** Displays clean `BUY` and `SELL` tags on valid trend flip transitions.
#### 2. Apex HUD Master Table
A real-time data table pinned to your chart providing quick market analysis:
* **Trend Bias & Momentum:** Instant visual status of trend direction alongside 14-period RSI momentum.
* **Volume Analysis (RVOL):** Tracks current bar volume relative to a 20-period SMA to spot unusual volume spikes instantly.
* **Shares Traded & Split Volume:** Calculates total session volume alongside intra-bar estimated **Buy Volume (Green)** and **Sell Volume (Red)** to gauge institutional buying vs. selling pressure.
* **Key Levels (PDH/PDL & TDH/TDL):** Consolidated tracking of Previous Day High/Low and Today's High/Low for quick support/resistance reference.
* **Dynamic Take-Profit Targets (TP1 / TP2 / TP3):** Calculates volatility-adjusted target levels using ATR multipliers to help plan trade exits.
* **Risk-to-Reward Ratio:** Displays a real-time Risk:Reward ratio based on the distance between current price, the Supertrend stop-loss, and target levels.
#### 3. Volatility Spike Monitor
* A standalone auxiliary table tracking recent high-volatility expansion bars (bars exceeding your defined ATR spike threshold).
* Keeps track of the last bullish and bearish volatility spikes along with their percentage move size and breakout prices.
---
### How to Use
1. **Identify Trend Bias:** Check the Supertrend overlay and the HUD's **Trend Bias** indicator to align with the primary direction.
2. **Confirm Volume & Momentum:** Ensure RSI momentum aligns with your bias and check if RVOL indicates elevated volume participation.
3. **Gauge Institutional Pressure:** Compare the green **Buy Vol** and red **Sell Vol** numbers in the HUD to confirm who is controlling the intraday order flow.
4. **Manage Trade Exits:** Use the auto-calculated **TP1, TP2, and TP3** target levels alongside the Risk:Reward readout to plan your entries and exits.
---
### Indicator Settings & Customization
* **Supertrend Settings:** Adjust ATR Period and Multiplier to fit scalping, swing trading, or position trading timeframes.
* **Apex HUD Options:** Customize table position (Top Right, Top Left, Bottom Right, Bottom Left) and text scaling size.
* **Session Filter:** Filter shares traded calculation between *All Sessions*, *Regular Hours Only*, *Premarket Only*, or *Postmarket Only*.
* **Volatility Spike Table:** Set custom ATR thresholds to trigger volume/range expansion tracking.
---
*Disclaimer: This indicator is designed for educational and analytical purposes only and does not constitute financial advice. Always practice proper risk management.*
I created this to surpass time to see today highest and lows and volume etc. Hope you like it. Happy trading Indicator

Chart Patterns [FEELS]Classical chart patterns, drawn only after price confirms them, each one carrying a running count of how often that pattern has reached its measured target on this chart.
No pattern appears until its neckline breaks. Once drawn, it never moves.
FEATURES
- Four classical reversal patterns: Double Top, Double Bottom, Head & Shoulders, Inverse Head & Shoulders
- Confirmed-only: a pattern is drawn after its neckline breaks, not while it is still forming
- Non-repaint: once drawn, the geometry never changes
- Measured target and neckline plotted for every pattern
- Live per-pattern hit-rate table: how often each type reached its target on the current chart
- Target-reached and invalidated outcomes marked on the chart
- ATR-based tolerances that adapt to each symbol
- Close or wick neckline confirmation, optional weaker-second-peak filter
- Four alerts, fully adjustable colors, labels and text
WHAT IT DETECTS
Four of the most widely taught reversal patterns: Double Top, Double Bottom, Head & Shoulders, and Inverse Head & Shoulders. Each is built from confirmed swing pivots, so the shape on the chart is the same shape a trader would draw by hand.
HOW IT WORKS
The engine keeps a zigzag of confirmed swing highs and lows and checks the most recent pivots against each pattern template: two equal tops over a shared low for a Double Top, a higher head between two level shoulders for Head & Shoulders, and so on. A candidate is not shown yet. It is only drawn once price breaks through the neckline, which is the point at which the pattern is considered complete. From that bar the geometry is locked.
- Neckline: the line the pattern breaks. Horizontal for double tops and bottoms, sloped through the two inner pivots between the shoulders and the head for Head & Shoulders and its inverse.
- Measured target: the pattern height projected from the break, drawn as a dotted line. This is the standard textbook objective, not a forecast.
- Outcome tracking: after a pattern confirms, the script follows it for a set number of bars to see whether price reached the measured target, closed back past the pattern, or did neither in time. All three outcomes feed the table.
- Hit-rate table: for every pattern type it shows how many confirmed patterns reached their target, out of every pattern that has finished tracking, as a running count on the current symbol and timeframe. Head & Shoulders reaching target less often than a Double Bottom is information, not a defect.
HOW TO READ IT
1. Wait for the break. A shape only appears after the neckline gives way, so what you see is a completed pattern, not a guess about one still forming.
2. Use the table as context. A pattern type that has historically reached its target often on this chart carries more weight than one that rarely has. The sample size is shown next to the percentage so you can judge how much to trust it.
3. The measured target is the reference objective. A pattern is only marked invalidated when price closes back past its own extreme, the high of a double top or the right shoulder of a head and shoulders, so the invalidation mark sits at that level rather than at the neckline. How you act on either is your decision.
ORIGINALITY
This script waits for the neckline break before drawing anything, locks the geometry once a pattern is drawn, and keeps a live per-pattern tally of how each one resolved on the chart you are looking at. The idea is to combine the shape a trader would draw by hand with a running record of what happened after that shape completed, on this exact symbol and timeframe. The zigzag, the pattern templates, the neckline construction and the outcome tracking are written from scratch for this script.
HONESTY
- A swing pivot confirms only after the Swing size number of bars, so a pattern appears on the chart once its break is confirmed, and its earlier points are drawn back to where they occurred. On a bar replay this looks like a shape appearing into the past. That is the cost of the no-repaint rule, not a glitch. After a pattern is drawn its position never changes, and the break is evaluated on bar close.
- The hit-rate table is a historical count on the current symbol and timeframe. Reaching target means price hit the measured objective within the tracking window; a pattern that neither reached target nor closed back past its extreme within that window counts against the rate, not as a skipped sample. Only patterns that reached target or invalidated print a mark on the chart, so a timed-out pattern is counted in the table but not tagged, and the visible marks are fewer than the table total. It describes what happened after past patterns, it does not predict future ones, and a small sample can move a lot. It is not a performance claim.
- Tolerances are ATR-based, so the definition of equal tops or a clean break adapts to each symbol's volatility instead of a fixed percentage.
- The tool is most useful on liquid symbols and on intraday-to-daily timeframes, where enough clean swings form. On very long histories only the most recent patterns stay drawn to keep the chart readable.
ALERTS
Bearish pattern confirmed · Bullish pattern confirmed · Target reached · Pattern invalidated.
SETTINGS
Every input has a tooltip. The main ones: "Swing size" sets how many bars on each side define a swing, "Neckline break" chooses close or wick confirmation, "Second peak / bottom" can require the classic weaker-second-peak form, "Patterns kept" caps how many stay on the chart, and the table, colors, outcome text and both text sizes are all adjustable.
This is a descriptive tool for reading classical chart patterns. It is not financial advice and does not predict price. Indicator

crypto signals -Breakout Targets# 🚀 Crypto Signals (Breakout Targets)
**Crypto Signals (Breakout Targets)** is an enhanced breakout trading indicator designed to identify high-probability breakout opportunities while providing automatic trade management with multiple profit targets and a dynamic stop loss.
This version is based on the original open-source **Breakout Targets** indicator by **AlgoAlpha**, with numerous enhancements focused on customization, usability, performance tracking, and professional alert automation.
---
## ✨ Features
✅ Automatic detection of bullish and bearish breakout opportunities.
✅ Up to **3 configurable Take Profit levels (TP1, TP2, TP3).**
✅ Dynamic Stop Loss calculated using **ATR** or **Percentage (%).**
✅ **Auto Symbol Profiles** for storing different settings across multiple trading pairs.
✅ Advanced Statistics Dashboard displaying:
* Win Rate
* Total Winning Trades
* Total Losing Trades
* Net Performance
* TP1 / TP2 / TP3 Statistics
✅ Fully customizable colors and display settings.
✅ Clean and intuitive chart visualization suitable for all timeframes.
---
## 🔔 Smart Alert System
The indicator includes a professional built-in alert system fully compatible with **PulseWire Alerts**, making it easy to integrate with Telegram bots, Discord, webhooks, or automated trading systems.
Available alert events:
* 🟢 Buy Signal
* 🔴 Sell Signal
* 🎯 TP1 Hit
* 🚀 TP2 Hit
* 🏆 TP3 Hit
* 🛑 Stop Loss Hit
Each alert is delivered in a clean, mobile-friendly format and includes essential trade information such as the trading pair, timeframe, entry price, target levels, and stop loss, allowing traders to monitor positions efficiently in real time.
---
## 📈 How It Works
The indicator continuously analyzes price action to identify potential breakout opportunities.
Once a breakout is confirmed, it automatically plots:
* Entry Price
* Stop Loss
* Take Profit 1 (TP1)
* Take Profit 2 (TP2)
* Take Profit 3 (TP3)
The trade is then monitored automatically while the statistics dashboard keeps track of overall performance and target achievements.
---
## 🎯 Best For
* Cryptocurrency
* Forex
* Stocks
* Indices
The indicator works on all timeframes and delivers the best results when combined with proper market structure analysis, confirmation tools, and sound risk management.
---
## 🙏 Credits
This project is based on the open-source **Breakout Targets** indicator created by **AlgoAlpha**.
The original concept has been extended with additional features, profile management, enhanced dashboards, professional alerts, customization options, and various usability improvements while respecting the original open-source license and giving full credit to the original author.
---
# ⚠️ Disclaimer
This indicator is provided for **educational and informational purposes only**.
It does **not** constitute financial or investment advice and should not be interpreted as a recommendation to buy or sell any financial instrument.
Trading financial markets involves substantial risk and may result in the partial or total loss of your capital. Always perform your own analysis, use proper risk management, and never rely solely on any indicator when making trading decisions.
Past performance does **not** guarantee future results.
Indicator

Ribbon Concordance [RC Tools]RC Tools — Ribbon Concordance
─────────────────────────────────────────────────────────────
█ OVERVIEW
Most ribbon-of-moving-averages tools either average the ribbon or rely on simple crossovers. This one asks a different question: is the ribbon consistently ORDERED? A cleanly stacked ribbon signals real trend conviction; a tangled, crossing one signals chop — often before any single moving average has crossed another.
█ WHAT IT DOES
Plots a live moving-average ribbon directly on the price chart (choice of 7 MA types, up to 10 MAs), plus a rank-concordance score (-100 to +100) in its own pane. Classifies the ribbon into four bands — Strong Bullish, Weak Bullish, Weak Bearish, Strong Bearish — colours the chart background accordingly, and shows a table with the current band, how long price has been in it, and historical base rates (average forward return and win rate) for each band.
█ THE THEORY BEHIND IT
Ribbon tools usually throw away information about HOW consistently the ribbon is stacked, collapsing it to an average or a single crossover event. This tool instead measures rank concordance — a public, long-established statistical concept (related to Kendall's tau) that quantifies how well two orderings agree with each other. Applied to a moving-average ribbon: compare every pair of MAs, shorter-period against longer-period, and score whether their relative ordering is consistent with a clean trend. A ribbon where every shorter MA sits above every longer one (or below, for a downtrend) scores near the extreme; a tangled, crossing ribbon averages out near zero. This is a different statistical question than "is price above its moving average" or "how efficient was the recent price path" (see the Regime Classifier for that approach) — it is specifically about internal agreement across the whole ribbon at once.
█ HOW IT IS CALCULATED
1. Build a ribbon of N moving averages (configurable type and count), with periods increasing linearly from a base period by a fixed spacing.
2. For every pair of MAs (i, j) where i has a shorter period than j: score +1 if MA > MA (bullish-consistent ordering), -1 if reversed, 0 if tied.
3. Sum all pair scores and normalise by the number of pairs compared, scaled to -100..+100.
4. Optionally EMA-smooth the raw score, which is otherwise a somewhat steppy pairwise count, for a cleaner read.
Classification occurs ONLY on confirmed bar close — the band never flips mid-bar and reverses. The MA ribbon itself plots live, exactly like any moving average on any chart; that is normal behaviour, not repainting. Only the concordance score and its band classification are held to confirmed bars.
█ SETTINGS & CONFIGURATION
• Source, MA Type (SMA / EMA / WMA / RMA / HMA / DEMA / TEMA)
• Base Period and Period Spacing — set the shortest MA and the gap between each successive one
• Ribbon Size (3-10 MAs) — more MAs smooth the read but add lag from the longest one; fewer react faster but are noisier
• Score Smoothing Length — EMA smoothing on the raw concordance score (set to 1 for none)
• Strong Threshold — the score above which (or below its negative) a band counts as "Strong" rather than "Weak"
• Forward Return Window — the horizon used for the base-rate table
• Show MA Ribbon on Chart — toggle the ribbon overlay off if you only want the concordance pane
• Ribbon gradient colours (short end / long end) and band colours are fully configurable
█ HOW TO USE IT
Use it as a trend-conviction filter alongside your existing process. Strong Bullish/Bearish bands indicate a cleanly stacked ribbon — a higher-conviction environment for trend-following approaches. Weak bands, or frequent flips between Weak Bullish and Weak Bearish, indicate the ribbon is loosely ordered — more caution warranted for trend-following, and potentially a more favourable environment for mean-reversion approaches instead. Check the base-rate table's sample count before assuming any one band is systematically favourable.
Works on any asset and timeframe; ribbon size and spacing should be tuned to the timeframe you trade (a wide, long-spaced ribbon on a low timeframe will lag heavily).
█ LIMITATIONS
• This is a ribbon of moving averages — inherently lagging by construction. It confirms alignment after price has already moved, and this cannot be removed without curve-fitting.
• Near-zero or Weak readings are common in choppy, range-bound conditions and do NOT predict a breakout direction — they only describe the ribbon's current state of (dis)agreement.
• Ribbon size is a real trade-off: more MAs smooth the read but add lag from the longest included MA; fewer MAs react faster but are noisier.
• The concordance score and band update on confirmed bar close only. The ribbon MA lines themselves plot live, like any moving average — that is normal behaviour, not repainting.
• Historical base-rate stats need a meaningful sample count (check N) before being trusted, especially for less common bands.
• Four bands are a deliberate simplification of a continuous reality. Markets do not actually occupy discrete states.
█ DISCLAIMER
For educational and informational purposes only. Nothing here is financial advice. Past behaviour of any band does not indicate future results. Trade at your own risk.
Indicator

Day Trade Setup - CRT Session Range ModelDay Trade Setup - CRT Session Range Model
Day Trade Setup - CRT Session Range Model is a session-based market framework designed to identify important intraday reference ranges and combine them with liquidity sweeps, M15 imbalance gaps, market structure levels, and supply or demand zones.
The script is designed to help traders organize intraday price action around selected H1 session ranges. Instead of displaying isolated signals, it creates a structured map of the current setup, including the range high, range low, 50% midpoint, nearby liquidity events, and relevant M15 reference areas.
Core Concept
The indicator analyses predefined H1 trading periods and selects the most significant candle within each session window using a weighted candle score.
The score considers:
Candle body size
Upper and lower wick size
User-defined body weighting
User-defined wick weighting
The selected candle becomes the active session range. Its high, low, and 50% midpoint are then projected across the chart as reference levels.
The most recent valid session setup automatically becomes the active model.
Session Range Models
The indicator supports three session groups:
Dawn Range
The Dawn Range evaluates the H1 candles formed between 1:00 AM and 5:00 AM.
The script compares the five candles and selects the candle with the highest weighted body-and-wick score as the active range.
Morning Range
The Morning Range compares the 8:00 AM and 9:00 AM H1 candles.
The candle with the stronger weighted score becomes the active range.
Evening Range
The Evening Range compares the 8:00 PM and 9:00 PM H1 candles.
The stronger candle is selected as the active range.
Users can display one session model individually or enable all available sessions.
Active Range Display
When a new setup is selected, the indicator displays:
Session Range High
Session Range Low
50% midpoint
Session and hour label
Continuously extending reference lines
The 50% level helps divide the selected range into upper and lower halves, providing a visual reference for premium and discount areas within the setup.
The script replaces the previous active range when a newer valid session setup is confirmed.
Liquidity Sweep Detection
The indicator includes an optional liquidity sweep module that monitors price interaction with the active range high and low.
A potential bearish liquidity sweep may be identified when price:
Trades above the active range high
Returns and closes below the range high
Meets the selected volatility, body, and upper-wick requirements
A potential bullish liquidity sweep may be identified when price:
Trades below the active range low
Returns and closes above the range low
Meets the selected volatility, body, and lower-wick requirements
The liquidity sweep filter also includes a cooldown period to reduce repeated labels appearing within a short number of bars.
These markers represent potential liquidity-rejection events and are not automatic entry signals.
M15 Imbalance Gap
The script can locate a recent bullish or bearish M15 imbalance gap that formed before the active session setup.
The imbalance module:
Searches the latest M15 gaps
Considers only gaps formed before the active setup
Supports bullish, bearish, or both gap types
Filters gaps using ATR-based minimum size
Can restrict results to gaps near the session range
Locks the selected gap when a new setup appears
Displays the gap boundaries and midpoint
Only a qualifying gap whose midpoint is outside the active session range is displayed.
This helps traders identify nearby price imbalances that may act as reaction areas or potential liquidity objectives.
M15 Structure Levels
The indicator identifies previously confirmed M15 swing highs and swing lows using pivot-based market structure.
For each new session setup, the script searches for:
A confirmed structure high above the session range
A confirmed structure low below the session range
Only structure points that formed before the active setup are considered.
The selected levels are extended across the chart and labelled as:
STRUCT-HIGH
STRUCT-LOW
These levels may be used as external liquidity references, breakout levels, or potential price objectives.
M15 Supply and Demand Zones
The indicator also includes a simplified M15 supply and demand zone module.
A potential demand zone is identified from a bearish candle followed by a bullish displacement above that candle’s high.
A potential supply zone is identified from a bullish candle followed by a bearish displacement below that candle’s low.
The script applies body-strength and optional ATR range filters before accepting a zone.
For a bullish session setup, the script searches for a qualifying demand zone positioned above the session range.
For a bearish session setup, the script searches for a qualifying supply zone positioned below the session range.
Only zones formed before the active setup are considered.
The selected zone is displayed with:
Zone boundaries
50% midpoint
M15 zone label
Automatic right-side extension
Multi-Timeframe Structure
The model combines information from multiple timeframes:
H1 for session-range selection
M15 for imbalance gaps
M15 for structure highs and lows
M15 for supply and demand zones
Current chart timeframe for liquidity-sweep confirmation and display
The M15 modules are intended for charts between 1 minute and 15 minutes. Their drawings are hidden automatically on timeframes above 15 minutes.
Alerts
The indicator includes alerts for:
A newly selected session setup
A qualifying M15 structure high
A qualifying M15 structure low
A selected demand zone
A selected supply zone
The new setup alert identifies the symbol, selected model, and setup hour.
Suggested Workflow
A possible workflow is:
Identify the active H1 session range.
Observe whether price is trading above or below the 50% midpoint.
Wait for price to interact with the session high or low.
Look for a qualifying liquidity sweep.
Review nearby M15 imbalance gaps.
Check external M15 structure levels.
Use the selected supply or demand zone as additional context.
Apply independent entry confirmation and risk management.
The script is intended to organize market context. It does not automatically calculate an entry price, Stop Loss, Take Profit, position size, or trade outcome.
Customization
Users can adjust:
Light or dark visual theme
Active session model
Candle body and wick weighting
Line width and label size
Range projection length
Liquidity-sweep quality filters
Sweep cooldown period
Gap direction and ATR filter
Gap proximity to the setup
Structure pivot length
Supply and demand zone strength
Zone distance from the setup
These settings allow the model to be adapted to different symbols, volatility conditions, and trading styles.
Limitations
The session model uses fixed H1 time windows based on the symbol’s exchange or chart time context. Users should verify that the displayed hours match their intended trading session.
Pivot-based structure levels require candles on both sides of the pivot before confirmation. As a result, structure levels appear after the turning point has already formed.
Liquidity sweeps, imbalance gaps, and supply or demand zones do not guarantee a price reversal or continuation.
The script displays selected technical reference areas only. It does not account for spread, commission, slippage, economic news, liquidity conditions, or broker execution.
Because the script uses multiple timeframe calculations, some elements may update only after the relevant H1 or M15 candle has completed.
Disclaimer
Day Trade Setup - CRT Session Range Model is provided for technical analysis and educational purposes only.
It does not constitute financial advice, investment advice, trade recommendations, or guaranteed trading results. The displayed ranges, sweeps, gaps, structure levels, and zones are technical reference areas and should not be used as standalone entry signals.
Users are responsible for independently evaluating market conditions and applying appropriate risk management before trading with real funds. Indicator

Day Trade Setup - FVG FinderDay Trade Setup - FVG Finder
Day Trade Setup - FVG Finder is a Fair Value Gap detection tool designed to identify bullish and bearish price imbalances directly on the chart.
The indicator scans both the current chart timeframe and a user-selected higher timeframe, then displays active FVG zones as colored boxes with optional price labels. Zones remain visible until they are mitigated or, for chart-timeframe zones, expire after the selected lookback period.
How It Works
A bullish Fair Value Gap is detected when the low of the current candle is above the high from two candles earlier, creating an untraded price area between them.
A bearish Fair Value Gap is detected when the high of the current candle is below the low from two candles earlier.
The script measures the size of each gap in points and displays only the zones that meet the minimum gap-distance setting selected by the user.
All chart-timeframe FVG calculations are confirmed after the candle closes.
Main Features
Detects bullish and bearish Fair Value Gaps
Displays FVG zones directly on the chart
Adjustable minimum FVG gap size
Customizable bullish and bearish zone colors
Adjustable zone transparency
Automatic extension of active zones
Automatic removal when a zone is mitigated
Optional expiration of older chart-timeframe zones
Higher-timeframe FVG detection
Adjustable higher-timeframe gap threshold
Optional price labels for the upper and lower edges of each zone
Light and dark chart-theme support
Alerts for new and mitigated FVG zones
Current Timeframe FVG Zones
The indicator scans the active chart timeframe for three-candle price imbalances.
When a valid bullish or bearish FVG is detected, the zone is drawn from the originating candle area and extended to the right.
Chart-timeframe zones remain active until:
Price closes beyond the opposite boundary of the zone, or
The zone exceeds the selected historical bar limit
For a bullish FVG, the zone is considered mitigated when price closes below its lower boundary.
For a bearish FVG, the zone is considered mitigated when price closes above its upper boundary.
Higher-Timeframe FVG Zones
Users can enable Multi-Timeframe FVG detection and select a separate higher timeframe.
Higher-timeframe zones are calculated using completed higher-timeframe candles to reduce changes caused by an unfinished candle.
HTF zones are displayed on the current chart and continue extending until price closes beyond their mitigation boundary.
This allows traders to monitor broader price imbalances without switching between multiple charts.
FVG Gap Filter
The FVG GAP (Point) setting controls the minimum size required for a chart-timeframe imbalance to be displayed.
The HTF FVG GAP (Point) setting applies the same type of filter to higher-timeframe zones.
Increasing these values reduces the number of smaller gaps shown on the chart, while lowering them allows the indicator to display more zones.
The correct point value may vary depending on the symbol, broker, and minimum tick size.
Price Tags
Optional price tags can be displayed at the upper and lower boundaries of every FVG zone.
Users can choose to:
Match the tag color with the bullish or bearish zone
Automatically adjust the tag color for light or dark charts
Select custom background and text colors
Change the tag-text size
These labels help users read the exact zone boundaries without manually checking the price scale.
Alerts
The indicator provides alert conditions for:
New Bullish FVG
New Bearish FVG
Bullish FVG Mitigated
Bearish FVG Mitigated
New Bullish Higher-Timeframe FVG
New Bearish Higher-Timeframe FVG
Bullish Higher-Timeframe FVG Mitigated
Bearish Higher-Timeframe FVG Mitigated
After adding the indicator to the chart, users can create PulseWire alerts for any of these conditions.
Suggested Use
FVG zones may be used as areas of interest for:
Pullbacks
Rebalancing of price imbalances
Support and resistance context
Trend-continuation setups
Liquidity and market-structure analysis
Multi-timeframe confluence
The indicator does not generate direct Buy or Sell entries. Traders should evaluate each zone together with market structure, trend direction, liquidity, volatility, trading session, and personal risk-management rules.
Limitations
Fair Value Gaps do not guarantee that price will return to a zone or react from it.
During volatile market conditions, multiple zones may form within a short period. Some zones may be mitigated immediately, while others may remain active for an extended time.
Mitigation is determined using candle closes beyond the selected zone boundary. Intrabar price movement alone does not remove a zone.
Higher-timeframe zones are based on completed higher-timeframe candles, so they appear only after the relevant candle has closed.
Historical zones may also be limited by PulseWire drawing-object limits and the selected lookback settings.
Disclaimer
Day Trade Setup - FVG Finder is provided for technical analysis and educational purposes only.
It does not provide financial advice, investment advice, trade recommendations, or guaranteed trading results. Fair Value Gap zones are reference areas only and should not be used as standalone entry signals.
Users are responsible for independently evaluating market conditions and applying appropriate risk management before trading with real funds. Indicator

Order Block Stop Survival StudyCredit
The order block detection and the retest condition used as the trigger of this study are adapted from "Power Order Blocks " by ChartPrime, published open source under the Mozilla Public License 2.0. Full credit to ChartPrime for that detection method. This script is published open source under the same licence.
What it adds to the original
The original draws order blocks and marks the moment price comes back to them. It never answers the question that actually decides whether you can trade them: when price taps an order block, does a stop of a given size survive long enough for the trade to work, and does that beat entering at a random moment on the same chart?
This script answers exactly that, and it puts the two numbers side by side.
How to read the table
Each row is a stop distance, expressed in ATR multiples or in absolute price.
On OB retest: out of every first touch of a fresh order block, how often the target was reached before the stop.
Random entry: the same measurement made at arbitrary moments on the same chart, both directions.
Edge: the difference in percentage points. Green when the setup beats chance, red when it does not.
The highlighted row is the stop distance you actually use, so you can place your own habit among the others.
The break-even line
A percentage means nothing without a reference. The line under the table gives the success rate that merely breaks even for your chosen target: 50 percent at 1R, 33.3 at 2R, 25 at 3R. Above it you are ahead, below it you are behind, whatever the raw number looks like.
First touch only
By default only the first return to a fresh block is counted, because that is the setup a trader takes. Turn the option off to include later touches of an already used zone. Comparing the two is informative in itself: on most instruments the edge is visibly thinner once worn out zones are included.
Long and short counts are shown
The footer reports how many setups were long and how many were short. If one side dominates heavily on a strongly trending sample, part of any measured edge is the trend rather than the order block. Showing the split lets you judge that instead of taking the result on faith.
How it works
At each sampled bar the script steps back so the entire outcome of the setup already sits in the past, then walks forward bar by bar and records which level was reached first. There is no forward-looking data and no repainting by construction.
When a single bar touches both the stop and the target, the script counts the stop. Inside a bar there is no way to know which came first, and overstating survival would be dishonest.
Settings
Max bars to resolve, target as an R multiple of the stop, and the sampling step of the random baseline.
Displacement multiplier, number of active blocks and minimum spacing between retests, all inherited from the original detection.
Five stop distances plus your own, ATR based or absolute.
Pip size: gold 0.1, forex majors 0.0001, JPY pairs 0.01, 0 to hide pips on crypto.
Colours, text size, border width and table position are configurable.
Limitations
Spread, slippage and commissions are ignored, so a real edge is thinner than the one displayed, and a small edge may not survive costs at all.
The statistics describe the history loaded on your chart. They do not predict anything.
This is a study. It produces no entry signal and no performance claim.
Below the minimum number of setups the table warns instead of showing percentages built on too little data. Indicator

Indicator

XAUUSD Scalper Pro by QUANTRADZGold Scalping Direction & Pullback Signals is a trend-following indicator designed to identify potential BUY and SELL opportunities on XAU/USD. It is intended primarily for 1-minute, 3-minute and 5-minute charts.
The indicator combines trend direction, momentum, volatility and candle confirmation into a configurable scoring system. Signals are designed to appear only after a candle has closed, helping traders avoid acting on incomplete candles.
HOW IT WORKS
The indicator analyzes:
• EMA 20 and EMA 50 for short-term trend direction• Optional EMA 200 for the broader market trend• RSI for momentum confirmation• ADX and DMI for trend strength and directional pressure• ATR for volatility filtering and risk-level calculations• Pullbacks toward the moving averages• Candle-body strength for entry confirmation• Optional higher-timeframe trend alignment
BUY SIGNAL
A BUY signal may appear when the short-term trend is bullish, price completes a valid pullback, momentum supports further upside and a strong bullish candle closes.
SELL SIGNAL
A SELL signal may appear when the short-term trend is bearish, price completes a valid pullback, momentum supports further downside and a strong bearish candle closes.
SIGNAL SCORING
Each bullish or bearish condition contributes to a directional score. A signal appears only when the score reaches the selected minimum threshold.
A higher threshold generally produces fewer but more selective signals. A lower threshold produces more signals but may also increase false entries.
CHART FEATURES
• Confirmed BUY and SELL markers• EMA 20, EMA 50 and optional EMA 200• Bullish and bearish condition scores• Trend and momentum dashboard• Optional higher-timeframe confirmation• ATR-based stop-loss and target guides• Configurable signal cooldown• Optional session and volatility filters• Confirmed BUY and SELL alerts
SUGGESTED USE
This indicator is designed for trend-pullback trading. It should not be used to enter every signal automatically.
Before considering an entry:
Confirm that the market is trending.
Avoid flat or frequently crossing moving averages.
Wait for the signal candle to close.
Check nearby support and resistance.
Avoid major economic announcements and abnormal volatility.
Use appropriate risk management.
For normal spot, CFD or futures trading, ATR levels can help estimate possible stop-loss and profit-target locations.
For fixed-payout trades, the ATR stop and target lines do not represent expiry rules. Each expiry duration should be tested separately using historical and demo results.
NON-REPAINTING BEHAVIOR
Signals are designed to use confirmed candle data and appear after the signal candle closes. Higher-timeframe calculations are designed to avoid lookahead.
Users should independently verify this behavior with PulseWire’s Bar Replay feature before using the indicator.
IMPORTANT LIMITATIONS
This indicator does not predict the market and does not guarantee profitable trades. Signals can fail during ranging conditions, sudden news events, low liquidity or rapid reversals.
PulseWire prices may differ from prices displayed by a broker or fixed-payout platform. Small differences can significantly affect short-duration trades.
Always test the indicator on historical data and a demo account before considering real-money trading. Past performance does not guarantee future results. Never risk money you cannot afford to lose. Indicator

Adjustable Monthly OpEx & Triple Witching - Spectre TradesThe Adjustable Monthly OpEx & Triple Witching indicator is designed to help traders quickly identify important equity-index expiration dates directly on their chart.
The indicator automatically marks the third Friday of each month, which is the traditional expiration date for many monthly stock and index options. It also separately identifies the quarterly expiration dates that occur in March, June, September, and December. These quarterly dates are commonly associated with triple witching and can involve increased trading volume, contract rollover activity, institutional rebalancing, option hedging, and sudden changes in volatility.
Rather than predicting market direction, this indicator provides visual context. Expiration sessions can produce price pinning near major option strikes, sharp reversals, compressed price action, stop runs, or late-session volatility. Traders should continue to rely on their normal market structure, liquidity, volume, and price-action confirmation before entering a trade.
The indicator is highly customizable. Users can independently adjust the appearance of regular monthly OpEx sessions and quarterly triple-witching sessions. Background colors, transparency, labels, label wording, text size, marker position, vertical lines, session highlighting, time zone, alerts, and individual month visibility can all be modified through the indicator settings.
For futures traders, the indicator uses the trading session’s closing date so that an overnight session beginning Thursday evening can still be associated with the correct Friday expiration date. This makes it especially useful for ES, MES, NQ, and MNQ charts.
The indicator is best used as a market-awareness tool. On expiration days, traders may consider reducing position size, waiting for stronger confirmation, avoiding assumptions about directional bias, and being more selective around major liquidity levels and round-number prices.
This indicator does not provide buy or sell signals and should not be used as a standalone trading system. It is intended to highlight dates when expiration-related positioning may influence normal price behavior.
Indicator

FULCRUM: Rates & Vol Adjusted Ratio VWAPWHAT IT DOES
The fulcrum of the index complex: a rates-and-volatility-adjusted VWAP for the relationship between two markets. It rebuilds the NQ/ES ratio bar by bar — 2500·NQ/ES, normalized by VXN×US10Y — then anchors a volume-weighted mean with ±1σ and ±2σ bands on that relative-value series. One line that says whether tech is rich or cheap against the broad market, and how stretched the move is. It lives in its own pane, works on any chart, and configures itself.
HOW IT WORKS
Both legs are requested at chart resolution, and the bar's ratio high/low come from the cross-extremes (NQ high over ES low, and the reverse) — the VWAP sees the bar's true range, not just closes.
A spread has no volume of its own, so weighting borrows the geometric mean of both legs' volume.
The rates/vol divisor uses the PRIOR session's confirmed VXN and US10Y closes — identical live and on reload. No repaint.
The anchor is automatic: session on charts up to 20m, week up to 4h, month above. Override it if you disagree.
Bands come from cumulative volume-weighted variance, not a rolling stdev, and stay hidden for the first bars after each reset while they cook.
The ratio line holds its color until the move clears ±0.15σ — color changes are regime, not noise. A faint tint marks ±2σ extension.
A live table reads VWAP, ratio, Δ%, σ-distance, zone, and the divisor's status — if a feed is missing it says so instead of guessing silently.
HOW TO USE IT
Read the relationship against its anchored mean: +2σ on a ratio behaves like +2σ on price — stretched, and usually walked back. Cross alerts on VWAP, ±1σ, and ±2σ are included. Swap the symbols and multiplier and it generalizes to any pair you trade.
WHAT IT CAN'T DO
It describes the relationship, not direction — the ratio falling doesn't say whether NQ is weak or ES is strong. If the VXN or US10Y feed is unavailable, the divisor falls back to sane defaults and the table flags it; it will not pretend.
SETTINGS
Numerator, denominator, and multiplier; VXN×US10Y normalization; auto or manual anchor (session, week, month); band multipliers; warm-up hiding; colors, fill, labels, table.
Open source. Free. Where the balance sits. Indicator
