Parabolic SAR Constraint Kinematics & Run GeometryOverview
Parabolic SAR Constraint Kinematics & Run Geometry studies how a continuing Parabolic SAR step is formed and how the surrounding run develops. It keeps TradingView's ta.sar() as the plotted SAR series and adds measurements of the run's Extreme Point, remaining Arc, acceleration-factor progression, and prior-two-bar price constraint.
The central distinction is between the free parabolic candidate and the candidate after the two-bar constraint. The script measures how much movement the constraint removes, how much movement remains, and how frequently material constraints occur within a fully observed run. A synchronization check compares the reconstructed candidate with ta.sar() before exposing the related constraint percentages.
The PSAR formula itself is standard. The added functionality is the coordinated measurement of its step mechanics, run-relative geometry, observation completeness, and bounded run history. The indicator does not adapt the PSAR formula, filter its side changes, optimize parameters, or rank trading opportunities.
Chart layers
The default display contains the canonical SAR dots, an Extreme Point trace, a translucent SAR-to-Extreme-Point Arc, small side-change markers, yellow material-constraint halos, and a compact upper-right panel.
Cyan and pink distinguish the tracked SAR-below and SAR-above run states. Green and amber distinguish the corresponding Extreme Point traces. Colors and visibility are configurable. These colors describe tracked states; they do not prescribe an action.
The Extreme Point is the highest observed high in a SAR-below run or the lowest observed low in a SAR-above run. It is updated according to the selected confirmation setting.
Optional layers include the free candidate point, the constraint bridge, an Arc midline, the current run's origin line, descriptive event markers, and completed-run summaries. These additional layers are disabled by default to avoid crowding the chart. The bridge compares the free candidate with the plotted SAR on materially constrained bars after the synchronization check; the reconstructed guarded candidate can differ from the plotted SAR by the permitted tolerance.
Reading the compact panel
The default layout remains a three-row grid. Abbreviated captions and reduced spacing save horizontal space without changing the measurements or their numeric precision.
STATE: BELOW or ABOVE means the tracked SAR side relative to price. FULL means the run's beginning was observed; PARTIAL means tracking began during an existing run. TIGHT identifies the contracted-Arc state. SYNTHETIC identifies a non-standard chart.
RUN: An example such as "11b ✳3 ∥4" means 11 bars in the tracked run, three Extreme Point updates, and four bars since the last Extreme Point update. The star identifies updates; the parallel strokes identify elapsed bars without an update.
ARC: Current normalized SAR-to-Extreme-Point distance, followed by Arc Retention.
STEP: Absolute one-bar SAR movement, followed by that movement as a percentage of the remaining Arc. This percentage is a geometric ratio, not a return or probability; it is not capped at 100%.
MOTION: Mechanical state, TX percentage, observed AF, and synchronization symbol. TX means Step Transmission. For example, "FREE TX100.0% AF0.08" indicates an observed FREE state, transmission of 100.0% of the reconstructed free step, and an observed AF of 0.08.
CODE: The four-axis run signature and completed-run count. CODE is the compact label for the run signature, not a trading signal. The suffix n20 means 20 completed full runs are retained for the duration/brief-run history. When the signature display is disabled, HIST shows the sample count, average duration in bars, and brief-run share instead.
Hovering over the cells reveals definitions, the processing scope, reconstruction error, constraint percentages, recent recorded signature states, and rolling history summaries. The panel shows the latest execution state; moving the cursor over an older bar does not make the panel display that bar's historical state. Extended Data Window output can be enabled for historical numeric inspection inside the research window.
Arc and distance units
Arc = abs(Current SAR - Tracked Extreme Point)
Arc Retention = 100 x Current Arc / Widest Arc recorded in the same tracked run
A lower retention value means the current Arc is narrower relative to that run's widest recorded Arc. It does not establish that a price reversal is approaching.
Distance units are selectable: ATR at run start, percent from run origin, minimum ticks, or raw price. The ATR-style normalizer smooths true range using RMA, SMA, EMA, or WMA. The range used for normalization is captured when tracking of the run begins, and percent distances use the absolute close captured as the run origin. In a PARTIAL run, these references belong to the first tracked bar, not the unknown actual beginning of the run.
Normalization and optional marker spacing do not alter the canonical SAR calculation.
Tight Arc and re-expansion
After the configured minimum run age, TIGHT is entered when Arc Retention is at or below the selected contraction threshold. Defaults are five bars and 35% retention.
The contracted state is released only after a new Extreme Point appears and retention reaches the contraction threshold plus the selected hysteresis, capped at 100%. Default hysteresis is 20 percentage points, giving a default release level of 55%.
The two thresholds reduce repeated state changes near a single boundary. TIGHT is a latched run state, so a retention value above the entry threshold does not by itself end that state. Neither contraction nor re-expansion forecasts a future market event.
Observed acceleration factor
Observed AF = min(Starting AF + Recorded EP Updates x AF Increment, Effective Maximum AF)
AF Progress = 100 x (Observed AF - Starting AF) / (Effective Maximum AF - Starting AF)
Defaults are 0.02 for the starting factor, 0.02 for the increment, and 0.20 for the maximum. If the entered maximum is below the starting factor, the effective maximum is raised to the starting factor. When both are equal, AF progress is represented as 100%.
The observed AF is reconstructed from the tracked Extreme Point sequence. It is not an independently exposed internal AF series supplied by ta.sar(). Partial-run values do not recover unobserved pre-window updates.
Free candidate and two-bar constraint
The reconstruction is attempted on eligible continuing bars of FULL runs, with the required prior values available and the current raw SAR side agreeing with the tracked run.
Free Candidate = Previous SAR + Previous Observed AF x (Previous Tracked EP - Previous SAR)
For a SAR-below run:
Guarded Candidate = min(Free Candidate, Previous Low, Low Two Bars Ago)
For a SAR-above run:
Guarded Candidate = max(Free Candidate, Previous High, High Two Bars Ago)
The resulting guarded candidate is compared with the current ta.sar() value. The default permitted difference is two minimum ticks; the tolerance is adjustable and includes a small numerical floor.
If the reconstruction is outside tolerance, the state becomes CHECK and Constraint Load and TX are unavailable. If the bar is not eligible, the state is INIT. A successful check establishes agreement within the selected tolerance on that bar, not exact recovery of every internal PSAR state or independent validation of the model.
Constraint Load and Step Transmission
Free Step = abs(Free Candidate - Previous SAR)
Removed Distance = abs(Free Candidate - Guarded Candidate)
Constraint Load = 100 x Removed Distance / Free Step
TX measures the guarded directional step as a percentage of the free directional step. Direction here means the mechanical direction of the tracked PSAR run, not a proposed trade.
TX = 100 x Guarded Directional Step / Free Directional Step
The displayed constraint percentages require synchronization and a valid positive denominator. They are bounded between 0% and 100%. In ordinary eligible cases, they describe the removed and transmitted portions of the reconstructed step. A zero or invalid denominator produces unavailable data rather than an invented percentage.
A measurable constraint requires both a removed distance of at least one quarter of a minimum tick and Constraint Load of at least 1%. A material constraint additionally requires the user-selected materiality threshold, which defaults to 12.5%.
MOTION states and symbols
INIT: The current bar is not eligible for the continuing-run reconstruction, including during partial tracking or at the start of a run.
CHECK: The guarded candidate differs from ta.sar() by more than the permitted tolerance.
FREE: The measurable-constraint conditions are not satisfied. This includes effects below the residual or load thresholds, not necessarily a mathematically exact zero effect.
TRACE: A measurable constraint exists, but its load is below the materiality threshold.
BRAKE: A material constraint exists and the guarded directional step remains greater than one quarter of a minimum tick.
PINNED: A material constraint exists and the guarded directional step is at or below that quarter-tick threshold.
The check mark means agreement within tolerance; the exclamation mark means outside tolerance; the ellipsis means not yet eligible. None is a confidence rating or market recommendation.
Yellow halos and run occupancy
A yellow halo identifies a bar meeting the synchronized material-constraint conditions. It marks a mechanical effect on the PSAR step, not an entry, exit, reversal prediction, target, or stop.
Run Constraint Occupancy = 100 x Materially Constrained Counted Bars / Synchronized Counted Bars
The counts follow the selected confirmation setting and exclude the side-change bar. Under the default setting, they are committed at bar close. The percentage measures how frequently the guardrail materially affected the eligible observations in that run, not the probability of a future outcome.
Run signature: A, F, P, C
An example code is A3·F2·P2·C0.
A is Arc Retention.
F is observed AF Progress.
P is Extreme-Point Pause Share: 100 x Bars Since Latest EP / (Run Age - 1), with zero used at age one.
C is current Constraint Load.
A, F, and P use four fixed percentage bands:
1: below 25%
2: 25% to below 50%
3: 50% to below 75%
4: 75% or higher
C uses:
C0: valid load below 1%
C1: 1% to below 25%
C2: 25% to below 50%
C3: 50% to below 75%
C4: 75% or higher
C-: Constraint Load is unavailable
C- can occur because the bar is ineligible, synchronization fails, or the denominator is invalid. When no complete signature can be formed, placeholder bands are shown. C is based on the numeric load, whereas MOTION also applies the quarter-tick residual test and the selected materiality threshold; the two displays need not change together.
A3·F2·P2·C0 therefore describes retention from 50% to below 75%, AF progress from 25% to below 50%, pause share from 25% to below 50%, and valid constraint load below 1%.
These are fixed ranges, not sample quartiles, learned regimes, rankings, or probabilities. The code helps compare similarly structured observations without implying similar future outcomes. Up to three recent distinct synchronized signature observations are available in the tooltip; this is not an automatic historical pattern search.
FULL, PARTIAL, and completed-run history
A FULL run begins at an observed SAR side change inside the research window. A PARTIAL run was already underway when tracking began. Only completed FULL runs enter the rolling history.
The memory setting defaults to 20 and accepts 3 to 100 runs. Duration and brief-run history retain the latest completed full runs. The brief threshold defaults to four bars or fewer.
Constraint-occupancy history accepts only completed full runs with a valid occupancy value. Runs without that value are skipped for this particular average, so its sample can differ from the duration/brief-run sample.
Optional completed-run labels also show EP updates, time at the maximum observed AF stage, constraint occupancy, and tight-Arc episode count. These summaries describe completed observations, not simulated transactions.
Research window and runtime
Recent bars is the default scope. The custom research window defaults to 3,000 bars and can be set from 500 to 50,000. All available bars removes that custom limit, subject to the history available on the chart.
The boundary is fixed when the script loads or recalculates. Subsequent realtime bars are included; the window is not a continuously sliding hard cap. Reloading or changing an input rebuilds it.
Before the boundary, canonical ta.sar() and the selected normalizer still evaluate to provide continuous underlying series. The window limits custom run analysis, reconstruction, history, events, and plotted research output; it is not Pine's native calc_bars_count restriction and does not prevent every underlying calculation from running on earlier bars.
Larger windows and All available bars can increase runtime. Use a smaller window if a runtime warning occurs. This is a research and resource setting, not an access restriction.
Controls and alerts
Users can change the research scope, PSAR factors, confirmation behavior, normalization, history length, constraint threshold, synchronization tolerance, visual layers, marker limits, panel layout and position, right-edge clearance, text size, bold formatting, and colors.
Alerts are disabled by default. Available conditions report a SAR side change, Arc contraction, Arc re-expansion, the onset of a material constraint, an age milestone, the observed AF maximum, an EP pause, or completion of a brief full run. They do not specify trading actions.
Extended Data Window output is also disabled by default. Enabling it exposes additional numeric series without changing the underlying measurement rules.
Suggested research workflow
Start on a standard candlestick or bar chart with default settings. Identify the SAR dots, Extreme Point trace, and Arc before reading the panel. Check FULL or PARTIAL, inspect ARC and STEP, and then use MOTION and its tooltip to examine the reconstructed constraint.
For a worked mechanical example, a free directional step of ten ticks reduced to six ticks has a four-tick removed distance: Constraint Load is 40% and TX is 60%, provided the guarded candidate synchronizes and the other eligibility conditions hold. This example explains the arithmetic; it does not describe a trading result.
Use CODE to compare descriptive states, or enable the candidate point and bridge for closer mechanical inspection. Keep the symbol, timeframe, PSAR factors, distance unit, and observation policy consistent when comparing records.
Realtime behavior and limitations
Confirm state changes at bar close is enabled by default. Run changes, EP updates, descriptive event records, and history counters are committed under that setting. The active ta.sar() point, current geometry, constraint calculations, halos, and current displayed signature can nevertheless change before the bar closes. The panel can retain a committed run state while live geometric values update. Disabling confirmation allows more provisional intrabar behavior.
The script is not described as completely non-repainting. Use closed bars for reproducible comparisons.
Non-standard chart types supply synthetic or transformed OHLC. The panel marks them as SYNTHETIC; their measurements describe that generated chart series, not standard market bars.
PSAR can change sides frequently in irregular or sideways markets. A synchronized reconstruction is only a numerical consistency check within tolerance. Changing the available history, research boundary, settings, or timeframe can change the tracked run statistics. Extreme parameter values may produce more unavailable or CHECK observations. Defaults are general research settings, not optimized values.
This open-source indicator is a descriptive visualization and numerical research tool. It makes no claims about forecast accuracy, trading performance, or a predictive edge, and it does not provide individualized recommendations or trading instructions. Indikator

quantedOptions Levels [qO]Official quantedOptions Levels Script.
quantedOptions Levels draws options-positioning levels on any chart from one pasted line of text: the call wall and put wall, the gamma flip, the builder's call-side and put-side gamma maxima (Gamma C / P), the largest positive and negative delta-exposure strikes (DEX C / P), the five largest net-gamma strikes, a shaded zone between the walls, and the strike profile itself as a ladder on the right edge of the chart, one bar per strike sized by net gamma.
HOW TO USE
1. Copy a levels line from a quantedOptions dashboard (quantedTrader for QQQ, SPY and other tickers; quantedGamma for SPX) with "Copy for TradingView".
2. Open this indicator's settings and paste the line into "Paste from quantedOptions".
3. The levels appear with a header showing the ticker, expiry cohort, time and the price at that time. Levels are a snapshot of that moment. Paste again to refresh.
CONVERSION
On the ticker's own chart the levels are drawn as they are. On a related instrument they are rescaled live: QQQ levels on NQ, MNQ or NDX; SPY on ES, MES or SPX; SPX on ES or MES; IWM on RTY or M2K; DIA on YM or MYM; GLD on GC or MGC; SLV on SI or SIL; USO on CL, MCL or QM. Ratios are sampled only on bars where the ETF traded, so an overnight futures move does not shift the lines. Cash-index levels on their futures use the basis instead of a ratio. "Fixed ratio" lets you set your own factor; "Off" draws everything 1:1. Each label shows the level in the chart's price and the original strike.
DISPLAY
Levels that share a strike are drawn once with the names joined, so nothing overlaps. Each group of levels can be switched off. Glow, line start, ladder length and label size are adjustable. Three alert conditions are included: price crossing the call wall, the put wall and the gamma flip.
TRY IT
Paste this line to see the indicator work on a QQQ chart, or on NQ to see the conversion. It is QQQ's front expiry at 11:00 Central on 2026-09-04:
qo1|QQQ|2026-09-04|11:00|717.62|0DTE|net=291.1|cw=720|pw=718|flip=724.53|gc=720|gp=718|dc=715|dp=720|top=720,718,717,722,716|p=682:-0.6,683:-0.7,684:-1.5,685:-2.3,686:-0.8,687:-1.3,688:-1.9,689:-1.7,690:-3.8,691:-2.7,692:-2.0,693:-1.5,694:-3.0,695:-6.4,696:-2.2,697:-3.6,698:-3.6,699:-2.8,700:-20.7,701:-2.8,702:-5.3,703:-9.8,704:-5.8,705:-32.5,706:-7.9,707:-16.1,708:-29.6,709:-19.8,710:-51.3,711:-36.0,712:-35.6,712.5:-26.0,713:-58.2,714:-7.7,715:49.9,716:-135.7,717:-232.0,717.5:5.9,718:-308.2,719:45.3,720:432.7,721:88.5,722:186.0,722.5:111.9,723:36.0,724:83.5,725:126.5,726:20.3,727:19.1,727.5:7.2,728:27.4,729:6.7,730:44.2,731:11.2,732:10.9,732.5:1.5,733:3.6,734:3.3,735:40.7,736:3.4,737:2.2,737.5:0.7,738:0.8,739:2.1,740:4.5,741:4.8,742:0.5,742.5:0.5,743:0.6,744:0.5,745:1.5,746:0.5,747:0.5,748:1.4,749:0.2,750:2.7,751:1.8,752:0.2,753:0.3
NOTES
Nothing is sent anywhere. The only input is the text you paste, and the only data requested are the reference prices of the related tickers for conversion. The levels are derived from listed options open interest and Greeks. They describe where positioning sits; they are not a signal. Indikator

McGinley Regime Ribbon [AxeAlgo]McGinley Regime Ribbon
----------------------------------------------------------------------
WHAT THIS SCRIPT DOES
----------------------------------------------------------------------
McGinley Regime Ribbon classifies the current market into one of four regimes, Trend Up, Trend Down, Ranging, or Volatile, on any chart, in real time, and colours a woven ribbon to match.
It is a context filter. It does not predict future price direction and it does not generate buy or sell signals. Its job is to tell you which kind of tool fits current conditions, so you can stop applying trend logic to a range or fade logic to a trend.
- Trend Up or Trend Down: trend and breakout tools are in context, and mean reversion tends to fight the move.
- Ranging: fades, support and resistance, and VWAP reversion tend to fit, while breakout tools tend to produce false starts.
- Volatile: wide, structureless movement with no dependable edge for either style. The label is a suggestion to stand aside.
----------------------------------------------------------------------
BACKGROUND, WHY A McGINLEY RIBBON AND NOT AN EMA RIBBON
----------------------------------------------------------------------
A standard EMA moves at one fixed speed set only by its length. That same speed applies in a dead calm range and in a fast trend. That fixed speed is the main reason an EMA ribbon whipsaws: in chop, price crosses back and forth through a band that cannot get out of the way, and the stacked or not stacked alignment reading that any ribbon based classifier depends on flickers along with it.
The McGinley Dynamic (John R. McGinley, CMT) handles this inside the formula rather than by adding more smoothing. Each line updates every bar with a term that measures how far price has pulled away from the line, raised to the fourth power. When price pulls away, the line speeds up to close the gap on its own. When price is riding the line, it settles back to roughly the pace of an EMA of the same length. The line is fast when it needs to be and calm when it needs to be, with no separate trend or chop switch attached on top.
The Ribbon Smoothness input is the published tuning constant that scales the baseline speed so it lines up with an EMA of the chosen length. Lower reacts faster, higher is steadier, and the adaptive behaviour happens on top of that either way.
----------------------------------------------------------------------
THE SHARED SPEED FACTOR
----------------------------------------------------------------------
The textbook McGinley formula lets each line compute its own deviation from price. In a five line ribbon that breaks the one property a ribbon needs, a stable relative order between the lines, because a slower line always lags price more than a faster one, so it sees a larger deviation and speeds up by a different amount on an ordinary bar.
In this script only the middle line computes its own deviation. The other four reuse that same speed factor. Relative responsiveness between any two lines is then a fixed ratio of their lengths, exactly like an EMA ribbon, while the ribbon as a whole still accelerates in trends and calms in chop as a group. The speed factor is bounded so one extreme bar cannot collapse every line at once. The five lengths keep Fibonacci spacing, 8, 13, 21, 34 and 55 by default, scaled from a single Ribbon Length input.
----------------------------------------------------------------------
HOW THE REGIME IS CLASSIFIED
----------------------------------------------------------------------
Three independent readings are combined on each bar.
1. Ribbon alignment. How many of the five lines are stacked in order, fast above slow for up or the reverse for down. A full stack is directional structure, a partial stack is not.
2. ADX, taken from the Directional Movement Index. Above the trending threshold points to a real directional push, below the chop threshold points to none. ADX on its own cannot separate trend from chop, which is why it is only one of three inputs.
3. Normalised ATR percentile. ATR divided by price, ranked against its own recent history on a 0 to 100 scale. A high percentile means volatility is unusually elevated for this symbol specifically. Ranking against its own history is what lets the thresholds work across different symbols and timeframes without re-tuning.
From those three:
- Volatile requires an elevated ATR percentile together with a ribbon that has come apart. A fully stacked ribbon is treated as a trend no matter how fast it is moving, so elevated volatility on its own never forces the Volatile state.
- Trending requires not Volatile, ADX at or above the trending threshold, a fully stacked ribbon, and a ribbon spread, meaning its width measured in ATR, at or above a minimum.
- Ranging is the calm, structureless default that applies when neither of the above holds.
----------------------------------------------------------------------
STABILITY AND CONFIRMATION
----------------------------------------------------------------------
Four layers keep the regime from flickering on a boundary.
- Hysteresis. The reading needed to leave a regime is looser than the one needed to enter it, so a value parked on a threshold does not flip every bar.
- Minimum hold. A changed raw regime becomes official only after it has held for a set number of bars. Entering Volatile is exempt by default, because standing aside should not wait.
- Flip rate chop filter. If the official regime has already changed several times inside a recent window, the market is whipsawing by definition, and a fresh trend call is held back until it settles. An already established trend is exempt, so this never fights a real trend through a pullback.
- Higher timeframe confirmation. The same classifier is run on a higher timeframe using confirmed bars only, then folded into an agreement flag and into the published gates. It can require the higher timeframe to merely not conflict, or to match the trend direction exactly.
----------------------------------------------------------------------
SCORES
----------------------------------------------------------------------
- Regime Confidence, 0 to 100. How far past its defining threshold the current regime sits. A reading right on the line scores near zero.
- Regime Maturity, 0 to 100. How long the current run has lasted compared with past runs of the same type on this symbol. A high value means the current phase is already longer than most earlier ones, which can flag a stretched range or an extended trend.
- Trend Quality, 0 to 100. A weighted blend of ADX, ribbon alignment, ribbon spread and mid line slope, reduced when volatility is elevated.
----------------------------------------------------------------------
WHAT YOU SEE ON THE CHART
----------------------------------------------------------------------
- A woven ribbon of 21 thin strands interpolated across the five McGinley lines, with no solid fill. Each strand is a shade of the current regime colour, darker on the slow edge and lighter on the fast edge, over a soft wide glow. Gold for Trend Up, ruby for Trend Down, royal blue for Ranging, indigo blue for Volatile.
- Shade is driven by Regime Confidence. A confident reading gets the full saturated colour. A borderline reading is pulled toward a greyed version of the same colour, never a different colour and never invisible, so the ribbon colour itself tells you how much to trust the call.
- On a regime change every strand cross fades from the old colour to the new one over a few bars, so the ribbon melts between colours instead of snapping.
- A diamond when the regime officially flips into a directional call. A gold diamond below the bar for Trend Up and a ruby diamond above the bar for Trend Down, following the usual arrow convention. Flips into Ranging or Volatile are reported on the dashboard rather than the chart.
----------------------------------------------------------------------
DASHBOARD
----------------------------------------------------------------------
A compact on chart panel showing the current regime, the tool family it favours, Trend Quality, Regime Confidence, ADX, ATR percentile, the recent flip count, how long the regime has run against its own median, any pending flip and its confirmation countdown, and the higher timeframe regime with its agreement state. If the optional signal section is enabled it also shows average result by regime.
Position is selectable. The whole panel can be turned off.
----------------------------------------------------------------------
OPTIONAL, GRADE A SIGNAL BY REGIME
----------------------------------------------------------------------
An optional section lets you wire in an external signal series from another indicator, positive for long, negative for short, zero for flat. The script measures each entry forward return over a chosen number of bars in ATR units and reports the average result grouped by the regime the signal fired in, so you can see which regimes your own signal actually performs in. It is off by default and stays blank until pointed at a real signal.
----------------------------------------------------------------------
INPUTS
----------------------------------------------------------------------
- Ribbon. Price source, overall length, smoothness, and drawn width. Drawn width changes appearance only, not detection.
- Trend Criteria. A single dial, Strict, Normal or Lenient, that moves the trend strength bar, the minimum ribbon width, the volatility cut off, the confirmation delay and the quality floor together.
- Higher Timeframe Check. On or off, and which timeframe to use.
- Display. Element toggles, panel position, and the four regime colours.
- Grade A Signal By Regime. The optional external signal section above.
- Advanced. Higher timeframe agreement rules, ADX and ATR lengths, volatility lookback, colour fade length, and whether markers and alerts wait for the bar close.
----------------------------------------------------------------------
CALCULATION AND REPAINT BEHAVIOR
----------------------------------------------------------------------
Chart timeframe logic uses only the current bar own data. Higher timeframe reads take the last closed higher timeframe bar with lookahead off, so they do not repaint. The regime change diamonds and the alert calls are gated to confirmed, closed bars by default.
The ribbon colour on the open, still forming bar can update until that bar closes, because the live bar regime is not final until then. This is expected for a context tool. The confirmed markers and alerts are the parts that wait for the close.
There is a warm up period. The ribbon, ADX and the percentile window all need history first, and until that fills the panel reads Calibrating and no regime is published.
----------------------------------------------------------------------
LIMITATIONS
----------------------------------------------------------------------
- This is a classifier, not a strategy. It describes current conditions, it does not tell you where to enter or exit.
- Regime calls lag by design. Hysteresis, the minimum hold and the chop filter all trade a few bars of delay for fewer false flips.
- On very short histories, or the first bars of a new symbol, there is not enough data to rank volatility or measure regime maturity, and those readings stay blank until enough runs have completed.
- Thresholds are preset driven. The three criteria presets cover most cases, but unusual instruments may still need the Advanced dials.
----------------------------------------------------------------------
DISCLAIMER
----------------------------------------------------------------------
Trading involves substantial risk of loss and is not suitable for every investor. Nothing in this script or its description constitutes financial, investment, or trading advice. The regimes detected by this script label current and past conditions only and are not indicative of future results. Test any tool on your own markets, timeframes and settings before relying on it.
Indikator

Tech Leadership Map+ [Herman]Tech Leadership Map
Tech Leadership Map is a relative-market leadership indicator designed to show whether technology-focused market activity is currently leading, lagging, or moving without a clear advantage relative to the broader US equity market.
The indicator does not generate traditional buy or sell signals. Instead, it provides an additional market-context layer that can help traders evaluate whether current market participation supports or conflicts with the directional move they are analyzing.
It includes two selectable and independent leadership models:
* **Price**
* **Volume Pressure**
Both models convert several measurements into a standardized four-component composite score.
---
Why Tech Leadership Matters
Technology shares represent an important component of US equity index activity, particularly for Nasdaq-related instruments.
When technology is outperforming the broader market, Nasdaq-focused markets may be receiving stronger relative participation. When technology is underperforming, broader-market strength may not be confirmed by technology leadership.
This indicator attempts to make that relationship easier to observe directly on the chart.
It should be treated as a **relative-market context tool**, not as a standalone forecasting system.
---
Leadership States
The indicator evaluates four separate components.
Each component contributes:
**+1** = favors the selected technology leader
**0** = neutral / unavailable confirmation
**-1** = favors the benchmark
The resulting Composite Score can therefore range from:
**+4 to -4**
The default classification is:
** GREEN — Tech Leading**
Composite Score of +2 or higher.
Technology-oriented activity is showing stronger relative leadership than the selected benchmark.
** YELLOW — No Clear Edge**
Composite Score between -1 and +1.
The measurements are mixed and neither side has sufficient agreement to establish a clear leadership state.
** RED — Tech Lagging**
Composite Score of -2 or lower.
Technology-oriented activity is showing weaker relative leadership than the selected benchmark.
These colors describe the current relative-leadership condition. They do not represent predictions of future price direction.
---
# 1. PRICE MODE
The default Price model compares:
**QQQ — Price Leader**
with
**SPY — Price Benchmark**
Both symbols can be changed in the indicator settings.
The model evaluates four components.
### 1. Performance From RTH Open
The indicator measures the percentage performance of QQQ and SPY from the beginning of the configured US Regular Trading Hours session.
It then compares those performances.
If QQQ has performed better from the RTH open, the component favors the leader.
If SPY has performed better, it favors the benchmark.
---
### 2. Relative-Strength Ratio Slope
The indicator calculates the relative-strength relationship:
**QQQ / SPY**
The logarithm of this ratio is evaluated using a linear-regression slope.
A rising relative-strength relationship indicates improving technology leadership.
A falling relationship indicates weakening technology leadership relative to the benchmark.
---
### 3. Short-Term Momentum Difference
The model compares short-term rate-of-change momentum between the leader and benchmark.
By default, this component uses a 5-bar momentum comparison.
This allows the indicator to identify situations where both markets may be moving in the same direction while one is accelerating more strongly than the other.
---
### 4. Correlation-Break Confirmation
QQQ and SPY normally exhibit a relatively high degree of correlation.
The indicator measures correlation between their logarithmic returns.
When correlation falls below the model's internal threshold, the short-term momentum difference receives an additional confirmation vote.
The purpose of this component is to emphasize periods where relative movement becomes more meaningful because the two markets are no longer behaving as closely together.
---
# 2. VOLUME PRESSURE MODE
Volume Pressure provides an alternative model that does **not use QQQ/SPY price movement to determine leadership**.
The default market-internal sources are:
**NASDAQ: VOLDQ**
versus
**Broad Market / NYSE: VOLD**
These represent net up-volume minus down-volume market internals.
The symbols are editable because VOLDQ and VOLD represent different market universes and should not be interpreted as literal constituent-by-constituent equivalents of QQQ and SPY.
---
## Normalization
NASDAQ and broad-market internal series can operate on substantially different numerical scales.
For that reason, the indicator first normalizes each series independently before comparing them.
This prevents the raw numerical magnitude of one internal from automatically dominating the comparison.
---
## Volume Pressure Components
The model then evaluates four measurements.
### 1. Pressure Level
Compares the current normalized leader pressure with the normalized benchmark pressure.
---
### 2. Fast Pressure
Applies short-term smoothing to both normalized internal series and compares their relative position.
This helps reduce some bar-to-bar noise while preserving short-term changes in leadership.
---
### 3. Pressure Momentum
Measures the change in normalized internal pressure over the selected momentum lookback.
This identifies which market internal is currently improving or deteriorating faster.
---
### 4. Pressure Impulse
Each normalized internal is compared with its own slower baseline.
The difference between those impulses determines which market is showing the stronger deviation from its recent baseline.
---
# Chart Display
The default visualization uses colored dots placed along the chart.
The colors correspond directly to the current leadership state:
**Green = Tech Leading**
**Yellow = No Clear Edge**
**Red = Tech Lagging**
Optional chart-bar coloring can also be enabled.
By default, leadership dots are displayed only during the configured US Regular Trading Hours session:
**09:30–16:00 New York time**
This behavior can be changed in the settings.
---
# Statistics Table
The optional statistics table provides additional information about the active model.
Depending on the selected source, it displays:
* active leadership source
* current leadership state
* Composite Score
* individual component votes
* correlation in Price mode
* normalized internal gap in Volume Pressure mode
The table is intended to make the calculation transparent rather than displaying only the final color.
---
# How to Use It
The indicator is primarily intended as a **confirmation and market-context tool**.
For example, when analyzing a Nasdaq-related market, a trader may compare the current directional setup with the technology leadership state.
A bullish market setup occurring while technology is leading represents a different relative-market environment from the same setup occurring while technology is lagging.
Similarly, a bearish setup occurring while technology leadership is weakening may provide different contextual information from one occurring during strong technology leadership.
The indicator does not determine whether a trade should be entered. Entry, exit, risk management, market structure, liquidity, volatility, news conditions, and other factors remain separate trading decisions.
---
# Alerts
Three state-change alerts are available:
* Technology leadership becomes positive
* Technology leadership becomes negative
* Leadership becomes mixed
Alerts trigger when the composite state transitions into the corresponding condition.
---
# Repainting / Realtime Behavior
The indicator is designed without future-data references.
All external symbol requests use `lookahead_off`, and the script does not reference future bars or negative offsets.
However, values on the **currently forming realtime bar can change until that bar closes**, because the underlying markets and market internals are still updating.
Historical completed bars represent the final calculated state for those completed chart bars.
Users who require confirmed information should therefore evaluate the state after the relevant bar has closed.
---
# Data Availability
The indicator depends on external TradingView symbols.
Price mode requires valid data for the selected Price Leader and Price Benchmark.
Volume Pressure mode requires valid data for the selected market-internal symbols.
Availability of individual symbols can vary depending on TradingView data access, exchange coverage, account configuration, or symbol availability.
If the required data is unavailable, the indicator reports that state rather than attempting to substitute another source automatically.
---
# Originality
Tech Leadership Map combines two distinct approaches to relative-market analysis inside one standardized leadership framework.
Rather than displaying QQQ/SPY relative strength or market internals as isolated raw series, the indicator evaluates several independent characteristics of leadership and converts them into a transparent four-vote Composite Score.
The Price model evaluates:
* session-relative performance
* relative-strength trend
* relative momentum
* correlation-based confirmation
The Volume Pressure model independently evaluates:
* normalized internal pressure
* smoothed pressure leadership
* internal momentum
* pressure impulse
Both engines produce the same standardized leadership states, allowing users to compare price-based leadership with non-price market-internal participation using a consistent visual framework.
The complete Pine Script source code is published openly so users can inspect the calculations and understand exactly how each state is derived.
---
## Important Notes
This indicator is an analytical tool and is not intended to provide investment advice or guarantee future market performance.
Leadership describes a relative condition between the selected markets or market internals. It should not be interpreted as a prediction that the charted instrument must rise or fall.
Users should evaluate the indicator together with their own analysis, trading methodology, and risk-management process. Indikator

Indikator

Indikator

Intraday Master ProHere is a comprehensive customer-facing explanation and guide for your Intraday Master Pro indicator, written in clear, professional English, complete with a concise legal disclaimer at the end.
Welcome to Intraday Master Pro
Intraday Master Pro is a high-precision trading script engineered to identify high-probability intraday opportunities by filtering momentum, volume, and multi-timeframe alignment into automated trade setups.
Key Features
Multi-Timeframe Trend Dashboard: Real-time alignment checks across the 1m, 5m, and 15m timeframes.
Dynamic Trend Flow Band: Visual volatility channels indicating overall market bias.
Precision Entry Signals: Volume-filtered entries based on EMA crossovers and RSI constraints.
Automated Risk Management: Dynamic Stop Loss (SL) and 3 Take Profit targets (TP1, TP2, TP3) anchored directly to active signal bars.
Setup Rating Score (1–100): Real-time setup scoring algorithm based on multi-timeframe concordance and volume strength.
How It Works
1. High-Precision Signals & Entry Conditions
The indicator issues BUY or SELL labels only when multiple conditions align:
Trend & Momentum: Fast and Slow EMA crossovers filtered by RSI.
Volume Confirmation: Spikes exceeding 1.25x the 20-period volume average.
Cooldown Guard: Built-in bar cooldown filters to prevent whipsaws during choppy consolidated markets.
2. Multi-Timeframe Dashboard & Setup Rating
Located on the right side of your chart, the dashboard updates live:
1m / 5m / 15m Trend Status: Green (BULL) or Red (BEAR) depending on price position relative to core moving averages.
Setup Rating (1 to 100): A live score grading the quality of the current setup.
80–100 (Green): High-confluence setup across all timeframes and volume.
60–79 (Orange): Moderate setup; proceed with standard risk.
Below 60 (Gray): Low confluence or weak trend.
3. Dynamic Stop Loss & Take Profit Levels
When a valid signal triggers, the indicator projects extended level lines onto your chart:
SL (Orange Line): Calculated dynamically using ATR based on recent market volatility.
TP1 (1.5x R:R): Partial profits / initial target.
TP2 (2.8x R:R): Main target.
TP3 (4.5x R:R): Extended runner target for strong trending days.
How to Use Intraday Master Pro
Wait for a Signal: Look for a clear BUY or SELL label on the chart.
Check Confluence: Glance at the Dashboard. Look for Setup Ratings of 80/100 or higher and alignment across 1m, 5m, and 15m timeframes for maximum statistical edge.
Set Orders: Place your Stop Loss at the SL line and split your position across TP1, TP2, and TP3.
Manage Risk: Once price reaches TP1, consider moving your Stop Loss to entry (Breakeven) to lock in a risk-free trade while riding the position to TP2 and TP3.
Settings & Configuration
Risk Management Inputs: Adjust Core Sensitivity or Volatility Factor to widen or tighten stop-loss distances based on the asset’s volatility.
Visuals: Toggle the Dashboard or Flow Band visibility on/off and customize accent colors to fit dark or light charts.
Disclaimer
The Intraday Master Pro indicator is designed strictly for educational and informational purposes and does not constitute financial, investment, or trading advice. Past performance is not indicative of future results. Trading equities, options, forex, and cryptocurrencies involves significant financial risk and can result in the loss of your capital. Always practice proper risk management and consult a licensed financial advisor before executing trades. Indikator

Volatility RegimeVolatility Regime
OVERVIEW
This indicator classifies the current market into one of three volatility regimes — Low, Medium, or High — and displays them in a separate panel below the price chart. Rather than measuring volatility in absolute terms, it evaluates how current volatility compares to its own recent history, so the classification adapts automatically to any instrument and timeframe without needing manual recalibration.
METHODOLOGY
Volatility is calculated as the standard deviation of logarithmic returns over a user-defined lookback period. That value is then compared to its own distribution over a longer historical window using a percentile rank calculation. The result is a 0-100 reading showing where current volatility stands relative to its own recent history, rather than relying on a fixed, one-size-fits-all threshold that would behave differently across instruments.
COMPONENTS
- Volatility Percentile Rank line: plots the 0-100 percentile reading of current volatility, colored according to the active regime.
- Threshold lines: two dashed horizontal lines mark the Low and High volatility thresholds (default 33 and 66), both adjustable.
- Panel background shading: the background of the indicator panel is tinted according to the active regime for quick visual reference.
- Regime label: a label on the most recent bar displays the current regime as text (LOW / MEDIUM / HIGH).
REGIMES
- Low Volatility Regime: percentile rank at or below the low threshold. Current volatility is compressed relative to its recent history.
- Medium Volatility Regime: percentile rank between the two thresholds. A transitional or average volatility state.
- High Volatility Regime: percentile rank at or above the high threshold. Current volatility is expanded relative to its recent history.
PURPOSE
This tool adds volatility context to trading decisions rather than generating direct buy or sell signals. Market behavior tends to differ meaningfully across volatility regimes, and being aware of the active regime can help with position sizing, stop placement, and identifying which type of setups are more likely to be relevant at a given time.
HOW TO USE IT
- Check the current regime shown in the panel before evaluating a setup on the main chart.
- Consider adjusting position size and stop-loss distance according to the active regime — wider stops and smaller size are generally more appropriate in high volatility conditions, and the opposite in low volatility conditions.
- A prolonged Low Volatility Regime can indicate the market is compressing and may be approaching an expansion phase.
- Volatility Length, Percentile Rank Lookback, and both threshold levels are adjustable in the settings to fit different instruments and timeframes.
NOTES
This indicator is a contextual tool intended to support discretionary or systematic analysis. It does not predict market direction and should be used alongside a broader trading methodology and proper risk management. Indikator

Indikator

Supertrend + Fibonacci OTE Grid & Bands [BigBeluga]🔵 OVERVIEW
The Supertrend + Fibonacci OTE Grid & Bands is an advanced technical analysis indicator designed by BigBeluga to combine trend-following Supertrend mechanics with dynamic Fibonacci retracement grids and volatility-based channel bands directly on the chart. Traditional Supertrend systems rely solely on stop lines, often missing optimal retracement zones (OTE) during trend pullbacks. To solve this limitation, this script integrates dual operating modes—anchored OTE grids that project Fibonacci levels across active trend swings, and continuous Fibonacci channel bands scaled by Average True Range (ATR).
The indicator visualizes trend direction, dynamic stop losses, shaded OTE zones, and proximity-highlighted grid levels. The core calculations track trend swings using customizable ATR lookbacks, compute proportional Fibonacci levels (0.0 to 1.0), and dynamically adjust line widths and colors when price approaches specific thresholds. Custom color palettes, bar/candle color toggles, and label configurations allow traders to fine-tune visual settings across various timeframes and asset classes.
🔵 HOW IT WORKS
The system operates through an integrated architecture where each component dynamically influences chart behavior:
1 — Supertrend Trend & Swing Engine
Stop Loss Line & Fills: Computes volatility-scaled Supertrend lines using ATR parameters, plotting colored stop-loss streams with gradient area fills.
Trend Extreme Tracking: Automatically tracks trend highs and lows upon trend direction flips to anchor structural Fibonacci calculations.
2 — Dual Fibonacci Modes (OTE Grid & Bands)
OTE Grid Mode: Projects an anchored Fibonacci retracement grid (0.0, 0.236, 0.382, 0.500, 0.618, 0.705, 0.786, 1.000) across the active trend swing, complete with a shaded Optimal Trade Entry (OTE) zone between the 0.618 and 0.786 levels.
Fibonacci Bands Mode: Plots continuous, ATR-scaled channel bands extending outward from the Supertrend line using proportional ratio offsets.
3 — Proximity Highlight & Styling Engine
Price Proximity Detection: Measures distance between price and individual grid levels using ATR multipliers to dynamically highlight active levels with distinct colors and thicker line widths.
Visual Customization: Supports bar and custom candle coloring by trend, adjustable line styles (Solid, Dotted, Dashed), and dynamic right-edge price labels.
🔵 HOW TO USE
Apart from serving as a comprehensive trend and retracement mapping tool, the indicator can be applied in several ways:
Follow Trend Momentum: Stay aligned with prevailing market direction by monitoring the Supertrend line color and trend-colored candles/bars.
Identify OTE Retracement Zones: In OTE Grid mode, monitor the shaded zone between the 0.618 and 0.786 Fibonacci levels for potential trend continuation entries during pullbacks.
Track Key Level Interactions: Watch for automatic color highlights and width changes on grid levels as price approaches critical Fibonacci thresholds.
🔵 SETTINGS
The indicator includes several customizable configuration groups to tailor calculations and visual styling to your trading style:
General Settings: Select between OTE Grid and Fibonacci Bands modes, toggle right-edge price/ratio labels, choose grid line styles (Solid, Dotted, Dashed), adjust grid highlight distance thresholds via ATR multipliers, and enable dimming for non-OTE levels.
Supertrend Parameters: Configure the ATR Period and Multiplier to adjust the sensitivity and distance of the core stop-loss line.
Fibonacci Bands Parameters: Define the ATR period and outer band multiplier specifically used when operating in Fibonacci Bands mode.
Main Styling & Colors: Set bullish and active price highlight colors, and toggle bar/candle coloring based on the active trend direction.
Fibonacci Level Settings: Enable or disable individual Fibonacci ratios (0.000, 0.236, 0.382, 0.500, 0.618, 0.705, 0.786, 1.000) and customize their individual display colors.
🔵 NOTES
Why this implementation is unique:
It merges classic Supertrend stop mechanics with both anchored OTE grids and continuous Fibonacci channel bands.
Features dynamic price proximity highlighting and custom linefill engines optimized for Pine Script version 6.
Provides extensive modular inputs for styling, level visibility, and operational mode switching.
Indikator

DNSE VN301!, BB-SMA Trend Following "Bollinger Bands Breakout with SMA Trend Filter" is a volatility-based trend-following strategy designed to capture strong directional price movements when price breaks beyond its recent volatility range. The strategy uses Bollinger Bands with a default SMA(20) basis and 2.0 standard deviations to identify bullish breakouts above the upper band and bearish breakouts below the lower band.
To improve signal quality, the strategy combines Bollinger Band breakouts with a mandatory SMA(200) trend filter, allowing Long trades only when the SMA is rising and Short trades only when it is falling. By combining volatility expansion with broader trend confirmation, the strategy seeks to reduce counter-trend and false breakout signals while participating in stronger intraday movements. It also includes configurable stop loss, take profit, trading session, trade direction, and automatic end-of-session position closure for disciplined risk management.
Strategy settings and configuration:
Chart timeframe: recommended 5-minute chart
Position size: 3 contracts
Bollinger Bands length: 20
Bollinger Bands multiplier: 2.0
SMA length: 200
Stop loss: 10 points
Take profit: 20 points
SMA trend filter: always enabled
Take profit: On / Off
Time filter: On / Off
Trading session: 09:00 – 14:30
Trade direction: Long / Short / Both
Default script settings:
The strategy calculates Bollinger Bands using the SMA(20) of the closing price. The upper and lower bands are created by adding or subtracting two standard deviations around the middle line.
When the closing price breaks above the upper Bollinger Band, buying pressure may be taking control. When the closing price breaks below the lower Bollinger Band, selling pressure may be taking control.
SMA(200) is used as the main trend filter. When SMA(200) is rising, the script only allows Long trades. When SMA(200) is falling, the script only allows Short trades.
In CNPS 04, the SMA(200) filter is always enabled. This helps the bot filter out breakout signals that go against the longer-term trend.
Users can add the built-in Bollinger Bands indicator on TradingView with Length 20 and Multiplier 2.0 to visually monitor the signal on the price chart.
Entry and exit rules:
Long entry:
Closing price > upper Bollinger Band
AND SMA(200) is rising
AND the signal appears during the trading session
AND trade direction allows Long entries
Long exit:
Stop loss: 10 points from entry price
Take profit: 20 points from entry price, if enabled
Opposite breakout signal appears
Reversal when a valid Short signal appears
Automatic position close at the end of the trading session
Short entry:
Closing price < lower Bollinger Band
AND SMA(200) is falling
AND the signal appears during the trading session
AND trade direction allows Short entries
Short exit:
Stop loss: 10 points from entry price
Take profit: 20 points from entry price, if enabled
Opposite breakout signal appears
Reversal when a valid Long signal appears
Automatic position close at the end of the trading session
Risk disclaimer:
Futures trading involves a high level of risk and prices can move sharply. This script is provided for reference, research, and backtesting purposes only. Users should fully understand derivatives trading, their own risk tolerance, and the strategy logic before applying it to live trading.
All investment decisions are the responsibility of the user. phaisinh.online is not responsible for any losses arising from the use of this strategy in real trading. Past performance does not guarantee future results.
_________________________________________________________________
"Bollinger Bands Breakout với Bộ lọc Xu hướng SMA" là một chiến lược giao dịch theo xu hướng dựa trên biến động, được thiết kế nhằm nắm bắt các chuyển động giá mạnh theo một hướng khi giá phá vỡ khỏi vùng biến động gần nhất. Chiến lược sử dụng Bollinger Bands với đường cơ sở mặc định là SMA(20) và 2,0 độ lệch chuẩn để xác định tín hiệu bứt phá tăng khi giá vượt lên trên dải trên và tín hiệu bứt phá giảm khi giá xuống dưới dải dưới.
Để nâng cao chất lượng tín hiệu, chiến lược kết hợp tín hiệu bứt phá Bollinger Bands với bộ lọc xu hướng SMA(200) bắt buộc, chỉ cho phép giao dịch Long khi SMA đang dốc lên và giao dịch Short khi SMA đang dốc xuống. Bằng cách kết hợp sự mở rộng của biến động với xác nhận xu hướng tổng thể, chiến lược hướng tới việc giảm thiểu các tín hiệu giao dịch ngược xu hướng và các tín hiệu phá vỡ giả, đồng thời tận dụng các chuyển động intraday mạnh hơn. Chiến lược cũng bao gồm các tùy chọn Stop Loss, Take Profit, khung thời gian giao dịch, hướng giao dịch và cơ chế tự động đóng vị thế khi kết thúc phiên, nhằm đảm bảo quản trị rủi ro một cách chặt chẽ và có kỷ luật.
Cài đặt & cấu hình chiến lược:
Biểu đồ: khuyến nghị khung 5 phút
Khối lượng giao dịch: 3 hợp đồng
Chu kỳ Bollinger Bands: 20
Hệ số nhân Bollinger Bands: 2.0
Chu kỳ SMA: 200
Cắt lỗ: 10 điểm
Chốt lời: 20 điểm
Bộ lọc xu hướng SMA: luôn bật
Dùng chốt lời: Bật / Tắt
Bộ lọc giờ: Bật / Tắt
Khung giờ giao dịch: 09:00 – 14:30
Chiều giao dịch: Mua / Bán / Cả hai
Cài đặt mặc định của script:
Chiến lược tính toán Bollinger Bands dựa trên đường SMA(20) của giá đóng cửa. Dải trên và dải dưới được tạo bằng cách cộng hoặc trừ hai độ lệch chuẩn quanh đường giữa.
Khi giá đóng cửa vượt lên trên dải trên Bollinger Bands, lực mua có thể đang chiếm ưu thế. Khi giá đóng cửa phá xuống dưới dải dưới Bollinger Bands, lực bán có thể đang chiếm ưu thế.
SMA(200) được dùng làm bộ lọc xu hướng chính. Khi SMA(200) dốc lên, script chỉ cho phép lệnh Mua. Khi SMA(200) dốc xuống, script chỉ cho phép lệnh Bán.
Trong CNPS 04, bộ lọc SMA(200) luôn bật. Điều này giúp bot loại bỏ bớt các tín hiệu breakout đi ngược xu hướng dài hạn.
Người dùng có thể thêm chỉ báo Bollinger Bands có sẵn trên TradingView với tham số Length 20 và Multiplier 2.0 để quan sát tín hiệu trực quan trên biểu đồ giá.
Điều kiện vào và thoát lệnh:
Vào lệnh Mua:
Giá đóng cửa > dải trên Bollinger Bands
VÀ SMA(200) dốc lên
VÀ tín hiệu xuất hiện trong khung giờ giao dịch
VÀ chiều giao dịch cho phép lệnh Mua
Thoát lệnh Mua:
Cắt lỗ: 10 điểm từ giá vào lệnh
Chốt lời: 20 điểm từ giá vào lệnh, nếu bật
Có tín hiệu breakout ngược chiều
Đảo chiều khi xuất hiện tín hiệu Bán hợp lệ
Tự động đóng lệnh khi hết khung giờ giao dịch
Vào lệnh Bán:
Giá đóng cửa < dải dưới Bollinger Bands
VÀ SMA(200) dốc xuống
VÀ tín hiệu xuất hiện trong khung giờ giao dịch
VÀ chiều giao dịch cho phép lệnh Bán
Thoát lệnh Bán:
Cắt lỗ: 10 điểm từ giá vào lệnh
Chốt lời: 20 điểm từ giá vào lệnh, nếu bật
Có tín hiệu breakout ngược chiều
Đảo chiều khi xuất hiện tín hiệu Mua hợp lệ
Tự động đóng lệnh khi hết khung giờ giao dịch
Tuyên bố rủi ro:
Giao dịch hợp đồng tương lai có mức độ rủi ro cao và giá có thể biến động mạnh. Script này chỉ phục vụ mục đích tham khảo, nghiên cứu và kiểm thử. Người dùng cần hiểu rõ giao dịch phái sinh, khẩu vị rủi ro cá nhân và logic của chiến lược trước khi áp dụng vào giao dịch thực tế.
Mọi quyết định đầu tư thuộc trách nhiệm của người dùng. phaisinh.online không chịu trách nhiệm cho bất kỳ khoản lỗ nào phát sinh từ việc sử dụng chiến lược này trong giao dịch thực tế. Hiệu quả trong quá khứ không đảm bảo kết quả trong tương lai.
Strategi

JFX Structure FibJFX Structure Fib
ENGLISH
JFX Structure Fib is a multi-timeframe market-structure and automatic Fibonacci retracement framework designed for discretionary traders. It does not generate BUY/SELL signals or manage trades. Its purpose is to organize higher-timeframe directional context, confirmed chart-timeframe structure breaks, and retracement levels into one clean workflow.
HOW IT WORKS
1. Adaptive bias timeframe
By default, the script automatically assigns a higher bias timeframe according to the active chart timeframe. Examples include M5 -> H1 and M15 -> H4. A Custom mode is also available for users who prefer a different higher-timeframe relationship.
2. Confirmed higher-timeframe bias
The bias engine reads confirmed higher-timeframe structure. An optional Structure + EMA mode can require both structural direction and EMA alignment. The higher-timeframe values are based on completed higher-timeframe bars to reduce discrepancies between historical and realtime behavior.
3. Valid chart-timeframe BOS
The script displays only BOS events that meet its structural rules. A valid BOS requires a confirmed close through a confirmed swing that has not already been counted as broken, alignment with the active higher-timeframe bias, and a valid opposite structural swing after the broken swing to serve as the impulse origin.
4. BOS-origin impulse tracking
After a valid BOS, the script tracks the continuing impulse rather than fixing the Fibonacci endpoint immediately. The impulse extreme remains dynamic until price produces the configured confirmed retracement. This reduces arbitrary Fibonacci anchoring while an impulse is still extending.
5. Automatic Fibonacci lock
When the retracement threshold is confirmed, the impulse is locked and the script plots four configurable Fibonacci retracement levels. Defaults are 0.618, 0.705, 0.790, and 0.886. The chart displays ratio values only, without prices.
6. Fibonacci history
Completed or superseded Fibonacci structures can be retained as bounded historical references. Users can choose how many recent Fibonacci structures remain visible. Historical levels are visually muted so the active structure remains easy to identify.
7. Compact dashboard
The dashboard summarizes the chart-to-bias timeframe mapping, confirmed higher-timeframe bias, current structural direction, Fibonacci state, and retained Fibonacci history.
HOW TO USE IT
- Apply the indicator to the timeframe on which you want to analyze structure.
- Leave Bias timeframe mode on Auto for the default multi-timeframe mapping, or select Custom if your framework uses a different higher timeframe.
- A bullish or bearish BOS is displayed only when the script's validity conditions are satisfied.
- After the post-BOS impulse retraces by the configured lock threshold, the Fibonacci structure becomes fixed and its retracement levels are displayed.
- Use the Fibonacci levels as location/context within your own trading plan. The script intentionally does not define entries, stop losses, take profits, or expected performance.
KEY SETTINGS
- Bias timeframe mode: Auto or Custom.
- Bias method: Structure or Structure + EMA.
- Bias and chart-structure pivot sensitivity.
- Use newest valid BOS: allows a newer valid BOS to supersede the current structure.
- Structure invalidation: close or wick beyond the impulse origin.
- Fibonacci lock retracement.
- Four customizable Fibonacci ratios.
- Optional minimum impulse size measured in ATR.
- Fibonacci history count.
- Optional bias/chart swing reference levels.
- BOS, Fibonacci, dashboard, and alert visibility controls.
ORIGINALITY AND PROTECTED-SOURCE RATIONALE
BOS, market structure, and Fibonacci retracement are established concepts and are not claimed as original inventions. The original contribution of this script is the specific workflow and implementation that connects adaptive higher-timeframe bias, valid BOS filtering, post-break structural-origin selection, dynamic impulse tracking, confirmed retracement locking, bounded Fibonacci lifecycle/history, and a chart-focused visual state model. The source is protected to preserve this implementation while allowing the community to use the indicator freely.
LIMITATIONS
- Confirmed pivots require right-side bars before a swing is known. This means structure detection intentionally has confirmation delay.
- The higher-timeframe bias uses completed higher-timeframe information, so it will react more slowly than an indicator using an unfinished higher-timeframe candle.
- The automatic timeframe mapping is a practical default, not a universal rule. Different instruments or trading plans may require Custom mode.
- BOS validity depends on the selected pivot sensitivities. Very low settings can identify more minor structure; higher settings can identify fewer but broader swings.
- Fibonacci levels describe retracement location only. They do not establish that price will reverse from a level.
- The script does not calculate trade entries, stop losses, take profits, win rate, profit factor, or profitability.
- A newer valid BOS can replace the active structure when that option is enabled.
- Market behavior varies by instrument, timeframe, volatility regime, session, data feed, and execution environment.
Use the indicator as an analytical framework and validate its behavior on the instruments and timeframes relevant to your own process before relying on it for live decisions.
BAHASA INDONESIA
JFX Structure Fib adalah framework market structure multi-timeframe dan automatic Fibonacci retracement untuk discretionary trader. Indikator ini tidak memberikan sinyal BUY/SELL dan tidak mengatur posisi trading. Tujuannya adalah menyusun higher-timeframe bias, valid chart-timeframe BOS, dan retracement Fibonacci dalam satu workflow yang bersih dan mudah dibaca.
CARA KERJA
1. Adaptive bias timeframe
Secara default indikator memilih bias timeframe yang lebih tinggi berdasarkan timeframe chart aktif. Contohnya M5 -> H1 dan M15 -> H4. Mode Custom tetap tersedia jika pengguna ingin menggunakan hubungan timeframe yang berbeda.
2. Confirmed higher-timeframe bias
Bias membaca structure dari higher timeframe yang sudah confirmed. Mode Structure + EMA dapat digunakan untuk meminta alignment tambahan dari EMA. Data higher timeframe berasal dari candle yang sudah selesai agar perilaku historical dan realtime lebih konsisten.
3. Valid chart-timeframe BOS
Indikator hanya menampilkan BOS yang memenuhi aturan structure. BOS harus terjadi melalui confirmed close pada confirmed swing yang belum pernah dihitung sebagai broken, searah dengan higher-timeframe bias, serta memiliki opposite structural swing yang valid setelah swing yang di-break untuk menjadi origin impulse.
4. BOS-origin impulse tracking
Setelah valid BOS, indikator tetap mengikuti extreme impulse selama impulse masih berkembang. Endpoint Fibonacci belum langsung dikunci. Extreme baru dikunci setelah terjadi confirmed retracement sesuai threshold yang dipilih.
5. Automatic Fibonacci lock
Setelah retracement threshold terkonfirmasi, Fibonacci dikunci dan empat retracement level ditampilkan. Default: 0.618, 0.705, 0.790, dan 0.886. Chart hanya menampilkan angka ratio Fibonacci tanpa harga.
6. Fibonacci history
Fibonacci yang telah selesai atau digantikan dapat disimpan sebagai historical reference. Jumlah history dapat diatur oleh pengguna dan tampilannya dibuat lebih redup daripada Fibonacci aktif.
7. Compact dashboard
Dashboard menampilkan mapping chart timeframe ke bias timeframe, confirmed HTF bias, current structure, status Fibonacci, dan jumlah history yang sedang disimpan.
PENGGUNAAN
- Pasang indikator pada timeframe yang ingin digunakan untuk membaca structure.
- Gunakan Auto untuk mapping timeframe default, atau Custom jika menggunakan framework multi-timeframe sendiri.
- BOS bullish/bearish hanya muncul jika seluruh aturan validasinya terpenuhi.
- Setelah impulse pasca-BOS mengalami retracement sesuai threshold, Fibonacci dikunci dan level retracement ditampilkan.
- Gunakan Fibonacci sebagai area location/context dalam trading plan Anda sendiri. Indikator sengaja tidak menentukan entry, stop loss, take profit, atau ekspektasi hasil trading.
ORIGINALITAS DAN ALASAN SOURCE DILINDUNGI
BOS, market structure, dan Fibonacci retracement merupakan konsep yang sudah umum dan tidak diklaim sebagai penemuan baru. Nilai original script ini terletak pada workflow dan implementasinya: adaptive HTF bias, valid BOS filtering, pemilihan structural origin setelah break, dynamic impulse tracking, confirmed retracement lock, bounded Fibonacci history, serta visual state yang dibangun menjadi satu framework. Source dilindungi untuk menjaga implementasi tersebut sementara indikator tetap dapat digunakan gratis oleh komunitas.
KETERBATASAN
- Confirmed pivot membutuhkan sejumlah candle di sisi kanan sehingga swing diketahui dengan delay yang disengaja.
- Bias HTF menggunakan candle HTF yang sudah selesai sehingga lebih lambat dibandingkan metode yang membaca unfinished HTF candle.
- Auto timeframe mapping adalah default praktis dan bukan aturan universal.
- Sensitivitas BOS tergantung pada pivot settings yang digunakan.
- Fibonacci hanya menunjukkan lokasi retracement dan tidak menjamin reversal.
- Indikator tidak menghitung entry, SL, TP, win rate, Profit Factor, atau profitabilitas.
- Valid BOS yang lebih baru dapat menggantikan active structure jika opsi tersebut diaktifkan.
- Hasil visual dan perilaku structure dapat berbeda menurut instrument, timeframe, volatility regime, session, dan data feed.
Gunakan indikator sebagai analytical framework dan lakukan validasi pada instrument serta timeframe yang sesuai dengan proses trading Anda sebelum menggunakannya dalam keputusan live.
Indikator

Elsea Heat Band & MAsElsea Heat Band & MAs is a moving-average utility: it draws the medium-term band (also known as the Bull Market Support Band / Bear Market Resistance Band, credit: Benjamin Cowen) alongside a set of conventional daily and weekly moving averages, on a single overlay with independent toggles for each group.
There is nothing novel in the calculations here. Every line is a standard SMA or EMA at a conventional length, and the cross detection is the standard 50/200 golden and death cross. The script exists to put a specific combination on one chart with consistent colouring, per-group toggles and end-of-series labels, rather than to introduce a new method. It is open-source for that reason.
WHAT IT DRAWS
Heat Band — a 140-day SMA and a 147-day EMA (roughly twenty and twenty-one weeks of trading days) with a shaded fill between them. Using both an SMA and an EMA at slightly offset lengths gives a band rather than a line, blending flat-window and recency weighting.
Daily MAs — 50-day and 200-day SMAs, with star and skull markers where the 50 crosses the 200 in either direction.
Weekly MAs — 50, 100, 200 and 300-week SMAs, computed as 350, 700, 1400 and 2100 daily bars, coloured on a single blue ramp so the ordering is readable at a glance.
Labels — at the right edge of the series, each visible average is labelled with its length.
HOW TO USE IT
Each of the three groups toggles independently, so the script can serve as a Heat Band overlay alone, a conventional MA set alone, or all of it together.
The band is medium-term structure: price above it has been above its twenty-week baseline, price below it has not. The weekly averages are long-horizon reference levels, most useful on instruments with many years of history. The 50/200 cross is included because it is widely watched, not because it is predictive — it is a lagging construction by definition, and the markers are there to locate the event on the chart rather than to endorse it.
LIMITATIONS
All averages are computed from daily closes regardless of chart timeframe, so they are stepped on intraday charts and update once per day.
Weekly averages are approximated as multiples of seven daily bars, not calendar weeks. On instruments that do not trade seven days a week the effective calendar period is longer than the label suggests. This is intended for consistency with the daily series, but the labels are approximate.
The longest average needs roughly 2100 daily bars before it produces a value. On instruments with less history it will not plot.
Moving averages lag by construction, and the longer ones lag substantially. Nothing here identifies a turn as it happens.
The 50/200 cross is a widely known lagging signal with no edge implied by its inclusion.
This is an analysis tool. It does not predict direction and produces no buy or sell recommendations.
Indikator

Adaptive Market Regime MapAdaptive Market Regime Map is a chart-overlay context tool that separates directional conditions from volatility conditions. It is designed to help traders describe the current market environment without presenting buy or sell signals.
WHAT IT SHOWS
The indicator organizes market context into two layers:
• Directional regime: Bullish, Bearish, or Neutral
• Volatility state: Compressed, Normal, or Expanding
A layered corridor is plotted around an adaptive equilibrium line. Its width responds to ATR, while its color and intensity reflect the current directional regime and measured trend strength.
In bullish conditions, the lower half of the corridor is emphasized as support context. In bearish conditions, the upper half is emphasized as resistance context. These areas are descriptive context zones, not fixed support or resistance levels and not trade-entry signals.
HOW IT WORKS
The directional engine combines:
• the distance between a fast EMA and the equilibrium EMA, normalized by ATR;
• the slope of the equilibrium EMA, also normalized by ATR;
• path efficiency, calculated from net movement relative to total movement over the selected window.
The resulting directional score is bounded and compared with the Trend Threshold to classify the market as Bullish, Bearish, or Neutral.
The volatility engine compares current ATR with a moving baseline of ATR:
• below the Compression Ratio: Compressed
• above the Expansion Ratio: Expanding
• between both thresholds: Normal
The dashboard displays the current regime, normalized strength, volatility state, and the number of bars spent in the current directional regime.
HOW TO USE IT
Use the map as a context filter alongside your own analysis:
• Bullish indicates persistent positive directional structure.
• Bearish indicates persistent negative directional structure.
• Neutral indicates that directional strength is below the selected threshold.
• Compressed indicates volatility below its recent baseline.
• Expanding indicates volatility above its recent baseline.
The corridor can also provide visual context around the equilibrium line. Price moving outside the corridor does not, by itself, constitute a breakout or reversal signal.
INPUTS
Regime Engine
• Fast Length: Period of the faster EMA used in directional separation.
• Equilibrium Length: Period of the central EMA used for the corridor.
• Slope Lookback: Bars used to measure the equilibrium slope.
• Efficiency Length: Window used to compare net movement with total path movement.
• ATR Length: ATR period used for normalization and corridor width.
• Volatility Baseline: Window used for the rolling ATR baseline.
• Spread Weight and Slope Weight: Relative contribution of both directional components.
Classification
• Trend Threshold: Minimum absolute directional score required for a bullish or bearish regime.
• Compression Ratio: ATR-to-baseline ratio below which volatility is classified as compressed.
• Expansion Ratio: ATR-to-baseline ratio above which volatility is classified as expanding.
Regime Corridor
• Inner Zone ATR and Outer Zone ATR: Width of the two corridor layers.
• Show Outer Context Zone: Displays or hides the lighter outer layer.
• Show Equilibrium Line: Displays or hides the central line.
• Color Transition Bars: Controls how quickly a new regime color reaches full intensity. This affects presentation only.
• Tint Candles By Regime and Tint Chart Background: Optional visual context, disabled by default.
State Changes
• Label Confirmation Bars: Number of persistent state bars required before a label is displayed.
• Same-Label Minimum Distance: Minimum distance between labels of the same type.
• Neutral labels are optional and disabled by default.
ALERTS
The script provides five alert conditions:
• Market Regime Changed
• Bullish Regime Started
• Bearish Regime Started
• Compression Started
• Expansion Started
Alerts are confirmed on bar close by default. Label confirmation is separate from alert timing, so the optional label delay does not delay the corresponding regime alert.
REALTIME AND REPAINTING BEHAVIOR
The script does not use higher-timeframe requests, future data, offsets into the future, or lookahead logic. Historical classifications are calculated from information available on each bar.
On an open realtime bar, price, ATR, the corridor, and the displayed regime can change as new ticks arrive. With Confirm Alerts On Bar Close enabled, alerts trigger only after the bar is confirmed. This is the recommended setting for stable alert behavior.
LIMITATIONS
• This is an indicator, not a strategy or automated trading system.
• It does not predict future price movement.
• Bullish and bearish states are contextual classifications, not trade recommendations.
• The corridor provides volatility-scaled context and does not define fixed support or resistance levels.
• Results depend on symbol, timeframe, data quality, and selected parameters.
• Very short history can produce a warmup state until all calculations are available.
• Non-standard chart types use synthetic chart prices and may behave differently from standard OHLC charts.
ORIGINALITY
This script is an original implementation. Its distinctive contribution is the combination of an ATR-normalized directional engine, path-efficiency weighting, separate volatility classification, asymmetric regime-context zones, and a compact state dashboard in one causal chart overlay. Indikator

ATR + True RTH Day RangeRTH Range & Daily ATR Monitor
Track the regular trading session’s price range and compare it with the daily Average True Range (ATR), using a compact panel on your chart.
Panel Values
• ATR(D): Daily ATR with a configurable lookback, set to 14 periods by default.
• Range RTH: The difference between the highest and lowest prices recorded during the regular session.
• Used: The RTH range expressed as a percentage of daily ATR.
Used = RTH Range ÷ Daily ATR × 100
For example, a session range of 3.87 and a daily ATR of 6.22 produces approximately 62.23%. The calculation uses unrounded values.
Regular Session Only
The session range uses standard one-minute candles from the regular-session data feed, filtered to 9:30 a.m.–4:00 p.m., Monday through Friday, in America/New_York time. Daylight saving time is handled automatically.
Premarket and after-hours prices are excluded from the range calculation, whether extended hours are visible on the chart or hidden.
The daily ATR also uses an explicitly selected regular-session feed.
Session Tracking
At the first available RTH candle of each new session, the indicator saves the preceding session’s high and low, then resets the current range.
During RTH, the range expands as new highs or lows form. Outside RTH, the panel retains the latest available regular-session values until the next session begins.
Panel Colors
The background compares the latest RTH price with the preceding RTH session’s range:
• Green: Above the previous session’s high.
• Red: Below the previous session’s low.
• Gray: Inside the previous session’s range, equal to either boundary, or without sufficient previous-session data.
Extended-hours price movements do not change this directional comparison.
Display Options
• Always: Displays the latest available RTH information, including after the session ends.
• Only Today: Displays the panel only when its RTH data belongs to the current New York calendar date. Before today’s RTH session begins, the panel remains hidden.
Understanding the ATR Percentage
The percentage compares the session’s high-to-low range with daily ATR. It does not measure the total distance traveled by price or predict how much movement remains.
Values above 100% are possible when the session range exceeds the ATR.
ATR uses True Range, which accounts for gaps relative to the previous daily close. Range RTH measures only the session’s high minus its low. These are related but different measurements.
Timeframes and Updates
Designed for intraday charts, the indicator calculates the session range from one-minute data rather than the visible chart candles. Update timing depends on the chart timeframe and available data.
The daily ATR includes the developing daily candle and can change during the regular session. It is not a fixed previous-day ATR reference.
Purpose
A compact tool for monitoring regular-session range expansion, daily volatility, and price position relative to the previous RTH session. It does not generate trade entries, execute orders, or provide backtest results. Indikator

Composite Institutional Moving Average (CIMA)Composite Institutional Moving Average (CIMA)
Overview
The Composite Institutional Moving Average (CIMA) is a high-conviction cost-basis anchor designed to replace primitive volume-weighted indicators. Standard VWMAs treat every volume tick identically regardless of intent. CIMA evaluates the quality and composition of institutional order flow behind each bar.
By anchoring price action to a macro 126-period lookback, CIMA constructs a dynamic baseline weighted by intrabar cumulative volume delta (CVD) and stealth limit-order absorption.
Core Formula & Architecture
Rather than relying on raw volume alone, CIMA calculates a dynamic Composite Weight for every single candle using three distinct market mechanics:
$$\text{Composite Weight} = \vert{}\text{CVD Factor}\vert{} \times \text{Absorption Weight} \times \text{Volume}$$
* Order Flow Delta Proxy (cvdFactor): Measures intrabar buying versus selling pressure based on close position relative to high/low wicks. Directional imbalances pull the baseline toward true aggressive market orders.
* Stealth Absorption Efficiency (absorptionWeight): Measures total volume relative to candle range ($\text{volume} / \text{spread}$). Heavy volume printed inside narrow candle ranges highlights passive limit-order absorption (smart money accumulating or distributing without letting price move).
* 126-Period Macro Baseline Anchor: Applies the Composite Weight across a 126-period lookback using double-weighted VWMA logic ($\text{close} \times \text{compositeWeight}$). The 126-period setting represents exactly two quarters (6 months / semi-annual) of trading data on daily charts—the core timeframe used by institutional fund managers and execution algorithms to track semi-annual cost basis. On intraday charts, 126 bars provides a deep structural sample size that filters out high-frequency noise, ensuring the line only shifts when major institutional volume shelves are formed.
How to Read the Raw Baseline
Because CIMA remains un-smoothed, the indicator creates sharp vertical steps and flat horizontal shelves:
* Vertical Steps: Highlight points where sudden institutional volume injections or aggressive order sweeps occurred.
* Flat Horizontal Shelves: Function as dynamic Institutional Support & Resistance Floors. Expect smart money to defend these cost-basis shelves on the first retest.
* Trend Bias:
* Price > CIMA (Bright Green): Institutional buyers control the macro cost basis. Look for long continuation setups off CIMA shelf retests.
* Price < CIMA (Bright Red): Institutional sellers control the macro cost basis. Look for short continuation setups off CIMA shelf retests.
Key Features & Toggle Options
* Enable Volatility Bands ($\pm\sigma$): Displays optional standard deviation channels derived from the CIMA baseline to identify objective overbought/oversold value area extremes (Disabled by default for a clean chart).
* Multi-Timeframe (MTF) Engine: Toggle higher timeframe execution (e.g., Daily CIMA overlaid on a 15m chart) without code lag or repainting errors.
Default Inputs
* Institutional Lookback Length: 126 (Optimized for semi-annual structural anchoring).
* Enable Order Flow Delta Factor: True
* Enable Stealth Absorption Factor: True
* Best Applied To: Equities, Crypto, Futures, and Forex across any timeframe.
Disclaimer
This indicator is designed for educational and informational purposes only and does not constitute financial or investment advice. Past performance is no guarantee of future results. Financial market trading involves substantial risk of loss, and traders should perform their own independent technical analysis and manage their risk strictly before executing trades. Indikator

Oleg AlgoWelcome to Oleg Algo, a heavy-duty, multi-layered statistical mean-reversion and trend-following strategy designed for traders who like to scale into volatility like a crazy. This script allows you to harvest profits from market extremes using dynamic gap thresholds, aggressive scale-in martingale sizing, and built-in risk boundaries.
Key Features
Dual Strategy Modes: Switch effortlessly between Reversal Mode (catching extreme overextended moves by fading the gap) and Trending Mode (riding the momentum wave).
Flexible Band Calculations: Measure market boundaries using either ATR (Average True Range) for pure volatility-based distance or Bollinger Bands (Standard Deviations) for statistical dispersion.
Scale-In Martingale System: Automatically scale into positions as the market moves against you. Choose between an exponential Multiplier or a linear Quantity Step to average down like a true strategist.
Win/Loss Outcome Sizing: Optionally adjust your base position size up or down following a win or loss to dynamically manage your exposure streak.
Time Windows: Built-in EST market-session filters that strictly lock your trading window and automatically flatten all open positions before the closing bell rings.
Max Dollar Loss Circuit Breaker: An absolute safety switch that liquidates everything if unrealized open drawdowns cross your predefined dollar risk threshold.
Input Guide
Strategy Execution Mode: Choose whether we hunt the reversal when price crashes hard away from the line, or follow the big bear/bull wave.
Trade Direction: What kind of hunt we do—go both ways like a smart trader, or stick strictly to long-only or short-only.
Moving Average Type & Length: Pick your line flavor (SMA, EMA, HMA).
Band Calculation & Initial Gap: Define how far price must run away from the baseline before enter trade.
Scale-In Step & Martingale Settings: Control how deep price must drop before adding more size, and how aggressively each stacked layer grows.
Take Profit & Stop Loss Multipliers: Set your distance for collecting big feasts when the average entry price bounces back, alongside the emergency parachute stop loss.
Prop Mode & Start/End Times: Lock your trading strictly inside capitalist working hours so you never violate risk rules or hold overnight risk. Strategi

Cross-Asset Regime OscillatorA daily 0–100 gauge of US market risk appetite, built from five cross-asset
signals rather than price alone. It answers one question: is the broader
tape leaning risk-on or risk-off right now?
METHOD
Each signal is z-scored against its own trailing distribution on daily bars
("Lookback (bars)" input, default 252 ≈ one trading year, range 60–1000),
clamped to ±3 so no single blown-out signal dominates, averaged with equal
weight, then mapped linearly onto 0–100. The lookback always counts daily
bars, whatever the chart timeframe.
SIGNALS (all free-tier data, no premium feeds)
1. Credit — HYG/IEF: high yield vs. Treasuries. Higher = risk-on.
2. Equity volatility — VIX, inverted. Lower vol = risk-on.
3. Cyclical vs. defensive — XLI/XLU: industrials vs. utilities. Higher = risk-on.
4. Yield curve — US10Y minus US03MY (10-year minus 3-month). Steeper = risk-on.
5. US dollar — DXY, inverted. Weaker dollar = risk-on.
READING IT
0–20 RISK-OFF · 20–40 MILDLY OFF · 40–60 NEUTRAL · 60–80 MILDLY ON · 80–100 RISK-ON
The line is colored by band, with dotted guides at 20/40/60/80, and the
corner readout shows the current band and score. Enable "Show signal
breakdown" to see each signal's clamped z-score and the composite in the
corner table — useful for seeing WHICH channel is driving a move (e.g. credit
still positive while vol and cyclicals roll over). "Color chart bars by
regime" paints the price bars with the band color.
MISSING DATA
A signal that has not loaded, has fewer daily bars than the lookback, or is
flat over the lookback is skipped, and the composite averages the rest. The
readout warns when fewer than 3 of the 5 signals have data.
NON-REPAINTING
Every value is the clamped z-score of the last CONFIRMED daily bar, computed
inside the daily security context. The one-bar offset makes the request
confirmed-only, so the forming daily bar never leaks in and values never
change on refresh. Each day's value is aligned to the start of the daily
period, so the reading is identical on every supported chart timeframe.
During a live session the reading reflects the prior session's close.
SUPPORTED TIMEFRAMES
Daily and intraday charts. On any chart timeframe above daily (weekly,
monthly, multi-day) the script stops with a runtime error by design:
"Cross-Asset Regime Oscillator is a daily indicator. Use a 1D or lower
chart timeframe." It is a daily oscillator, and above-daily requests cannot
be pinned reliably to the same confirmed session.
LIMITATIONS
This is a deliberately simple, transparent construction: equal weights, one
lookback, five signals. It describes current conditions; it does not
forecast. Short lookbacks react fast and can whipsaw. Not investment advice. Indikator

ATK / DEF Multi-Session Volatility DynamicsATK / DEF — Multi-Session Volatility Dynamics is a multi-session market analysis framework built around three market sessions:
**Asia, Europe, and America**
The framework separates market activity by session and combines session identification, price structure, volume-based conditions, liquidity classification, volatility state, and visual reference areas within a unified chart interface.
## Core Features
* Asia Session
* Europe Session
* America Session
* Independent session configuration
* Configurable session start and end times
* Multiple timezone options
* Session-specific visual identification
* Volume-based market condition classification
* Liquidity level classification
* Volatility state classification
* Candle body-to-range measurement
* Session-based Order Block reference areas
* Session-specific Order Block labels
* Adjustable Swing detection parameters
* Configurable display range
* Progress and status table
* Chart status-line measurements
## Multi-Session Framework
The indicator separates three configurable market sessions:
**Asia → Europe → America**
Each session maintains its own identity on the chart, allowing the displayed structures and calculated conditions to remain associated with their corresponding session.
Session settings can be independently enabled or disabled, with configurable opening and closing times.
## Session-Based Market Analysis
Market conditions are evaluated within the configured session environment using a combination of internal calculations based on:
* Volume
* Price position
* Candle body size
* Total candle range
* ATR
* Historical volume averages
* Historical ATR averages
The framework displays calculated states directly on the chart without converting them into trading signals.
## Liquidity Classification
The indicator includes a volume-based liquidity classification using relative volume conditions.
The displayed states are:
* **High Liquidity**
* **Medium Liquidity**
* **Low Liquidity**
These classifications are generated from the indicator's internal volume-ratio calculation and are provided as analytical reference values.
They do not represent a definitive measurement of market liquidity or capital flow.
## Volatility State
Volatility conditions are classified through an ATR-based comparison with its historical average.
The displayed states are:
* **Expanding**
* **Ranging**
* **Contracting**
These states represent the calculated volatility condition of the current data relative to the configured historical reference.
## Market Condition Classification
The framework includes internal classifications such as:
* **Accumulation**
* **Distribution**
* **Shakeout**
* **Normal**
These labels are generated from the indicator's defined combinations of relative volume, candle position, and candle-body conditions.
They are calculation-based analytical classifications and should not be interpreted as definitive identification of institutional activity or market intent.
## Session-Based Order Block Reference
The indicator provides visual reference areas associated with the currently identified market session.
Session labels include:
* **ASIAN**
* **LONDON**
* **NEWYORK**
The session identity is displayed together with the corresponding reference area.
The component is provided strictly for analytical reference. Displayed areas are generated by the indicator's internal calculation framework and do not represent confirmed, absolute, or universally valid classifications.
## Visual Analysis
The chart interface combines session information and calculated market conditions into a visual structure.
## Parameters
Different instruments, chart timeframes, session definitions, timezones, and parameter settings may produce different calculated results. The framework is therefore designed with configurable parameters rather than a single fixed configuration.
## Analytical Purpose
ATK / DEF — Multi-Session Volatility Dynamics is designed **solely for market observation and analysis**.
The indicator does not provide guince, or tra recommendations.
All displayed classifications, session references, measurements, and visual structures are generated from the indicator's internal calculation logic and the user's current parameter settings.
The displayed information is intended for analytical reference only.
**Market analysis only.**
Indikator

Compression Clock (Axiom Multi-TF Adaptive)**Compression Clock (Axiom Multi-TF Adaptive) — Volatility Regime & State Age**
---
### **Description**
#### **Overview**
The **Compression Clock** is a non-directional volatility regime indicator based on the **Axiom quantitative research framework**. Instead of attempting to forecast market direction, it isolates the temporal dimension (**WHEN**) by measuring the duration and depth of volatility compression across any resolution.
Markets do not transition from quiet to expansion instantaneously; they exhibit a survival-rate decay where prolonged low-volatility states exponentially elevate the baseline probability of large physical displacement. The Compression Clock standardizes this process by normalizing rolling volatility and volume percentiles against a physical-time benchmark.
---
#### **Mathematical & Architectural Core**
1. **Dual-Feature Quiet Filter**:
* Evaluates rolling True Range ($\text{ATR}_{24}$) and Traded Volume ($\text{SMA}_{24}$) scaled against an intraday 24-hour physical window:
$$\text{ATR}_{\text{rolling}} = \text{SMA}(\text{TR}, N_{\text{bars}}), \quad \text{Vol}_{\text{rolling}} = \text{SMA}(\text{Volume}, N_{\text{bars}})$$
* Computes the rolling percentile rank of both features across a rolling 180-day baseline distribution.
* A bar qualifies as **Quiet** if and only if both features sit simultaneously in the lower tercile:
$$\text{Quiet}_t = \mathbb{I}\left(\text{Rank}(\text{ATR}_t) \le 33.33\%\right) \land \mathbb{I}\left(\text{Rank}(\text{Vol}_t) \le 33.33\%\right)$$
2. **Physical-Time Normalization**:
* TradingView indicators often suffer from timescale distortion when hardcoding bar-based periods across multiple resolutions.
* This script dynamically translates resolution minutes ($M_{\text{tf}}$) into actual **physical hours**. Whether applied to a 5-minute, 30-minute, or 4-hour chart, the Y-axis consistently represents **elapsed physical hours of continuous compression**.
3. **Regime State Categorization**:
* **S0 (ACTIVE)**: Market is expanding or fluctuating outside the quiet threshold. Compression age resets to 0.
* **S1 (QUIET, < 24 Hours)**: Early-stage compression. Natural volatility dampening without statistical hazard elevation.
* **S2 (MATURE, 24 – 72 Hours)**: Statistically mature compression. Historical survival analysis indicates a significant elevation in large-displacement probability.
* **S3 (DEEP, > 72 Hours)**: Extreme volatility exhaustion. Persistent absence of dispersion indicating imminent volatility expansion.
---
#### **How to Use (Methodological Discipline)**
* **Decoupled Architecture**:
* The Clock dictates **WHEN** (volatility environment), not **WHAT** (direction) or **HOW** (execution).
* Never treat an S2/S3 state as a directional trade signal. A compression state is directionally agnostic—it warns of imminent displacement hazard, but the direction must be governed by external momentum or structural acceptance/rejection models.
* **Multi-Timeframe Scope**:
* Low-scale compression (e.g., 5m/15m entering S3) reflects localized intraday order book exhaustion. It does **not** override a higher-timeframe S0 state. For macro regime filtering, monitor higher physical resolutions (such as 4H).
* **Buffer Safety**:
* Includes a built-in 4,900-bar memory clamp to prevent buffer overflow exceptions on ultra-low timeframes while maintaining valid causal percentile rankings.
---
#### **Inputs**
* **Rolling Feature Duration (Hours)**: Physical length of the short-term smoothing window (Default: 24h).
* **Lookback Days (Days)**: Historical distribution window for empirical percentile rankings (Default: 180 days).
* **Quantile Rank Threshold (%)**: Cutoff for the quiet regime (Default: 33.333% — bottom tercile). Indikator

Hurst Exponent Regime [RC Tools]RC Tools — Hurst Exponent Regime
────────────────────────────────────────────────────────────────────
█ OVERVIEW
Most regime tools ask "is price trending right now." This one asks a more fundamental question: does this market's statistical character currently reward trend-following or mean-reversion? It applies the Hurst Exponent — a statistic originally developed to study Nile river flood records — via rescaled-range analysis, to classify the market into one of three long-memory regimes.
█ WHAT IT DOES
Estimates the Hurst Exponent (H) over a rolling window and classifies each confirmed bar as Trending (persistent), Mean-Reverting (anti-persistent), or Random Walk (no memory). Colours the chart background accordingly, plots both the smoothed and raw H line in a dedicated pane against static threshold lines and the 0.5 "true random walk" reference, and shows a table with the current state, how long price has been in it, and historical base rates (average forward return and win rate) for each state.
█ THE THEORY BEHIND IT
H.E. Hurst developed this statistic in the 1950s while studying how to size reservoirs for the Nile, where flood years tended to cluster rather than arrive randomly — a property he needed to measure and design around. The same statistic applies to any time series: it measures whether large values tend to be followed by more large values of the same sign (persistence, H > 0.5), whether they tend to reverse (anti-persistence, H < 0.5), or whether the series has no memory at all (H = 0.5, a true random walk).
Applied to price, this is a genuinely different question from "is this asset trending." A trend-following indicator can flag a trend within a market whose underlying character is actually mean-reverting — in which case that trend is more likely to be a temporary deviation that reverses. Knowing which regime you're in tells you which family of tools (trend-following vs. mean-reversion) is statistically better suited to current conditions, independent of what any single trend or oscillator reading says right now.
█ HOW IT IS CALCULATED
1. Take log returns over the window.
2. Build the cumulative deviation-from-mean series within the window, in chronological order, and take its range (maximum minus minimum) — this is R.
3. Compute S, the window's standard deviation of returns.
4. Apply Hurst's classic empirical relation: R/S is approximately equal to (window length / 2) raised to the power H. Rearranging gives H = ln(R/S) / ln(window length / 2).
5. Optionally smooth H (the raw rescaled-range estimate is noisy bar-to-bar by construction).
6. Classify: H above the Trending threshold (default 0.55) → Trending. H below the Mean-Reverting threshold (default 0.45) → Mean-Reverting. Otherwise → Random Walk.
Classification occurs ONLY on confirmed bar close — the plotted H, the background colour and the table all update together, so nothing here can disagree mid-bar or flip back and forth as the current bar forms.
Note: this is a single-scale rescaled-range estimate using Hurst's classic empirical formula, not a full multi-scale regression across many window sizes. It is a practical, computationally efficient approximation, not a research-grade estimator — treat it as a useful compass, not a precise measurement.
█ SETTINGS & CONFIGURATION
• Source (default close)
• Window Length (default 100) — longer windows give a more stable estimate but react slower to a genuine regime change
• Trending / Mean-Reverting Thresholds (default 0.55 / 0.45) — the H values beyond which a regime is declared; the gap between them is the "Random Walk" zone
• Smoothing Length and Type (default 5-period EMA) — reduces the raw estimate's bar-to-bar noise
• Forward Return Window (default 20 bars) — the horizon used for the base-rate table
• Table visibility, position and colours are fully configurable; the main-chart background painting can be toggled off if you only want the statistics pane
█ HOW TO USE IT
Use it to decide which family of tools to trust right now, not as a standalone entry signal. Example: if you run a mean-reversion system, check whether it has historically performed better when this tool reads Mean-Reverting than when it reads Trending; a trend-following system should show the opposite pattern. Check the base-rate table's sample count before treating any single state as meaningfully predictive.
Works on any asset and timeframe with sufficient history for the Window Length. Best used on daily and above, where regime persistence is greatest and the R/S window has enough independent observations to be meaningful.
█ LIMITATIONS
• This is a SINGLE-SCALE rescaled-range estimate, not a full multi-scale regression across many window sizes — a practical approximation, not a research-grade estimator.
• H describes the market's statistical character over the window — it does NOT identify direction. A "Trending" reading means persistence is likely, not which way.
• The R/S statistic assumes no major structural breaks within the window; a sudden regime shift partway through the window can distort the estimate until it fully rolls off.
• Shorter windows react faster but produce noisier, less reliable H estimates; longer windows are more stable but slower to reflect a genuine regime change.
• Historical base-rate stats need a meaningful sample count (check N) before being trusted, especially for the less common states.
• This script does NOT repaint. All classification updates on confirmed bar close only.
█ DISCLAIMER
For educational and informational purposes only. Nothing here is financial advice. Past behaviour of any regime state does not indicate future results. Trade at your own risk.
Indikator

VIX Term StructureVIX at 14 does not tell you whether volatility is cheap. The curve does.
A single VIX print is one number on one horizon. What actually tells you something is the shape across horizons: whether the market is asking more for protection next week than for protection in three months, or less. That shape is where the information is, and it is free public data that almost nobody puts on a chart.
This plots the four CBOE volatility indices as a curve you can read at a glance -- 9-day, 30-day, 3-month and 6-month -- and reduces it to the one ratio that matters, 30-day over 3-month.
Below 1, the curve is in contango. Near-dated volatility is cheaper than deferred, which is the normal state and roughly two thirds of all trading days. The lower the ratio, the steeper the curve, and the calmer the market thinks the next month will be relative to the next quarter.
Above 1, the curve is inverted, or in backwardation. Near-dated volatility is bid over deferred, which means the market is paying up for protection it needs soon rather than eventually. That is a stress reading and it does not persist for long.
The dashboard shows each tenor, both ratios, and a plain verdict: STEEP CONTANGO, CONTANGO, or BACKWARDATION. The 9-day over 30-day ratio sits alongside it as the very front of the curve, which moves first and moves hardest.
What the shape is actually telling an option seller. A rich premium reading and a steep contango curve are the same market saying two things that agree: insurance is expensive relative to what has happened, and the market does not expect that to change soon. A rich premium reading against an inverted curve is a different animal. The premium is rich because something is coming, and selling into it is selling insurance to somebody who knows they need it. The IV-minus-RV gap looks identical in both cases. The curve is what separates them.
There is a trap on the other side too, and it is the more common one. The urge to sell premium is strongest when the tape is calm, and a calm tape is exactly what a steep contango curve looks like from the inside. Steep contango means the front is cheap, and cheap is the least you will ever be paid to take the risk. The moment selling feels safest is the moment it pays least.
Pairing. This answers a question my other two volatility scripts do not. Vol Premium Gauge answers whether you are paid, by comparing implied against realized. Expected Move Bands answers which strike, by drawing the one-standard-deviation range. Term structure answers whether the premium is there for a good reason or a bad one. Paid, why, where -- three different questions, three different reads.
Scope. Equity indices only. There is no term structure for crypto volatility, because DVOL publishes a single tenor rather than a curve, so unlike the other two this script does not auto-detect crypto. On a crypto chart the dashboard will read NO CURVE, which is honest rather than broken.
Alerts fire on the flip in each direction: into backwardation, and back into contango.
The thresholds are inputs, defaulting to 0.90 for steep and 1.00 for the inversion. The symbols are inputs too, so if CBOE changes a ticker the script keeps working.
Indikator

LDO-PVSRA-Vol [1.2]Volume bars coloured by PVSRA classification instead of plain up/down, so a
volume spike tells you its direction and its size at a glance.
── Reading it ──
Bright green / bright cyan — 200% "climax" volume. The big ones.
Mid green / blue — 150% "rising" volume. Above average, worth noting.
Faded — normal volume. Deliberately recessed so it sits
in the background and the vector bars pop.
Green is a bar that closed up, blue/cyan a bar that closed down. Brightness is
the size of the volume, hue is the direction. (Averages are taken from the ten
candles BEFORE the current one, which is the standard PVSRA calculation.)
── Changing the colours ──
All colour settings are in the INPUTS tab, not the Style tab. TradingView's
Style tab cannot recolour this plot and its picker there will appear to do
nothing — use Inputs.
There are three colour groups, each with an Up and a Down picker:
"200% volume — climax" the bright pair
"150% volume — rising" the mid pair
"Normal volume — faded" the background pair
Normal volume also has two extras:
Colour mode — "By direction" keeps the green/blue split. "Single colour"
paints every normal bar the same neutral shade, so the pane
reads as spike-vs-background rather than up-vs-down. Useful if
your candles already show you direction.
Fade % — how recessed normal volume looks. 0 is solid, 65 is the
default, higher pushes it further back.
Match these to whatever candle colouring you already run and the two panes will
agree by eye as well as by logic.
── Using Binance volume ──
"Use volume of the equivalent BINANCE PERP chart" is ON by default, and on
crypto symbols it pulls volume from the matching Binance perpetual rather than
whatever exchange your chart is on. That is where the volume actually trades,
so the classification is far more meaningful than volume from a thin venue.
The feed it settled on is printed in the small label at the bottom right of the
pane. If the perpetual does not exist it quietly falls back to your chart's own
volume — and that label will say so, so you always know what you are looking at.
Want a specific feed instead? Tick "Force override symbol" and type it in. On
non-crypto symbols the setting does nothing and your chart volume is used.
── Setting alerts ──
Two alerts are built in:
"Vector volume (150% or 200%)" — any above-average bar
"Climax volume (200%)" — the big ones only
To set one: click the alert clock (or right-click the chart, Add alert), set
Condition to LDO-PVSRA-Vol, then pick one of the two from the dropdown
underneath. Set the trigger to "Once per bar close" unless you want to be
pinged mid-candle by a spike that fades before the bar finishes.
Alerts fire off the same volume feed the bars are drawn from, so a Binance-perp
alert on a non-Binance chart works as you would expect.
── The rest of the settings ──
Thresholds — the 2.0x and 1.5x multipliers. The defaults are the standard
PVSRA values; raise them for fewer, more selective bars.
Volume MA — optional average line over the histogram, off by default.
Price pane — optionally colour your candles with the same classification.
Leave it off if you already run a PVSRA candle script.
Version label — the small bottom-right box. Turn it off if it is in your way.
── Credits ──
Derived from the open-source PVSRA volume work of infernix and peshocore,
under the Mozilla Public License 2.0. Independent derivative; not affiliated
with, and not named in reference to, Traders Reality or Pattern Watchers. Indikator
