Cardwell Dual Confluence [MarkitTick]💡 A comprehensive momentum and trend-following framework built to identify high-probability market shifts. By synthesizing Andrew Cardwell's established Relative Strength Index (RSI) range rules with dynamic trend filtering and volatility metrics, this tool provides a unified analytical engine. It moves beyond standard oscillator readings to map the underlying momentum regime, ensuring that signals are structurally aligned with the dominant trend.
● ✨ Originality and Utility
Traditional momentum oscillators often produce premature reversal signals during strong trends, leading to false entries in directionless markets. This indicator solves that problem by integrating a dual-tier confluence model. It does not rely solely on an isolated RSI moving average crossover; instead, it demands structural validation through Cardwell's defined momentum ranges.
The primary utility lies in its objective structural filtering: a momentum cross is only validated if the broader market regime structurally supports the direction of the momentum.
By combining a base timeframe momentum cross with a Higher Timeframe (HTF) trend regime and Average Directional Index (ADX) volatility filtering, this tool prevents overtrading in choppy, non-directional environments.
This deliberate combination of an oscillator, a trend filter, and a volatility metric acts as a logical confluence engine. It avoids the pitfalls of disjointed indicator mashups by ensuring every component serves a distinct mathematical purpose in validating the signal before it is printed to the chart.
● 🔬 Methodology and Concepts
The logic engine of this tool evaluates multiple distinct criteria before registering a valid signal.
• Momentum Crossover
The script calculates a base RSI and smooths it using two Running Moving Averages (RMA): a Fast RMA and a Slow RMA. A baseline momentum shift occurs when the Fast RMA crosses the Slow RMA, indicating a localized surge in buying or selling pressure.
• Regime Mapping
A structural trend is evaluated by comparing the closing price to a Simple Moving Average (SMA). Simultaneously, a secondary RSI is evaluated against Cardwell's defined structural ranges. A Bullish Regime requires the price to be above the SMA and the RSI to hold within a specific upper tier (defaulting to 40-80). A Bearish Regime requires the price to be below the SMA and the RSI to hold within a lower tier (defaulting to 20-60).
• Confirmation and Confluence
Regimes must persist for a user-defined number of consecutive bars to filter out transient market noise. Confluence is achieved when an RMA momentum crossover occurs within a tight, predefined window of a regime shift, ensuring both immediate momentum and the structural trend are perfectly aligned.
• Higher Timeframe and Volatility Verification
An optional HTF module checks the regime state of a larger timeframe using a strict non-repainting historical offset. Furthermore, the ADX is calculated to measure pure trend strength. If the ADX is below the user-defined minimum threshold, the market is deemed too choppy, and all signals are suppressed.
• Dynamic Trade Architecture
Once a signal is validated strictly on a confirmed bar close, the script projects dynamic Stop Loss and Take Profit levels using a multiplier of the Average True Range (ATR), actively adapting the trade geometry to current market volatility.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The analytical foundation of this tool rests on advanced momentum physics and statistical distribution theories.
• Cardwell RSI Range Theory
Developed by Andrew Cardwell, this theory posits that the Relative Strength Index is not merely an overbought/oversold oscillator, but a powerful trend-identifying metric. In a mathematically robust uptrend, the RSI establishes a baseline support near the 40 level and frequently reaches 80. Conversely, in a downtrend, it establishes resistance near 60 and drops to 20. The indicator algorithmically enforces these limits to objectively classify market environments.
• Running Moving Average (RMA) Dynamics
The script utilizes the RMA, also known as the Modified Moving Average (MMA) or SMMA, to smooth the RSI base. The RMA applies an exponential smoothing weight defined exactly as 1 / length . This specific mathematical weighting retains a longer memory of past data compared to a standard SMA, preventing the abrupt drop-offs that occur when large data points exit a simple moving average window. This makes the RMA crossover highly sensitive to genuine shifts in cumulative momentum without the lag of a standard exponential moving average.
• Average Directional Movement Index (ADX)
Created by J. Welles Wilder, the ADX quantifies trend strength independent of directional vector. By calculating the smoothed moving averages of the +DI and -DI directional movement indicators, the ADX isolates the absolute magnitude of price expansion. The script uses this mathematical isolation to construct an absolute threshold; requiring ADX to exceed a base level ensures that the statistical probability of trend continuation is mathematically viable before capital is exposed.
• Volatility-Scaled Projection (ATR)
Take profit and stop loss coordinates are mapped using Wilder's Average True Range. The ATR measures the greatest of the current high minus the current low, the absolute value of the current high minus the previous close, and the absolute value of the current low minus the previous close. By scaling targets using ATR multipliers, the tool shifts from fixed-point geometry to dynamic, standard-deviation-aligned targeting, ensuring targets expand during high volatility and contract during consolidation.
● 🎨 Visual Guide
The tool employs a clean, visually dynamic chart interface to transmit complex data instantly without cluttering the workspace.
• Heatmap Candles
Candle bodies and wicks are dynamically colored based on the active regime. Teal indicates a confirmed Bullish Regime, Red indicates a Bearish Regime, and Gray indicates a Neutral market state.
• Signal Labels
When all confluence parameters are met on a confirmed bar close, a solid blue "BUY" label appears below the bar, or an orange "SELL" label appears above the bar, complete with strict execution markers.
• Dynamic Trade Levels
Upon signal generation, the tool plots projected trade levels extending to the right of the price action. A solid Red line indicates the Stop Loss threshold. A dashed Blue line denotes the Entry price. Dashed Teal lines represent Take Profit 1, 2, and 3. Labels accurately print the precise price levels directly on the chart axis.
• Risk and Reward Fills
A semi-transparent Red linefill is plotted between the Entry and Stop Loss lines to visualize risk exposure, while a Teal fill between Entry and TP3 visualizes the total projected reward structure, allowing for instant visual evaluation of the trade setup.
• Integrated Dashboard
A comprehensive table is positioned on the chart, displaying real-time operational metrics. It details the current Cross Trend, Regime State, Confirm Bar count, Signal Gap status, Last Signal source, Trade Status, live ATR value, TP3:SL ratio, and HTF/Chop Filter states in an easy-to-read grid.
● 📖 How to Use
Deploying this tool requires patience and strict adherence to structural confirmation.
Wait for the Heatmap Candles to shift from Gray (Neutral) to Teal (Bullish) or Red (Bearish). This indicates that the broader moving average trend and the internal RSI ranges have aligned into a confirmed structural regime.
Observe the chart for a printed BUY or SELL label. This confirms that the RMA momentum cross has achieved mathematical confluence with the active regime within the defined allowable window.
Check the Dashboard to ensure the HTF Regime and Chop Filter (ADX) read as PASS. If the market is blocked by the Chop Filter, do not force an entry, as the statistical probability of a sustained run is low.
Upon entry, utilize the plotted ATR lines to structure your risk. Place your stop loss exactly at the solid red line, and scale out of your position at the dashed TP1, TP2, and TP3 levels as price action develops.
Wait for the Signal Gap cooldown period to elapse before considering consecutive entries in the same direction. This engineered delay prevents overexposure during erratic, volatile spikes.
● ⚙️ Inputs and Settings
The script features highly customizable parameters grouped logically for maximum workflow efficiency.
• Core Settings
Adjust the lengths for the Cross RMA (Fast/Slow) and the primary RSI source. Modify the Trend MA length and explicitly set the boundaries for the Bull Range (default 40-80) and Bear Range (default 20-60). Configure the Confluence Window to define exactly how close a cross and regime shift must occur to trigger a valid signal, and set the Signal Gap cooldown timer.
• Filters
Toggle the HTF Confirmation logic and select the desired higher timeframe for broader structural alignment. Enable the ADX Chop Filter and set the minimum required trend strength to strip out low-probability environments.
• Trade Tools
Define the ATR lookback length and customize the specific multipliers for the Stop Loss and the three Take Profit targets to match your unique risk-to-reward requirements. Modify the Line Extend Bars input to control how far into the future the trade levels are drawn.
• Visuals and Dashboard
Toggle individual visual components, including candle coloring, signal labels, and trade level plotting. Position the dashboard to any corner of the chart to prevent the obstruction of live price action.
• Alerts
Input specific JSON string payloads for Long, Short, Close Long, Close Short, SL, and TP actions. This allows the indicator to integrate seamlessly with automated execution platforms or third-party webhooks without requiring manual code modifications.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

TJR Smart Money Model [JOAT]TJR Smart Money Model
An original, non-repainting build of the smart-money day-trading sequence: sweep liquidity, wait for a market-structure shift, confirm with SMT, then enter the retrace — timed to killzones.
What it is
Most "smart money" tools just spray BOS and CHoCH labels wherever price crosses a line. This one follows the actual process the method teaches, as an ordered sequence, and only signals when each step has happened in the right order. It is written from scratch; it implements widely-taught price-action concepts (liquidity, structure, displacement, SMT, killzones) rather than reusing anyone's code.
The sequence it trades
• Liquidity sweep — price raids an obvious swing high or low (where stops rest) and closes back inside. The failed raid, not the level itself, is the trigger. Sweeps are tagged, and the swept buy-side and sell-side liquidity are drawn and labelled.
• Market structure shift (MSS) — after the sweep, a displacement candle (a body larger than an ATR multiple) must break the short-term structure in the opposite direction. Structure is tracked one break per level: each swing can only produce one BOS or CHoCH, so the labels land exactly where the shift occurs instead of being repeated on every bar. This is the direct fix for the "random label" problem common to naive structure scripts.
• SMT divergence — an optional confluence filter. Set a correlated instrument and the tool checks whether that instrument confirms the sweep's new extreme. If your symbol makes a new low but the correlated one does not (or the mirror for highs), that break in correlation is flagged as SMT and can be required for entries. It is read with lookahead disabled, so it never borrows future data.
• Entry — once the MSS confirms, the tool marks the discount/premium zone: the fair-value gap left by the displacement, or the 50% equilibrium of the reversal leg. A signal fires when price retraces into that zone and reacts, inside a user-selected killzone (London and New York AM by default). The stop rests beyond the swept liquidity — the level that invalidates the idea — and targets ladder out in R multiples inside red-risk and green-reward boxes with labelled entry, stop and take-profit prices.
The dashboard
An adjustable "process card" shows exactly which stage the market is in right now — hunting a sweep, swept and awaiting an MSS, or shifted and awaiting the entry retrace — plus the bias, the SMT state, the active killzone, a conviction reading, the current signal, and a live first-target-before-stop tally computed on closed bars only.
How to use it
• Works on any asset and timeframe; it was designed for intraday index, forex and futures trading but the logic is scale-independent.
• For SMT, pair correlated instruments (for example two related indices, or two correlated currency pairs). Leave the correlated symbol blank to trade the model without the SMT filter.
• Set the killzones and timezone to the session you actually trade, or disable the killzone filter to see signals around the clock.
• Read the dashboard stage before acting: the model is a sequence, and the highest-quality entries are the ones where sweep, shift, SMT and killzone all agree.
Settings
Pivot strength, displacement size, sweep-to-MSS and MSS-to-entry windows, fair-value-gap and order-block controls, equilibrium band thickness, SMT symbol and toggle, killzone windows/timezone, candle paint, risk padding and target R multiples, plus dashboard controls.
Originality and usefulness
The value is the ordered, gated state machine: a sweep must precede a displacement-qualified structure shift, which arms an equilibrium/FVG entry, optionally cross-checked against a correlated instrument and a session window. The once-per-level structure logic and the confirmed-bar evaluation make the labels and signals precise and non-repainting — which is what separates this from a pile of overlaid smart-money drawings.
Notes and limitations
• The model is selective by design; on quiet days or ranges it may produce few or no setups. That is intended.
• SMT is only meaningful with a genuinely correlated symbol; a poor pairing produces misleading divergence.
• Displacement and sweeps are defined algorithmically and may differ slightly from a discretionary trader's manual reading.
• The win tally reflects only past bars on the current chart and is not a prediction of future results.
• Educational and analytical tool, not financial advice. Manage your own risk.
— made with passion by officialjackofalltrades
Indicator

Supply & Demand Order Blocks [JOAT]Supply and Demand Order Blocks
Detects institutional order blocks from displacement, tracks them until mitigated, and signals reactions when price returns to a fresh zone.
What it is
Large participants cannot fill size at a single price, so they leave a footprint: the last opposing candle before an aggressive, imbalanced push. That candle marks the zone where unfilled orders rest and where price often returns to be re-accumulated or re-distributed. This indicator locates those zones objectively, manages their lifecycle, and frames the reaction as a trade. It is an original order-block engine with strict zone management.
How it works
• Displacement — the engine measures each impulsive leg over a short window against an ATR multiple. Only moves that exceed that threshold (optionally requiring a fair-value gap) count as institutional displacement, filtering out ordinary candles.
• Order block — the last opposing candle before a qualifying displacement is stored as a zone: the last down candle before a bullish push becomes demand, the last up candle before a bearish push becomes supply.
• Zone management — active blocks are held in parallel arrays, drawn as boxes extended to the right, faded by age and saturated by displacement strength, pruned once mitigated (price closes through them), and capped at a live maximum so the chart stays clean.
• Signals — a Buy fires when price taps a fresh demand block and closes back up (a bullish rejection); a Sell is the mirror at a supply block. An optional trend filter keeps you buying demand in uptrends and selling supply in downtrends, and a minimum-age plus minimum-gap rule stops a freshly formed block from self-triggering and prevents clustering.
Trade levels
Each signal draws a red risk box from entry to a stop placed beyond the block and a green reward box to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples.
The dashboard
An adjustable order-flow-depth panel shows the trend bias, the live counts of demand and supply blocks, the distance to the nearest zone, a conviction estimate, the active signal, and a live first-target-before-stop tally from closed bars only.
How to use it
• Works on any asset and timeframe; larger timeframes produce fewer, more significant blocks.
• Trade reactions at fresh, unmitigated zones aligned with the trend filter; treat mitigated zones as spent.
• Use the nearest-zone distance to anticipate where a reaction may occur before it happens.
Settings
Displacement window and ATR size, fair-value-gap requirement, maximum live blocks and extension, minimum block age, trend filter length, risk buffer and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The contribution is the full lifecycle model: an ATR-based displacement filter, objective block selection, age-and-strength-aware zone rendering, mitigation-based pruning, and a self-trigger guard — combined with a trend-filtered, non-repainting reaction signal and explained end to end.
Notes and limitations
• Not every tap of a zone reverses; blocks can and do break, which is why mitigation pruning and stops exist.
• Order-block definitions vary between traders; this engine uses one consistent, disclosed definition.
• The tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Indicator

Quant Confluence Engine [JOAT]Quant Confluence Engine
Scores several independent market factors into one weighted composite, so signals fire on agreement across dimensions rather than on any single trigger.
What it is
Single-factor signals are fragile: a momentum cross, a moving-average flip or a volume spike each fails often on its own. This engine measures several independent factors, normalises them to a common scale, and blends them into one bipolar confluence score. A signal is produced only when enough factors line up, and the transparency of the score lets you see exactly why. It is an original scoring framework, not a bundle of overlaid classic indicators.
How it works
• The factors — the engine evaluates a set of complementary dimensions, each capturing a different aspect of the tape: trend alignment, momentum, volatility regime, volume behaviour, price structure and stretch relative to a mean. Each factor is computed with a standard, well-understood method and then scaled so it contributes fairly.
• Normalisation — every factor is converted to a bounded contribution, so no single input can dominate the composite purely because of its raw magnitude.
• Composite score — the contributions are combined into one signed 0-centred score. Positive means the factors lean bullish, negative bearish, and the magnitude expresses how strong the agreement is.
• State-machine signals — a Buy fires when the score crosses into sufficient bullish agreement from a non-bullish state; a Sell is the mirror. Because a signal requires a genuine state change, the engine will not re-fire the same direction bar after bar — signals are self-spacing by construction.
Trade levels
Each signal draws a red risk box to the ATR stop and a green reward box to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples.
The dashboard
An adjustable factor-grid panel shows each factor's current lean (up or down) alongside a bipolar composite-score headline, the active signal, a conviction reading, and a live first-target-before-stop tally from closed bars only. The grid makes it obvious which factors are driving or vetoing a setup.
How to use it
• Works on any asset and timeframe; the factors adapt to the data.
• Read the grid before acting — a signal backed by broad agreement differs from one carried by a single strong factor.
• Raise the agreement requirement for fewer, higher-conviction signals, or lower it for more frequent ones.
Settings
Per-factor lengths and weights, the agreement threshold, ATR risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The value is the framework itself: a normalised, weighted multi-factor score with a transparent per-factor readout and a state-machine trigger that prevents signal spam. It is designed so a trader can inspect the reasoning, not just accept a label — which is precisely what a confluence approach should offer.
Notes and limitations
• Confluence reduces some false signals but does not remove them; correlated factors can all be wrong together in unusual conditions.
• Weighting is a design choice — different weights suit different markets, so treat the defaults as a starting point.
• The tally reflects only past bars on the current chart and is not a prediction.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Indicator

Volatility Squeeze Breakout [JOAT]Volatility Squeeze Breakout
Finds volatility compression — when Bollinger Bands contract inside the Keltner Channel — and signals the directional release with a built-in energy gauge.
What it is
Markets alternate between coiling and expanding. This indicator detects the coil using the classic squeeze relationship between two well-known volatility envelopes, quantifies how much energy has built up, and then signals the breakout in the direction momentum actually resolves. It is an original implementation with a charge model and full trade framing, not a bare squeeze dot script.
How it works
• The squeeze — a squeeze is on when the Bollinger Bands (price standard deviation) contract entirely inside the Keltner Channel (ATR-based). This means realised volatility has fallen below its typical range and the market is compressing.
• Charge / energy — while the squeeze persists, the tool tracks how long and how tightly the market has been coiled and expresses it as a 0–100 charge. A longer, tighter coil stores more potential energy for the eventual expansion.
• Momentum direction — a smoothed momentum measure determines which way the coil is leaning, so the breakout is read directionally rather than as a neutral event.
• The release — a Buy fires when the squeeze releases with rising positive momentum; a Sell fires when it releases with falling negative momentum. The release is a discrete event, and a minimum-gap control prevents repeated prints around the same break.
Trade levels
On a signal, a red risk box marks entry to the ATR stop and a green reward box marks entry to the third target, with inner dividers and right-edge labels for entry, stop and each take-profit at your R multiples.
The dashboard
An adjustable energy-gauge panel shows the squeeze state, the charge that had accumulated at the moment of release, the momentum direction, a conviction estimate, the active signal, and a live first-target-before-stop tally from closed bars only.
How to use it
• Works on any asset and timeframe; volatility cycles exist at every scale.
• Watch the charge build during a squeeze, then act on the release in the momentum direction.
• Higher charge readings indicate a longer coil, which some traders treat as a higher-quality setup — but a big coil can still resolve in either direction, so the momentum gate matters.
Settings
Bollinger length and multiplier, Keltner length and ATR multiplier, momentum length, release and charge options, risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The squeeze concept is public domain; the value added here is the charge model that turns coil duration and tightness into a readable energy figure, the directional momentum gate on the release, and the integrated non-repainting trade framing — combined and explained so a trader can see exactly why each breakout is flagged.
Notes and limitations
• Squeeze breakouts can fail or fake out; a release does not guarantee follow-through.
• The charge measures compression, not direction — always confirm with the momentum reading and your own context.
• The tally reflects only past bars on the current chart and is not a prediction.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Indicator

Adaptive Momentum Ribbon [JOAT]Adaptive Momentum Ribbon
An eight-layer moving-average ribbon whose colour is driven by live momentum and whose compression flags the coil before the move.
What it is
A single moving average tells you very little. A ribbon of them, fanned by speed, tells you three things at once: direction (the colour), strength (how wide it fans) and turning points (where it squeezes and flips). This indicator builds that ribbon and adds a momentum core and a compression detector so the ribbon is not just decorative — it gates the signals.
How it works
• The ribbon — eight exponential moving averages from fast to slow, with an optional light second smoothing pass for cleaner turns. When the fast layers sit above the slow layers the stack is bullish, and vice versa.
• Momentum core — a rate-of-change normalised by ATR and then smoothed. This value is mapped onto a colour gradient, so a strong trend glows saturated while a fading one drifts toward neutral. The same value gates entries, so you buy strength rather than every flip.
• Compression detector — the width between the fastest and slowest ribbon lines is ranked as a percentile over a lookback window. A low percentile means the market is coiled; a move out of that coil is the tradable expansion. Coils are highlighted so you can see energy building.
• Flip signals — a Buy prints when the ribbon flips up out of (or just after) a compression with positive momentum; a Sell is the mirror. Because a flip requires the stack to actually reverse, signals are naturally spaced, and a minimum-gap control adds a further safeguard against clustering.
Trade levels
Each signal draws a red risk box to the ATR-based stop and a green reward box to the third target, with inner target lines and right-edge price labels for entry, stop and every take-profit at your chosen R multiples.
The dashboard
An adjustable panel shows trend direction, a block-gradient momentum meter with a signed headline value, the compression state (coiled or expanded), a 0–100 conviction estimate, the current signal, and a live first-target-before-stop tally from closed bars only.
How to use it
• Works on all assets and timeframes; the ribbon adapts to whatever data it is given.
• Use the coil highlight to prepare for a move and the flip-with-momentum signal to time it.
• Require the coil filter for cleaner, fewer signals in choppy markets, or relax it for more responsive trend entries.
Settings
Base length and layer step, source, optional smoothing, momentum length and smoothing, signal momentum gate, compression window and percentile threshold, risk multiple and target R multiples, plus visual and dashboard controls.
Originality and usefulness
The combination is the point: a speed-fanned ribbon, an ATR-normalised momentum gradient that both colours the ribbon and filters signals, and a percentile-ranked compression model that isolates coils. Together they turn a familiar visual into a structured, non-repainting trend-and-expansion tool.
Notes and limitations
• Moving averages lag by nature; the ribbon confirms trend, it does not call exact tops or bottoms.
• In strong one-way trends the compression filter may keep you out of some continuation entries — that is the intended trade-off for fewer false flips.
• The tally reflects only past bars on the current chart and is not a forecast.
• Educational and analytical tool, not financial advice.
— made with passion by officialjackofalltrades
Indicator

Cardwell Range Analyze [MarkitTick]💡 A comprehensive, all-in-one technical analysis suite designed to decode market regimes, identify high-probability momentum shifts, and automate risk management visualization. Built upon the foundation of Andrew Cardwell's advanced Relative Strength Index (RSI) theories, this tool transcends traditional oscillator analysis. Rather than relying on static overbought and oversold thresholds, it dynamically tracks regime shifts by observing where momentum consolidates. When combined with trend confirmation, volatility-based targets, and directional movement filters, it provides a holistic view of the market state directly on your chart.
✨ Originality and Utility
Most traders utilize momentum oscillators in a vacuum, searching for mean-reversion signals at arbitrary boundaries. The utility of this script lies in its departure from that static approach. It introduces a multifaceted evaluation system that cross-references momentum bands with structural trend data. By integrating a Higher Timeframe (HTF) directional filter and an Average Directional Index (ADX) volatility threshold, it systematically filters out market noise and chop.
Its originality shines through the automated Trade Tools suite. Upon detecting a valid regime shift, the indicator instantly projects Average True Range (ATR) based Stop Loss and Take Profit levels, complete with risk-to-reward zoning. This allows traders to visually assess the mathematical viability of a setup before execution. The inclusion of a real-time diagnostic dashboard further elevates its utility, offering a heads-up display of all underlying metrics without cluttering the primary price action.
🔬 Methodology and Concepts
● Cardwell RSI Framework
Traditional RSI theory dictates that an asset is overbought at 70 and oversold at 30. However, the foundational concept here relies on range shifts. In a robust uptrend, RSI rarely reaches 30; instead, it finds support around 40 and can push up to 80. Conversely, in a downtrend, RSI encounters resistance around 60 and can fall to 20. This script mathematically codifies these ranges.
● Regime Confirmation
A raw regime is identified when the price resides on the correct side of the Trend Moving Average (SMA) while the RSI operates within the corresponding Cardwell range. To eliminate premature signals, a confirmation threshold requires the market to sustain this raw state for a consecutive number of bars.
● Structural and Volatility Filtering
To ensure signals align with macro momentum, the script queries a higher timeframe's trend state using non-repainting historical referencing. Additionally, the ADX is calculated to measure the absolute strength of the current trend. If the ADX falls below the minimum threshold, the market is deemed sideways, and signals are suppressed.
● Dynamic Risk Mapping
Once a validated signal fires, the script calculates dynamic price levels based on current market volatility (ATR). The Stop Loss is mapped at a fractional multiplier against the entry, while Take Profit levels are projected at linear multiples, mapping out a structured trade lifecycle.
🎨 Visual Guide
● Heatmap Candles
The standard price candles are dynamically recolored to reflect the prevailing market regime.
Teal Candles: Indicate a confirmed Bullish Regime.
Red Candles: Indicate a confirmed Bearish Regime.
Gray Candles: Indicate a Neutral state where conditions are mixed.
Black Wicks/Borders: Maintain visual clarity regardless of the body color.
● Trade Levels and Zones
When a signal triggers, specific horizontal projections appear on the chart:
Entry Line: A dashed blue line representing the closing price of the signal bar.
Stop Loss (SL) Line: A solid red line marking the invalidation point.
Take Profit (TP1, TP2, TP3) Lines: Dashed teal lines marking incremental profit targets.
Risk Fill: A translucent red background shading the area between the Entry and the Stop Loss.
Reward Fill: A translucent teal background shading the area between the Entry and the highest Take Profit.
● Dashboard
A specialized table anchored to the chart corner providing real-time data:
Regime: Displays current state (BULLISH, BEARISH, or NEUTRAL) in respective colors.
RSI Value: A visual progress bar measuring current RSI against a 100-scale, color-coded by intensity.
Trend & Ranges: Explicit text readouts of the current MA trend direction and defined RSI boundaries.
ADX Strength: A progress bar indicating the conviction of the trend.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
● Interpreting Regimes
Monitor the color of the candles. A transition from Gray to Teal suggests a bullish momentum shift aligning with the underlying trend. This is your primary directional bias. You should generally look for buying opportunities when candles are Teal and selling opportunities when they are Red.
● Acting on Signals
When all conditions (Cardwell Range, Trend MA, HTF Trend, and ADX Chop Filter) align, a BUY or SELL label will populate below or above the price. These represent active momentum shifts.
● Managing Risk
Do not trade blindly on signals. Upon a signal firing, visually inspect the red Risk Zone versus the teal Reward Zone. Ensure the projected Stop Loss aligns with logical market structure (like a recent swing low or high). Use the progressive TP1, TP2, and TP3 lines to scale out of positions as the market moves in your favor.
● Monitoring the Dashboard
Keep an eye on the ADX Strength bar in the dashboard. If the bar is predominantly empty and red, the market is consolidating. Wait for the ADX bar to fill and turn orange or green before expecting strong follow-through on any signals.
⚙️ Inputs and Settings
• Core Settings
RSI Length: The lookback period for momentum calculation (default 14).
Trend MA Length: The lookback period for the primary structural trend baseline (default 50).
• Filters
Bull/Bear Ranges: The upper and lower bounds for the Cardwell RSI shifts.
Regime Confirm Bars: The consecutive number of bars required to validate a new regime.
Use HTF Confirmation: Toggles the higher timeframe trend filter.
HTF Timeframe: Select the specific higher timeframe to query (e.g., 240 for 4-hour).
Use Chop Filter: Toggles the ADX volatility requirement.
ADX Min Strength: The threshold value ADX must exceed to allow signals.
• Trade Tools
ATR Length: The lookback period for volatility modeling.
SL/TP Multipliers: Fractional inputs to dictate how wide the Stop Loss and Profit Targets are projected relative to the ATR.
• Alerts
Action Strings: Customizable JSON payload strings for integrating with third-party automated execution platforms via webhooks.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator synthesizes three foundational pillars of quantitative market analysis: momentum distribution, structural mean, and volatility modeling.
First, it deconstructs the Relative Strength Index, initially formulated by J. Welles Wilder Jr. in 1978. Wilder mathematically defined momentum as the ratio of average gains to average losses. However, the Cardwell extension incorporated into this script addresses a fundamental flaw in Wilder's fixed bounding by applying regime-dependent probability distributions. In a positively skewed asset (uptrend), the probability mass of the RSI shifts upward, meaning a reading of 40 represents a statistically significant mean-reversion point (oversold) rather than 30.
Second, the script applies directional movement theory via the Average Directional Index (ADX). The ADX smooths the differences between the positive and negative directional indicators (+DI and -DI) to isolate the scalar strength of the trend vector, devoid of direction. By requiring a minimum ADX threshold, the algorithm mathematically enforces a non-stationary environment, filtering out random walk (white noise) conditions where momentum signals carry no statistical edge.
Finally, the projection of trade levels utilizes the Average True Range (ATR). ATR is a rigorous measure of the variance in asset prices, accounting for opening gaps and limit moves. By mapping target boundaries as functional multiples of ATR, the script ensures that standard deviation and local market dispersion strictly govern risk parameters, adapting dynamically to expanding or contracting market distributions.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Triple Confluence Navigator [MarkitTick]💡 A highly sophisticated analytical framework designed to identify high-probability market setups by demanding alignment across three distinct dimensions of market data: momentum crossovers, adaptive volatility momentum tracking, and structural price action. Instead of relying on a single lagging variable, this system synthesizes traditional oscillators, advanced digital signal processing (such as Kalman filtering), and structural swing analysis. By integrating automated risk management, multi-take-profit targeting, and a real-time tracking dashboard, it operates as a comprehensive suite for systematic market analysis.
✨ Originality and Utility
● A Multi-Dimensional Consensus Model
Most standard technical tools assess the market through a single lens, such as pure price action or pure momentum. The originality of this system lies in its stringent confluence requirements. It isolates three independent mathematical models and requires all of them to agree within a user-defined chronological window. This significantly filters out market noise and reduces the frequency of false positive signals commonly associated with sideways or choppy conditions.
● Oscillatory Supertrend Application
While a Supertrend is traditionally overlaid on raw price action, this script innovates by calculating an Average True Range (ATR) directly on the Adaptive RSI (ARSI) oscillator. By establishing a Supertrend over momentum rather than price, the tool identifies the structural trend of the underlying momentum itself, offering a preemptive view of market shifts before they fully materialize in physical price movement.
● Dynamic Risk-Bounding
The utility is heavily elevated by its integrated risk management architecture. Rather than relying on static pip/tick stops, the system calculates dynamic risk parameters comparing structural pivot ranges against ATR-capped maximums. This ensures that the generated stop-loss levels are mathematically sound, adapting to prevailing market volatility while adhering to strict structural invalidation points.
🔬 Methodology and Concepts
• Pillar One: The Cardwell Momentum Averages
The first confluence pillar focuses on moving average crossovers applied to the Relative Strength Index (RSI). Instead of standard Simple Moving Averages, the system utilizes advanced smoothing algorithms—specifically Kalman Filters or Low Latency Adaptive Moving Averages (LLAMA). This separates the underlying momentum signal from high-frequency market noise, establishing a primary directional bias.
• Pillar Two: Adaptive RSI and Oscillator Supertrend
The second pillar generates an Adaptive RSI (ARSI), normalizing the absolute differences of price movement against historical highest highs and lowest lows. This adaptive data stream is then heavily filtered and paired with a momentum-based Supertrend. A crossover between the ARSI and its own moving/volatility band dictates the secondary momentum confirmation.
• Pillar Three: Market Structure and Swing Pivots
The third pillar grounds the mathematical momentum in tangible price action. The engine calculates precise pivot highs and pivot lows over a specified lookback period. A confirmed signal requires price to physically breach these structural swing levels, registering a Break of Structure (BoS) or a Change of Character (ChoCh).
• The Confluence Window and HTF Bias
Signals from these three pillars rarely occur on the exact same bar. The system tracks the bars elapsed since each respective signal. If all three pillars trigger in the same direction within the defined confluence window, a master setup is generated. Furthermore, an overarching Higher Timeframe (HTF) security check ensures that these local confluences do not contradict the macro directional trend.
🎨 Visual Guide
• On-Chart Trade Mapping
Entry Line: A dashed line indicating the exact closing price of the signal bar.
Stop Loss (SL) Line: A dashed line representing the structural or volatility-based invalidation point, labeled with an X.
Take Profit (TP) Lines: Three distinct dashed lines projecting the target levels based on the calculated risk multiplier.
• Signal Markers and Fills
Labels: Distinct textual markers reading BUY or SELL highlight the precise candle where the triple confluence is met.
Risk Zone: A translucent shaded area bridging the Entry line and the Stop Loss line, visualizing the total capital exposure.
Reward Zone: A differently colored translucent shading extending from the Entry to the final Take Profit (TP3) level.
• Real-Time Dashboard
The Heads-Up Display (HUD) is a table anchored to the chart corner. It outputs the live status of the Cardwell MA, Adaptive ARSI, and Structure modules. It includes dynamic visual bars indicating current RSI and ADX levels, displays the state of the HTF bias, and calculates the live floating risk-to-reward ratio of an active setup.
📖 How to Use
• Identifying Setups
Monitor the chart for the appearance of the signal labels. When a setup is validated, the system will immediately draft the Entry, SL, and TP lines on the chart. Assess the Risk Zone and Reward Zone visuals to ensure the potential setup aligns with your personal risk tolerance.
• Dashboard Monitoring
Use the dashboard to evaluate the health of the confluence. If the ADX visual bar is extremely low, it indicates market chop, suggesting that even a confluence signal might suffer from lack of follow-through. Monitor the structural trend state in the dashboard to understand the broader context of the immediate signal.
• Trade Management
The predefined TP1, TP2, and TP3 lines serve as partial profit-taking areas. As price achieves TP1, consider shifting risk to breakeven, utilizing the subsequent lines as trailing markers. The HUD's Live R metric tracks the real-time fractional gain or loss based on the initial risk unit.
⚙️ Inputs and Settings
• Momentum & Averages
RSI Len: Defines the lookback period for the base oscillator.
Fast/Slow Len: Defines the lookback for the moving averages applied to the oscillator.
Filter Type: Dropdown to select between standard RMA, recursive Kalman Filtering, or adaptive LLAMA.
• Adaptive Volatility
Kalman Process & Measurement Noise: Granular inputs adjusting the responsiveness and smoothness of the Kalman state estimation.
LLAMA Min/Max Alpha: Bounds for the dynamic efficiency ratio used in the adaptive moving average.
ST Factor: The volatility multiplier that determines the width of the ARSI Supertrend band.
• Structure & Trade Configuration
Swing Len: The number of bars required to confirm a structural high or low.
SL ATR Mult: The maximum allowable distance for a stop loss, based on True Range.
SL Struct Buffer: The fractional ATR distance placed beyond a swing pivot to prevent premature stop outs.
TP1/TP2/TP3 R:R: The dynamic risk multiples used to project the take profit levels.
Confluence Window: The maximum number of bars allowed to pass between the three distinct pillar signals for them to remain valid together.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
• Recursive State Estimation (Kalman Filter)
The inclusion of a Kalman-inspired filter applies concepts from control theory and digital signal processing. Unlike simple averaging which inherently introduces phase lag, this algorithm estimates the true state of the momentum by predicting the next value and updating its estimation based on the actual measured value. By weighing the process noise against the measurement noise, the script aggressively smooths erratic momentum spikes while instantly snapping to genuine directional shifts.
• Adaptive Linear Regression (LLAMA)
The Low Latency Adaptive Moving Average applies statistical regression to determine the current market phase. It calculates the slope of the data over a set period and compares it to the absolute range of that period to derive an Efficiency Ratio. This ratio acts as a dynamic alpha coefficient. In highly efficient, directional markets, the alpha increases, forcing the average to tightly track the data. In inefficient, mean-reverting markets, the alpha decreases, flattening the average to ignore statistical noise.
• Statistical Variance and Orthogonal Agreement
By mandating a Triple Confluence, the system relies on the reduction of statistical variance. The three pillars—price structure, base momentum, and adaptive momentum bands—are mathematically orthogonal; they calculate market state using distinctly different algorithms. The probability of all three aligning purely by chance (random walk) is exceptionally low. Therefore, when confluence is achieved, it represents a statistically significant deviation from market equilibrium, highlighting a high-probability directional vector.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Citadel Microstructure Edge [JOAT]CITADEL MICROSTRUCTURE EDGE
A tribute to the high-frequency / market-making style of microstructure-edge extraction. Builds three orthogonal microstructure signals — tick imbalance (which side is aggressively crossing the tape), spread tightness (how thin the bid-ask is relative to its baseline), and micro momentum (the EMA-pair spread on the fastest timeframe) — then composes them into a single decaying edge value with an exponential half-life. When the edge crosses a configurable threshold and has sustained for N bars same-sign, a directional signal fires. Cooldown plus asymmetric lockout keep the signal stream institutional.
Three orthogonal components
Each component is computed independently and Z-normalised (optional for tick imbalance) for stationarity:
Tick Imbalance — LTF-reconstructed buy/sell tick classification. Output is the rolling imbalance bounded in ; optionally Z-normalised over a configurable window (default 60 bars) for cross-asset stationarity. The dominant input for fast / scalping reads.
Spread Tightness — (H − L) / C against its own EMA-smoothed baseline, Z-scored. Tight spread (low relative range) is constructive for whichever side momentum favours. The sign is borrowed from the micro-momentum factor.
Micro Momentum — EMA-fast minus EMA-slow on the tick-reconstructed flow, Z-scored. The directional engine.
Default weights (0.45 / 0.25 / 0.45) bias the read toward the two most-actionable components (tick imbalance + momentum), with spread tightness as confirmation. Optional auto-normalisation to sum=1.
Decaying edge with half-life ~ 3 bars
Microstructure edges decay quickly. The script does not just sum the three components per bar — it accumulates with decay :
edge_t = decay × edge_{t−1} + contribution_t
The default decay (0.78) gives the edge a half-life of approximately 3 bars — the standard market-making decay window. Older contributions fade out automatically; new contributions get incorporated immediately. This is the institutional way to track a fast signal without re-introducing flicker.
Sustained-edge signal logic
Edge Threshold (default 0.75) — minimum |edge| magnitude required to fire.
Sustained Edge (default 5 bars same sign) — the edge must have held its sign for N consecutive bars before a signal fires. This is the script's most important false-positive filter.
Cooldown (default 7 bars) — minimum bars between signals.
Asymmetric lockout (default ON) — an opposite-side signal CAN fire during cooldown. This means a quick flip from buy to sell remains responsive while consecutive same-side signals are suppressed.
Visual system
Edge histogram — projected at the top of the chart at a configurable percent of price (default 2% of price, 1.2% top padding). Histogram columns are coloured by edge sign with magnitude-proportional intensity. At a glance you see the edge's recent trajectory.
Buy / Sell labels with optional Unicode lightning glyph (toggleable to plain ">").
Slope-tinted micro ribbon — the micro fast / slow EMAs plotted with a translucent fill coloured by spread sign. Toggleable.
Subtle background shade by edge sign (off by default).
A locked Crimson Pulse palette: electric blue buy edge / lime-yellow sell edge / muted neutral on a deep crimson-black ground — the institutional HFT aesthetic.
Dashboard
9-row monospaced table positionable to any of nine corners. Surfaces:
Edge value with status (BUY / SELL / FLAT).
Tick imbalance value.
Spread tightness Z.
Micro momentum Z.
Sustained-edge counter (how many consecutive same-sign bars).
Last signal direction with bars-ago.
Decay setting and effective half-life.
Cooldown remaining.
Configuration: LTF, weights, threshold.
Alerts
Three alert conditions, each independently controllable:
Edge Buy
Edge Sell
Sustained Edge (N bars same sign) — the script's headline alert; fires before the signal does, useful as an early-warning notification.
{image]https://www.tradingview.com/x/ybVYCAr3/
How to read it
Three reads, in order of conviction:
Sustained edge into a structural level — the highest-conviction read. The microstructure has been one-sided for N+ bars AND price is at a known S/R; the next move into the level usually breaks it.
Edge buy / sell with all three components agreeing — fast directional commitment. The dashboard's per-component rows tell you whether the read is dominated by tick imbalance (aggressive tape) or by micro momentum (sustained direction) or by spread tightness (regime-aware confirmation).
Edge above threshold but not sustained — early-warning state. Edge has crossed threshold but the sustained counter has not yet reached N. Watch the counter — if it ticks up bar-by-bar, the signal is forming; if it drops, the edge is decaying.
Suggested settings
Defaults (1m LTF, spread EMA 14 / Z 60, micro EMA 3/8 / Z 60, weights 0.45/0.25/0.45, edge threshold 0.75, sustain 5 bars, decay 0.78, cooldown 7 bars) are tuned for 5m–15m charts on liquid futures and crypto where microstructure has meaningful presence. For 1m scalping drop LTF to 15s (Premium required) and sustain to 3 bars. For HTF the script is not the right tool — microstructure edges decay too quickly to be meaningful on 1H+ timeframes.
Originality
The implementation — the three-component microstructure pipeline (tick imbalance + spread tightness + micro momentum), the LTF tick-rule reconstruction with optional Z-normalisation, the weighted-sum composition with auto-normalisation, the exponential-decay edge accumulator with configurable half-life, the sustained-edge counter and asymmetric-lockout signal logic, the price-anchored histogram render at the top of the chart, the slope-tinted micro ribbon, and the Crimson Pulse palette — is JOAT-original. No third-party code reused. The script is a tribute to Citadel-style market-making microstructure-edge extraction, not a direct replication of any proprietary Citadel code.
Limitations
Reconstructed tick direction is an inference — the tick rule is the accepted public-market proxy but is not a direct read of bid/ask. Sub-minute LTFs require a TradingView Premium or Ultimate plan. Microstructure edges decay fast by design; on 1H+ timeframes the engine produces few signals — that is correct behaviour, not a bug.
—
-made with passion by jackofalltrades
Indicator

AQR Momentum Factor [JOAT]AQR MOMENTUM FACTOR
A tribute to AQR Capital Management's seminal momentum-factor research — including Asness's classic "Value and Momentum Everywhere" framework. The script estimates cross-horizon momentum by ranking returns across five independent look-back horizons (default 1, 5, 20, 60, 120 bars — including the AQR-canonical 12-1 month equivalent), volatility-adjusting the result, and producing a composite momentum score in that fires Buy / Sell labels when the score crosses configurable thresholds.
Why cross-horizon ranking
A single momentum lookback is fragile. AQR's published research (Asness, Moskowitz, Pedersen, and others) shows that momentum is best estimated by agreement across horizons — when short-, medium-, and long-term momentum all point the same way, the signal is much more reliable than any single horizon alone. The script encodes that directly:
Five horizons — 1 / 5 / 20 / 60 / 120 bars by default (configurable independently).
At each horizon the return is percentile-ranked against its own trailing 252-bar (trading year) distribution.
The five percentile ranks are mapped from to (50% → 0; 100% → +1; 0% → −1).
The composite is the average of the five mapped ranks.
The output is bounded in and represents how unusual current momentum is relative to its own recent history, averaged across timeframes .
Volatility adjustment (optional but on by default)
The composite is divided by a volatility Z-score over a configurable window (default 60 bars), clamped at a Z cap (default 2.5) to avoid division-by-zero blow-ups. This dampens signals during high-volatility regimes — which is what AQR's "low-vol momentum" research finds is the genuinely tradeable component of the factor.
When vol-adjustment is off, the score is raw cross-horizon momentum. When it is on, the score is risk-adjusted momentum, which is the institutional read.
Signal engine
BUY — composite > buy threshold (default +0.70 → top ~15% across horizons).
SELL — composite < sell threshold (default −0.70).
Extreme High / Low alerts — composite > +0.90 / < −0.90. The script's strongest reads.
A configurable Min Bars Between Same-Side Signals (default 5) prevents clustering. A confirm-on-close toggle (default ON) ensures non-repaint signals.
Bar colouring — strict 2-hue discipline
The chart bars are coloured by the sign of the composite, with saturation proportional to magnitude. The "Bar Color Saturation Floor" input controls how aggressively the colour fades when momentum is weak — at 0 the bars are always full colour; at 1 they fade toward background when momentum is weak. The defaults (0.65) produce a clean institutional read where strong-momentum bars stand out and weak-momentum bars merge into the background.
A hidden composite-line plot (toggleable) opens a pane below the chart for users who want to see the score itself, or feed it to Data Window / webhook automation.
Visual system
Buy / Sell labels on threshold crosses (configurable size).
Bar colouring by signed momentum with saturation floor.
Hidden composite line (toggleable, pane).
Light regime background (off by default) — very subtle bgcolor sampled from bull/bear.
A locked Golden Blaze palette: gold bull / oxblood bear / off-white neutral on a dark-slate ground — the classic AQR institutional aesthetic. Strict 3-hue discipline + bg.
Dashboard
Monospaced table positionable to any of nine corners. Surfaces:
Composite score with signed value.
Per-horizon percentile ranks (h1 / h2 / h3 / h4 / h5).
Horizon agreement count (how many horizons agree with the composite sign).
Volatility Z value and adjustment factor in use.
Last signal direction with bars-ago.
Configuration: rank window, vol window, thresholds.
Alerts
Four alert conditions, each independently controllable:
BUY (composite crosses above buy threshold)
SELL (composite crosses below sell threshold)
Extreme Score (|composite| crosses extreme high or low)
Horizon Disagreement (off by default) — fires when horizons split (~half above 50%, half below). Useful as a "no edge" warning.
How to read it
Three reads, in order of conviction:
Extreme score with full horizon agreement — the highest-conviction read. All five horizons agree, the score is in the top 10% / bottom 10% of its own distribution, and vol-adjustment has not damped it. This is the institutional setup.
Buy / Sell with vol-adjustment active in a low-vol regime — the "low-vol momentum" setup AQR's research identifies as the strongest factor exposure. Pair with a directional execution tool.
Horizon disagreement alert — stand-aside signal. Some horizons say bull, some say bear; there is no momentum factor exposure available. Wait for agreement to return.
Suggested settings
Defaults (horizons 1/5/20/60/120, rank window 252, vol window 60, vol Z cap 2.5, ±0.70 thresholds, ±0.90 extreme) are tuned for daily charts on broad indices — the timeframes where momentum factor exposures are statistically most meaningful. For lower timeframes drop all horizons proportionally (1/5/15/30/60) and the rank window to 200. For weekly+ keep defaults; momentum on weekly is the canonical factor.
Originality / what's reused
The momentum factor is published academic finance — Jegadeesh & Titman 1993, Asness 1994, AQR's "Value and Momentum Everywhere" 2013. The 252-bar / one-year ranking window is the classical institutional convention. The implementation here — the five-horizon configurable engine, the ta.percentrank -based ranking pipeline, the linear remap, the volatility-Z adjustment with clamp, the saturation-floored bar-colouring with strict 2-hue discipline, the horizon-disagreement alert logic, and the AQR Golden Blaze palette — is JOAT-original. No third-party code reused. The script is a tribute to AQR's published methodology, not a direct replication of any proprietary AQR model.
Open source
Published open-source under the default Mozilla Public License 2.0. The horizon pipeline, the ranking engine, the vol-adjustment routine, the signal engine, and the dashboard are isolated modules. Forks welcome with credit.
Limitations
The 252-bar ranking window assumes a daily chart for the "trading year" interpretation; on lower timeframes the window represents a different real-world horizon. The momentum factor is well-documented historically but, like all factor exposures, it can underperform for extended periods — the dashboard's horizon-agreement count is the script's own early warning when the factor is breaking down. Vol-adjustment is on by default because it is statistically supported; turn it off only for research.
—
-made with passion by jackofalltrades
Indicator

Multi-Indicator Confluence Strategy Automator [MarkitTick]💡 A comprehensive, multi-dimensional technical analysis suite engineered to evaluate market conditions through a rigorous synthesis of trend, momentum, volatility, and cross-asset correlation metrics. Designed for traders who require a systematic approach to market entry and risk management, this script aggregates signals from multiple proven indicators and applies advanced statistical filters to minimize false positives. By unifying foundational technical analysis with advanced mathematical concepts like the Hurst exponent and momentum inflation, this tool provides a highly objective, data-driven environment for evaluating market structure and defining structured trade parameters.
✨ Originality and Utility
Standard trading methodologies often rely on isolated indicators, which can lead to high failure rates in dynamic market environments. The originality of this script lies in its robust confluence engine, which demands simultaneous alignment across multiple independent market dimensions before generating a signal.
Instead of merely stacking moving averages, this suite integrates a strict Boolean gating system that evaluates:
A primary directional baseline derived from a Hull Moving Average combined with an Average True Range volatility buffer.
A directional movement and momentum confirmation matrix utilizing the Average Directional Index and Commodity Channel Index.
Dynamic volume filtering to ensure market participation supports the price action.
Advanced statistical gating mechanisms, including confluence decay, regime detection, and cross-asset correlation analysis.
This utility is exceptionally valuable for systematic traders, as it translates complex, multidimensional market data into a highly legible, unified dashboard while automatically projecting risk-adjusted stop-loss and take-profit levels dynamically based on current market volatility.
🔬 Methodology and Concepts
● The Confluence Engine
The core of this strategy revolves around a scoring system that evaluates bullish or bearish alignment. A valid signal requires a minimum confluence score, calculated by assessing the following core components:
• Baseline Trend
The script utilizes a Hull Moving Average to determine the primary market bias. To eliminate noise, a volatility buffer equivalent to a fraction of the Average True Range is applied, ensuring that only definitive breakouts beyond the baseline are considered valid directional shifts.
• Directional Movement (ADX/DMI)
The first confirmation layer relies on the Average Directional Index alongside the Directional Movement Indicators. A trend is only considered active if the ADX exceeds a user-defined threshold, and the relationship between the positive and negative directional indicators defines the bias.
• Momentum Oscillators (CCI)
The second confirmation layer employs the Commodity Channel Index to measure the current price level relative to an average price level over a given period. Bullish or bearish confirmation requires the CCI to pierce specific upper or lower thresholds.
• Volume Validation
A volume filter ensures that signals are backed by significant market interest. The current period's volume must exceed a rolling exponential moving average of historical volume, multiplied by a strict sensitivity factor.
• Advanced Gating Filters
Confluence Decay: A time-based penalty system that degrades the value of a signal if the confluence state persists for too long without triggering an entry, preventing late entries into exhausted trends.
Hurst Regime Detector: Classifies the market as trending or mean-reverting, gating signals that conflict with the overarching statistical regime.
Momentum Inflation Ratio: Normalizes current price velocity against historical volatility to detect and filter out exhaustion spikes.
Cross-Asset Lead-Lag: Computes the Pearson correlation against a secondary asset to confirm macroeconomic or sector-wide alignment before entry.
🎨 Visual Guide
The script employs a highly intuitive visual hierarchy designed to keep the chart clean while providing maximum data density.
● Chart Elements
• Heatmap Candles
The standard price candles are color-coded based on the baseline trend state. Bullish bars are colored a vibrant teal, bearish bars are marked in a distinct red, and neutral states default to a muted slate blue. This visual heuristic allows traders to instantly recognize the dominant market regime without processing raw numerical data.
• Signal Markers
When all confluence conditions and advanced gates are met, the script plots distinct entry markers: small upward-pointing triangles below the bar for long signals, and downward-pointing triangles above the bar for short signals.
• Risk Management Levels
Upon a confirmed signal, the script dynamically draws horizontal lines representing the trade parameters:
Entry Line: A dashed, neutral-colored line projecting the exact trigger price.
Stop Loss (SL): A dashed, red line projected against the trend based on a multiple of the Average True Range.
Take Profit (TP1, TP2, TP3): Three dotted, green lines representing scaled exit targets, dynamically calculated using expanding volatility multiples.
Each line is accompanied by a precise price label anchored to the right side of the chart.
● The Information Dashboard
A comprehensive table is anchored to the top right of the screen. It displays the real-time status of the Baseline, Confirm 1, Confirm 2, Volume, Exit status, and the aggregate Score. Furthermore, it outputs the exact values for ADX, ATR, Decay Age, Hurst Exponent, Momentum Inflation, Baseline Distance-Integral, and Lead-Lag Correlation, using a color-coded text system (Green for bullish/favorable, Red for bearish/unfavorable, Yellow for warnings).
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
● Interpreting Signals
Traders should monitor the chart for the appearance of the signal triangles. Because the script utilizes a strict minimum gap requirement between signals, traders will not be overwhelmed by repetitive alerts during a sustained trend.
● Executing Trades
Once a signal appears, the script automatically projects the optimal Entry, Stop Loss, and three Take Profit levels on the chart. Traders can use these exact price labels to populate their exchange order tickets or algorithmic routing software.
● Managing Positions
The built-in Exit Indicator, driven by a faster CCI calculation, will trigger an alert when counter-trend momentum builds, providing an objective reason to manually close or trail stops on an active position before the hard stop loss is hit.
● Dashboard Monitoring
Use the dashboard table to gauge the overall health of the trend. If the Confluence Score drops or the Confluence Decay percentage reaches high levels, it is highly advisable to tighten stops on existing positions, as the mathematical probability of trend continuation has diminished.
⚙️ Inputs and Settings
● Core Indicator Tuning
Baseline HMA Length: Adjusts the sensitivity of the primary trend filter.
ADX/DMI Length & Threshold: Defines how strong a trend must be to pass the first confirmation gate.
CCI Length & Threshold: Sets the momentum required for the second confirmation gate.
Volume RMA Length & Multiplier: Configures the strictness of the volume participation filter.
● Risk Parameters
ATR Length: The lookback period for volatility measurement.
SL ATR Mult: The multiplier applied to the ATR to define the stop-loss distance.
TP1, TP2, TP3 ATR Mult: The multipliers defining the three scale-out profit targets.
● Advanced Filter Settings
Confluence Decay: Toggles the time penalty system and defines the maximum bars before full decay.
Hurst Regime Detector: Toggles regime filtering and sets the threshold for trending vs. mean-reverting environments.
Momentum Inflation Ratio: Toggles velocity normalization and sets the threshold ratio for exhaustion alerts.
Cross-Asset Lead-Lag: Defines the correlation ticker, correlation lookback window, and minimum Pearson threshold.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Rescaled Range Analysis and the Hurst Exponent
This script integrates a specialized implementation of the Hurst Exponent, a statistical measure originally developed in hydrology, to classify financial time series data. It calculates the cumulative deviation of the asset's price from its Simple Moving Average over a defined rolling window. By identifying the maximum and minimum cumulative deviations, the script establishes the range, which is then normalized against the standard deviation of the price series to compute the rescaled range ratio. The final Hurst value is derived logarithmically. A value significantly greater than 0.5 mathematically confirms a persistent, trending regime, while a value below 0.5 indicates an anti-persistent, mean-reverting environment.
● Momentum Inflation via Volatility Normalization
The script tackles the academic problem of momentum illusion, where sheer point movement is mistaken for structural momentum, by normalizing absolute price speed against the Average True Range. It then compares this normalized current velocity against a rolling historical average of normalized velocity. If the resulting ratio exceeds the user-defined threshold, the script identifies the movement as mathematically over-extended, gating further entries to prevent buying the top or selling the bottom of a volatility spike.
● Cross-Asset Correlation Dynamics
To account for macroeconomic interconnectedness, the script employs a rolling Pearson correlation coefficient between the primary asset and a defined leading indicator. By analyzing the covariance of the two assets relative to the product of their standard deviations over a specific window, it mathematically verifies if the broader sector or macroeconomic environment supports the localized signal.
● Distance-Integral Calculations
The Baseline Distance-Integral utilizes a rolling mathematical sum of the spatial delta between the closing price and the moving average. This integral provides a quantifiable area-under-the-curve measurement, offering deeper insight into the cumulative kinetic energy of a trend rather than relying solely on point-in-time cross signals.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Adaptive RSI Supertrend [MarkitTick]💡 A highly advanced, multi-dimensional momentum and volatility tracking ecosystem designed for professional market analysis. Rather than relying on traditional price-based trailing stops, this indicator projects a volatility-banded Supertrend directly onto an Adaptive Relative Strength Index (ARSI). This creates an incredibly responsive momentum oscillator that dynamically adjusts its own thresholds based on underlying market kinematics. By integrating high-order digital signal processing filters, higher timeframe confirmations, and volume-weighted validation, this tool provides a comprehensive, terminal-style perspective on market regime, momentum acceleration, and localized price extremes without succumbing to the noise typical of standard oscillators.
✨ Originality and Utility
The standard Relative Strength Index is frequently plagued by false signals, erratic whipsaws during consolidation, and a failure to contextualize momentum within broader structural trends. This script resolves these systemic inefficiencies through a deliberate and mathematically sound synthesis of disparate analytical domains. The combination of an ARSI with a localized Supertrend is not an arbitrary pairing; it solves the problem of static overbought/oversold boundaries. By mapping average true range (ATR) bands onto the RSI itself, the indicator creates dynamic, breathing support and resistance levels for momentum. Furthermore, the integration of advanced smoothing algorithms (Kalman and LLAMA) strips out high-frequency noise, ensuring that crossovers between the ARSI and the Supertrend-derived Merged Line represent statistically significant momentum shifts rather than fleeting market anomalies. This unified framework replaces the need for an overlapping array of disparate indicators, offering a singular, high-contrast dashboard for absolute market clarity.
🔬 Methodology and Concepts
The internal architecture of this tool is built upon several synchronized analytical layers, heavily optimized to protect the integrity of the underlying logic while delivering seamless visual output.
● Adaptive Momentum Core
At the heart of the script is the ARSI, which abandons traditional static lookbacks in favor of a responsive differential tracking model. It evaluates the absolute range of price action against directional movement, feeding these differences through a recursive smoothing engine. This results in an oscillator that remains highly sensitive to genuine trend initiation while heavily penalizing sideways chop.
● Digital Signal Processing (DSP) Filters
The raw momentum data is processed through user-selectable DSP algorithms to extract the true signal from market noise. The Kalman Filter dynamically estimates the true state of momentum by balancing process noise against measurement noise, adapting instantly to volatility spikes. Alternatively, the LLAMA filter applies an efficiency-ratio-driven alpha scaling model, tightening its smoothing factor during periods of low efficiency and relaxing it during strong directional bursts.
● Oscillator-Bound Supertrend
Instead of applying a Supertrend to price, the script calculates a specialized ATR based on the frame-to-frame variance of the ARSI. It then projects upper and lower deviation bands around the ARSI, maintaining a directional bias based on trailing breakouts. The resulting baseline is then averaged with the DSP-filtered signal to create the "Merged Line," serving as the ultimate zero-lag trailing threshold for momentum.
● Multi-Factor Regime Scoring
The script continuously evaluates the broader market context by scoring four distinct components: the absolute level of the ARSI, the trigonometric angle of the ARSI trajectory, the state of the oscillator Supertrend, and the relationship of price to a macroeconomic baseline moving average. These factors are normalized and aggregated into a 0-100 Regime Score, offering a unified metric of trend health.
🎨 Visual Guide
The visual presentation is engineered for high-contrast, dark-mode optimized aesthetics, providing immediate, terminal-style data processing without chart clutter.
● Chart Elements
Color-Matched Candles: Price candles are painted based on the kinetic relationship between the ARSI and its signal line. Neon Cyan indicates strong bullish momentum, Dark Teal indicates weak bullish momentum, Deep Crimson indicates strong bearish momentum, and Maroon denotes weak bearish pressure. Slate Gray represents a neutral momentum state.
Dynamic Support/Resistance Boxes: Translucent, neon-bordered zones (Cyan for Support, Crimson for Resistance) highlight localized structural extremes, providing immediate context for price breakouts.
Trade Projection Labels: When crossover signals fire, dashed projection lines emerge, extending forward to display precisely calculated Entry (Slate), Stop Loss (Crimson), and multi-tiered Take Profit (Neon Green) levels based on dynamic risk-to-reward parameters.
Chart Angle Label: A floating text label displays the exact trigonometric angle and classification of the current trend (e.g., "Strong Uptrend / 45.2°").
● Oscillator Pane Elements
Adaptive RSI Line: Plotted with a dynamic gradient that transitions from Deep Crimson (extreme weakness) to Neon Cyan (extreme strength), instantly conveying momentum depth.
Merged Signal Line: A distinct Neon Purple to Deep Pink gradient line acting as the trailing support/resistance for the ARSI.
Divergence Histogram: Translucent Cyan and Red histogram bars plot the delta between the ARSI and the Merged Line, visualizing the acceleration or deceleration of momentum crosses.
Background Shading: The oscillator pane background shifts to a deep blue/purple tone during overbought (above 80) and oversold (below 20) extremes. A striking Electric Gold background illuminates periods where momentum enters a highly compressed "Squeeze" state.
Signal Markers: Crisp "BULL" (Cyan) and "BEAR" (Red) text labels appear on the oscillator when fully validated crossovers occur.
● The Analytics Dashboard
A fixed, dark-background HUD presents granular telemetry using segmented block bars and color-coded text for rapid scannability:
ARSI Level: Percentage reading of the current momentum state.
Signal Strength: Block visualization of the DSP-filtered baseline.
Angle Momentum & Acceleration: Metrics tracking the velocity and delta-velocity of the trend trajectory.
Supertrend & Market Bias: Text readouts indicating the dominant structural direction.
HTF Trend & Volume: Validation checks displaying the alignment of higher timeframes and localized volume surges.
Volatility ATR & Last Cross: Precise numerical readouts of market expansion and the duration since the last major signal.
Regime Score: The composite 0-100 metric, color-coded from Crimson (Bear) to Neon Magenta (Transition) to Cyan (Bull).
📖 How to Use
Identify Momentum Regime: Monitor the Dashboard's Regime Score. A score above 70 combined with a Neon Cyan ARSI line indicates an environment where long positions are statistically favored.
Trade the Crossover: Wait for the ARSI to cross the Merged Line. Validated crosses will generate a distinct "BULL" or "BEAR" label. Check the Dashboard to ensure the Volume Filter and HTF Trend are aligned (marked with a green checkmark).
Navigate Squeezes: When the oscillator background turns Electric Gold, the market is experiencing a severe volatility contraction. Avoid initiating new positions during the squeeze. Wait for the background color to clear, accompanied by an Alert indicating a Squeeze Breakout, before trading the subsequent expansion.
Manage Risk via Trade Labels: Upon a valid signal, utilize the automatically projected Entry, SL, and TP lines on the main chart to structure your position sizing according to the script's ATR-derived risk mechanics.
⚙️ Inputs and Settings
ARSI & Signal Lengths: Controls the primary lookback periods for the oscillator and its baseline.
Signal Filter Type: Select between RMA, Kalman Filter, or LLAMA to dictate the specific mathematical model used for noise reduction.
Supertrend ATR Length & Factor: Adjusts the sensitivity and width of the volatility bands applied to the oscillator.
Volume Filter Multiplier: Determines the threshold required for volume validation (e.g., 1.5 requires volume to be 50% above its moving average).
HTF Timeframe: Defines the higher timeframe used for macro-trend alignment (defaults to Daily).
Squeeze Angle Threshold: The maximum absolute angle permitted to trigger a volatility contraction state.
Trade Labels (Risk:Reward): Allows fine-tuning of the Stop Loss padding and the precise ratios for TP1, TP2, and TP3 targets.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator relies on a robust foundation of applied mathematics and digital signal processing. The core methodology employs non-linear dynamic state estimation. Unlike standard moving averages that suffer from inherent group delay, the integration of algorithms akin to the Kalman filter allows the script to recursively project the next state of momentum and update that projection based on incoming price data. This minimizes lag while aggressively smoothing standard deviation anomalies.
Furthermore, the application of volatility banding (ATR) directly to an bounded oscillator (RSI) represents a shift from price-domain analysis to momentum-domain analysis. By calculating the variance of the momentum itself, the script acknowledges that momentum has its own distinct volatility profile, independent of price action. The kinematics of the trend are evaluated using trigonometric functions to derive the slope (velocity) and the rate of change of the slope (acceleration). This multidimensional approach ensures that signals are not generated merely by price crossing a threshold, but by a mathematically validated shift in the kinetic energy of the market.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Cardwell RSI Trade Navigator [MarkitTick]💡 An advanced, multi-dimensional technical overlay designed to translate hidden momentum shifts into actionable, visually structured chart setups.
By extracting the core principles of Andrew Cardwell's methodology—which applies moving averages directly to the Relative Strength Index (RSI) rather than price—this tool identifies underlying momentum trends before they fully manifest in price action.
✨ Originality and Utility
Standard oscillators force traders to divert their attention away from price action to interpret lower-panel squiggles, which can often lead to a disconnect in charting focus.
This script is highly original because it extracts the mathematical cross of RSI-based moving averages and projects them directly onto the main price chart as a comprehensive, fully visualized trade management ecosystem.
It does not just paint a simple signal arrow; it algorithmically constructs a complete risk-to-reward framework the exact moment a momentum cross is mathematically validated.
By integrating directional filters like the ADX and higher timeframe (HTF) consensus protocols, it effectively filters out low-probability market chop.
The primary utility lies in its ability to automate the visual calculation of entry parameters, construct stop losses based on real-time volatility, and project multiple take-profit milestones based on strict multiples, essentially acting as a dynamic charting assistant built entirely on objective mathematical rules.
🔬 Methodology and Concepts
The core computational engine of this indicator relies on the calculation of a standard 14-period Relative Strength Index (RSI).
Instead of looking for traditional overbought or oversold reversal levels, the script calculates two Relative Moving Averages (RMA) of the RSI itself—a Fast RMA (9-period) and a Slow RMA (45-period).
A bullish bias is generated when the Fast RMA crosses above the Slow RMA, indicating that short-term momentum is accelerating faster than the baseline trend velocity.
Conversely, a bearish bias occurs when the Fast RMA crosses below the Slow RMA, signaling immediate downside momentum acceleration.
To ensure these momentum signals are not triggered in stagnant or mean-reverting markets, the script integrates an Average Directional Index (ADX) filter.
The ADX must register a value above a user-defined threshold (default 20) to mathematically confirm that the market is currently in a trending phase capable of sustaining the RSI momentum push.
Furthermore, a Higher Timeframe (HTF) filter requests the RSI RMA cross status from a macro timeframe. Signals on the current charting timeframe are only validated if they align perfectly with the HTF bias, ensuring that all setups are traded strictly in the direction of the dominant market flow.
Once all conditions of a valid signal are met, the script utilizes the Average True Range (ATR) to calculate a dynamic, volatility-adjusted Stop Loss, and then projects exact Take Profit targets using standardized Risk:Reward multipliers.
🎨 Visual Guide
The script transforms the standard candlestick chart into a highly visual, logically color-coded trade environment.
Candle Coloring: Candlesticks are dynamically colored based on underlying momentum strength. A visual gradient shifts from a neutral gray to a bright green (bullish) or bright red (bearish) depending directly on the separation distance between the Fast and Slow RSI RMAs.
HTF Trend Cloud: An optional visual cloud is plotted both above and below the price action. It is colored teal for HTF bullishness and crimson for HTF bearishness, offering traders macro context at a single glance without switching timeframes.
Trade Setup Lines: Upon a validated signal, dashed white horizontal lines appear on the chart, representing the exact calculated price levels for the Stop Loss, Entry point, Take Profit 1 (TP1), Take Profit 2 (TP2), and Take Profit 3 (TP3).
Risk Zones: The chart background between the entry price and the stop loss is shaded in a semi-transparent dark red. The zones between the entry and the consecutive take-profit levels are shaded in progressive green tones to visually represent risk versus reward areas.
Price Labels: Distinctive text labels featuring geometric icons are plotted dynamically at the end of the trade lines, displaying the exact numeric price coordinates for the Stop Loss, Entry, and all TPs.
Signal Strength Score Label: is a calculated metric designed to quantify the momentum and quality of the trade setup at the exact moment the signal is triggered. This value provides a "snapshot" of the signal's conviction level the moment it appears, whereas dashboard metrics track ongoing market conditions.
Dashboard Table: Located permanently in the top right corner, this dark-themed data table displays real-time metrics including the ticker symbol, current trend direction, current ATR value, a visual ADX strength bar, an overall signal strength percentage, the overarching HTF bias, and a counter tracking the number of bars since the last valid signal.
📖 How to Use
Traders can utilize this framework to efficiently identify and manage momentum-based trend continuation setups across any asset.
First, wait for a clear momentum shift, visually indicated by a change in the candlestick gradient color and the sudden appearance of the geometric trade setup zones.
Before considering the setup valid, reference the top-right dashboard table. Confirm that the ADX bar is registering sufficient trend strength and that the HTF Bias aligns with the direction of the signal.
Once the dashed white lines and colored risk zones appear, use the Entry line as the suggested area of execution.
The Stop Loss line provides a definitive, volatility-based invalidation point that should be respected.
As price moves in favor of the active setup, closely monitor the progression through the green reward zones.
If the "Breakeven on TP1" feature is enabled in the settings, observe the Stop Loss label automatically transitioning to a Breakeven line once the first target is struck, theoretically securing the position.
Finally, use the dynamic Risk:Reward live label attached to the current price action to actively monitor the floating R-multiple of the current signal.
⚙️ Inputs and Settings
RSI Length & RMA Lengths: Controls the core sensitivity of the underlying momentum engine. Lower values create more frequent signals, while higher values smooth the data for longer-term trend captures.
ATR Length & SL Multiplier: Defines the strictness of the stop loss protocol. A higher multiplier increases the breathing room for the trade but mathematically requires a larger price move to achieve a 1R target.
TP Risk:Reward Multipliers: Customizes the exact distance of the three take-profit targets relative to the initial ATR-based risk unit.
HTF Timeframe: Sets the macro timeframe used for the overarching trend consensus filter.
Choppiness / ADX Filter: Toggles the strict requirement for a minimum ADX threshold to validate signals, preventing entries in tight trading ranges.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Momentum Derivatives and Relative Strength
The foundational architecture of this script rests upon J. Welles Wilder Jr.'s Relative Strength Index (RSI), a momentum oscillator that measures the speed and change of price movements.
The mathematical formula bounds the output between absolute values of 0 and 100.
By taking a derivative of this oscillator—specifically applying Relative Moving Averages (RMAs, which are mathematically equivalent to Wilder's Smoothing method or an Exponential Moving Average with alpha = 1/length)—the script effectively isolates the velocity of the momentum itself.
The intersection of a fast-period RMA and a slow-period RMA of the RSI mathematically represents a point of momentum inflection, where short-term acceleration deviates significantly from the longer-term mean.
● Volatility-Normalized Risk Management
The utilization of the Average True Range (ATR) establishes a statistically sound, non-static risk framework.
ATR quantifies the historical volatility of an asset by calculating the greatest of the current high minus the current low, the absolute value of the current high minus the previous close, and the absolute value of the current low minus the previous close.
By multiplying the ATR by a specific scalar value, the script dynamically calculates a stop-loss distance that is statistically placed outside the normal noise distribution of the current market environment.
This approach is scientifically superior to static percentage-based stop losses, as it continuously adapts to the heteroskedasticity (changing variance) inherent in complex financial time series.
● Trend Directionality and Vector Strength
The Average Directional Index (ADX) component provides a purely quantitative measure of trend strength that is entirely independent of direction.
ADX is derived from the smoothed moving averages of the +DI and -DI, which measure the positive and negative directional movement vectors.
By requiring the ADX to breach a specific numerical threshold, the script mathematically filters out random walk (stochastic) market phases.
This ensures that the structural momentum setups only trigger when they occur within a statistically significant directional drift, massively increasing the probability of trend continuation.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

MACD RSI Signal [XWiseTrade]MACD RSI Signal
The classic MACD settings — 12, 26, 9 — were chosen decades ago for daily stock charts, where they roughly meant "half a month, one month, and a week." Almost everyone then copies those exact numbers onto 5-minute, 15-minute and hourly charts, where they no longer correspond to anything meaningful. This indicator rebuilds the MACD/RSI combination for intraday trading, with periods anchored to how the global trading day is actually structured, and with RSI graded in zones rather than a single overbought/oversold line.
Why simple moving averages, not exponential
Most MACD implementations use exponential moving averages, which deliberately weight recent bars more heavily than older ones. That weighting is a built-in assumption — that the latest price matters more. This indicator uses simple moving averages instead: every bar in the window counts equally. The result is a less manipulated, more faithful read of raw price action, with no human assumption about which bars "should" matter more. For intraday decisions, that neutrality lets the price structure speak for itself rather than through a weighting curve.
Why the periods are 12 / 24 / 8
Read on the 1-hour scale these map to real session structure: 12 ≈ the split between the Euro/US half of the day and the rest; 24 ≈ a full intraday higher-timeframe day; 8 ≈ the length of a single major session (London, New York, Asia). The point isn't that these numbers are magic — it's that the original 12/26/9 only ever made sense as "days," and on intraday charts that meaning is lost. Anchoring to sessions restores a reason for the numbers. You can apply it to higher or lower timeframes, but the 1-hour scale is its reference point.
How the signal is graded
A signal is not a single MACD cross. It requires momentum to be persisting: the MACD histogram must be positive and expanding for a bull case (negative and expanding for a bear case) — momentum actually accelerating, not a one-bar cross that fades.
RSI then grades that momentum, using zones based on familiar ratios (0.214 / 0.382 / 0.618 / 0.786) instead of plain 30/70 — finer resolution for intraday work:
Pass (solid Bull/Bear) — RSI between 0.382 and 0.618 (38.2–61.8): healthy core, room to run.
Warning (small marker) — RSI outside that core but not extreme: momentum persists, but the move is stretched — lower quality.
Veto (no signal) — RSI beyond 0.786 or below 0.214: too extreme, the signal is rejected rather than shown.
How to use it
Add it to a chart — built for intraday, with the 1-hour scale as the reference. Solid Bull/Bear labels are momentum that passed the RSI grade. Faint bull? / bear? markers are persisting momentum that RSI flagged as stretched — treat with caution. No label means the setup was either too weak or vetoed as overextended. The MACD here is built on simple (unweighted) moving averages rather than the usual exponential ones — every period is given equal weight, a more neutral read — and every zone bound is adjustable.
What makes it different
Standard MACD+RSI scripts copy daily-era settings onto every timeframe and use RSI as a single yes/no filter. This one re-anchors the periods to real session structure for intraday use, defines a signal as persisting, expanding momentum rather than a momentary cross, lets RSI grade and veto that momentum across zones instead of a binary line, and uses unweighted moving averages so no single bar is given outsized influence.
Inputs: MACD fast/slow/signal,RSI length, Fibonacci-style zone bounds, cooldown.
These are descriptive signals for discretionary use, not buy/sell recommendations. Indicator

Z-Score Flow Pro [JOAT]Z-SCORE FLOW PRO
A rigorously-statistical mean-reversion oscillator built on top of two of the cleanest primitives in market analysis — the Z-score of price against its own rolling mean and the EMA-smoothed RSI — and wrapped in a regime-aware visual and signal pipeline that knows when not to fire.
Why Z-score
A Z-score answers the question every reversion trader is really asking: "How many standard deviations is price from where it usually sits?" It is regime-aware by construction — when realised volatility expands, the same dollar move produces a smaller Z; when it contracts, the same dollar move produces a larger Z. That means the signal levels (Z = ±2, ±3, etc.) carry the same statistical meaning across instruments and timeframes, which a price-distance level never does.
Z-Score Flow Pro uses:
Z-score core — close vs SMA basis, normalised by rolling stdev, over a configurable lookback (default 100).
EMA trend filter — a long EMA (default 50) decides which side of the chart the engine considers in-regime. Signals are weighted by regime alignment, not blindly suppressed.
Smoothed RSI — RSI is computed, then EMA-smoothed (default 8-bar) to eliminate the single-bar whipsaws that plague the raw indicator without re-introducing visible lag.
A signal needs both the Z-score and the smoothed RSI to be at extremes on the same side — that AND-gating is what removes most of the false signals that pure RSI or pure Z systems produce.
Signal engine
A Buy signal requires Z ≤ Buy threshold (default −2.0) and smoothed RSI ≤ oversold level (default 30). A Sell signal requires Z ≥ Sell threshold (default +2.0) and smoothed RSI ≥ overbought level (default 70). A configurable cooldown prevents back-to-back signals; the labels respect the EMA regime filter so the strongest read is when signal direction agrees with the EMA trend.
Background heatmap (JOAT enhancement)
The chart pane is tinted bull or bear with an intensity proportional to |Z|. The mapping is linear: at Z = 0 the heatmap is nearly invisible, at |Z| = the saturation threshold (default 1.5) the tint reaches its loudest configured opacity. Both ends are tunable, so you can dial the heatmap from "barely there" to "institutional cockpit". This is the cleanest at-a-glance read of how stretched the market is right now — you do not need to read the Z value itself.
Divergence engine (JOAT enhancement)
A slope-comparison divergence runs in parallel: it compares the slope of the Z-score against the slope of price over a configurable lookback. A bullish divergence requires price slope negative and Z slope positive; bearish is the mirror. Both slopes must exceed a small epsilon to suppress flat-region noise, and a divergence cooldown spaces them out. Divergences print directly in the chart pane in the palette colour.
Slope-coloured Z-mean line
The Z-score's own running mean is plotted as a slope-coloured ribbon: bull / bear / flat colours based on the slope over a configurable sensitivity window. The shadow underneath the line uses an alpha-modulated version of the same colour so the line visually breathes with regime.
Dashboard
A compact monospaced table, positionable to any of nine corners, with togglable cell transparency. Rows surface:
Current Z-score and its direction (Rising / Falling / Flat).
One-year (252-bar) percentile of Z — how unusual the current reading is in its own recent history.
Smoothed RSI and its slope direction.
Active EMA regime (Up / Down / Neutral).
Distance of Z from its own min/max range (position-in-Z, 0–100%).
Alerts
Alerts are exposed for buy / sell signals, divergences, regime flips, and a configurable Z-extreme alert that fires when |Z| crosses a user-set high level (default 3.0). The extreme alert is the cleanest "the market is genuinely far from home" trigger this script produces and is suitable for end-of-day notification workflows.
How to read it
Three reads, in order of conviction:
Background heatmap — a glance tells you whether you are in a normal-Z regime (no tint) or stretched (bright tint). Most of the time, do nothing.
Signal labels — fade extremes only when both Z and RSI agree, and respect the EMA regime — counter-trend trades into a sustained EMA-aligned move are lower-conviction by definition.
Divergences — the highest-conviction reads. A bullish divergence with the heatmap saturated bear and the signal in the right direction is the cleanest setup the engine can produce.
Suggested settings
Defaults are tuned for 1H–4H on liquid markets. For 5m–15m, drop Z period to 50 and RSI period to 9. For daily and above, raise Z period to 200 and EMA trend filter to 100. The thresholds (±2.0 Z, 30/70 RSI) are intentionally classic — they correspond to the textbook two-sigma deviation and are well-understood; loosen them only if you are running on a less-liquid instrument.
Originality / what's reused
Z-score and RSI are public-domain mathematics, used here as primitives. The implementation — the smoothed-RSI gating, the slope-coloured Z-mean line with alpha shadow, the |Z|-driven background heatmap, the 252-bar percentile rank, the divergence epsilon filter, and the AND-gated signal pipeline — is JOAT-original and tuned together. No third-party code reused.
Open source
Published open-source under the default Mozilla Public License 2.0. Every section is banner-headed, every helper is documented inline, every input carries a tooltip. The Z-mean line, the heatmap, the divergence engine, and the dashboard are each in their own isolated module so you can study or adapt any single piece without reading the whole file.
Limitations
Z-score mean-reversion is a counter-trend tool by definition. In sustained one-sided trends the Z will live at an extreme for many bars and the signals will give back giveback — the EMA regime filter exists to warn you when you are in this state. The 252-bar percentile rank needs ~1 year of data to be meaningful; on shorter histories it warms up to neutral. Divergences are non-repainting but carry the natural lag of slope-over-window comparison.
—
-made with passion by jackofalltrades
Indicator

Tension Flow RR [JOAT]TENSION FLOW RR
A trend-signal engine wrapped in a full risk-reward execution layer — Hull Moving Average baseline, Z-score normalised tension reading, ATR-sized stops and targets, optional R-multiple-triggered trailing stop, and a rolling-window backtest that tracks every closed trade and reports win rate / cumulative R / equity sparkline directly on the chart. Built for traders who care about what happens after the signal fires , not just the signal itself.
Trend signal — HMA + Z-score tension
Two cleanly chosen primitives:
Hull Moving Average (HMA) — a chained-WMA construct that delivers a fast, low-lag trend baseline. The square-root final smoothing step is what makes it noticeably less laggy than EMA at the same length.
Z-score of (close − HMA) — the residual is normalised by its own rolling stdev so the tension reading is dimensionless and comparable across instruments. |Z| above the overextended threshold (default 2.0) tags the move as overextended in the Energy Dashboard.
A new trend signal fires when the configured signal cooldown has elapsed and the directional logic flips. The signal is non-repainting (confirmed on bar close).
ATR-sized stops and targets
Each signal automatically renders:
SL box — a translucent box sized at SL-ATR × multiplier (default 2.0 × ATR-200) from entry, drawn in the bear colour.
TP box — sized at SL distance × Risk:Reward ratio (default 1.0R), drawn in the bull colour.
Trailing-stop line (optional, JOAT enhancement) — when enabled and price moves more than the activation threshold (in R-multiples) in your favour, the stop ratchets behind price by Trail-ATR × multiplier. Configurable bar-by-bar trail step, optional break-even lock at activation.
This is full execution geometry — you can see entry, stop, target, and the trail's path on the chart at all times.
Rolling-window backtest (the headline)
The script tracks the last N closed trades (configurable, default 100) and produces live performance statistics that update tick-by-tick:
Total trades, wins, losses, breakevens.
Win rate, with colour-coded cell — green above the configured "green" threshold, amber between, red below.
Average R per trade, best R, worst R.
Cumulative R since the start of the window.
Profit factor.
Expectancy in R-multiples.
Unicode equity sparkline — a compact in-cell chart of the last N cumulative-R points, drawn directly in the dashboard cells with block-character glyphs.
Trades are evicted FIFO when the history window is exceeded, so the win rate is always a rolling read of recent performance, not lifetime stats — which is the right read for a working trader.
Two dashboards
Energy Dashboard (Bottom-Right by default) — compact 22-row read of current Z-score, trend direction, HMA value, overextension flag, ribbon width, ATR, and signal state.
RR Performance Dashboard (Top-Right by default) — 29-row institutional read of the rolling backtest stats above, plus the equity sparkline.
Both are independently positionable, sizeable, and toggle-able. The split lets you run "engine state" on one corner and "PnL state" on the other without overlap.
Trend ribbon
The HMA is rendered with an ATR-band ribbon (configurable width) whose transparency is dynamically modulated by current Z-score — the ribbon visually breathes with tension. Toggle off if you prefer a clean line.
Alerts
Alert conditions are exposed for new signals, SL hits, TP hits, trailing-stop hits, overextension events, and two win-rate threshold alerts: Win-Rate High (crossover above the configured high level) and Win-Rate Low (crossunder below the configured low level). Win-rate alerts are suppressed until a minimum sample size has been recorded, so you do not get a 100% win-rate alert from a single lucky trade.
How to read it
The script is designed to be used as a closed loop:
Take the trend-start signal as the entry. The HMA + Z-score logic is the signal; the SL/TP boxes are the geometry.
If trailing is enabled, the line will appear once unrealised PnL exceeds the activation threshold and will ratchet from there.
When the trade closes, the rolling backtest updates — watch the win-rate colour and the cumulative-R sparkline.
If win-rate trips the low alert, that is the script telling you the current regime does not suit the current settings.
The cumulative-R sparkline is the most honest single line on the dashboard — if it is climbing, the engine is doing its job; if it is grinding flat or down, it isn't, and you should re-evaluate parameters or stand aside.
Suggested settings
Defaults (HMA 50, Z 50, 2.0 R-stop, 1.0 R-target) are calibrated for 1H–4H on liquid markets. For lower timeframes drop both lengths proportionally and consider a Risk:Reward above 1.0 to offset the higher signal frequency. For daily and above, raise lengths and lower the signal cooldown.
Originality / what's reused
HMA, Z-score, and ATR-sized stops are public-domain primitives, used here as building blocks. The implementation — the Z-normalised tension reading, the R-multiple activation trailing stop with break-even lock, the colour-coded rolling-N backtest, the Unicode equity sparkline rendered inside table cells, the dual-dashboard split, and the sample-gated win-rate alerts — is JOAT-original and tuned together. No third-party code reused.
Open source
Published open-source under the default Mozilla Public License 2.0. The execution geometry, the rolling-trade tracker, the Z-modulated ribbon, and the sparkline renderer are each isolated so you can adapt any one without reading the whole file. Forks welcome with credit.
Limitations
The rolling backtest is a descriptive read of recent signal performance under the current settings — it is not a predictive metric and changing the parameters resets the read. SL / TP geometry assumes a single position per signal direction; the script is not a position manager. Trailing stop fires on confirmed bars; intra-bar movement past the trail level is registered but the close determines the outcome.
—
-made with passion by jackofalltrades
Indicator

Momentum Vol Composite Pro [JOAT]MOMENTUM VOL COMPOSITE PRO
A four-factor composite oscillator that fuses momentum, volatility, volume-flow, and trend into a single Z-normalised line — then exposes per-factor weights, divergence detection, an ASCII gauge dashboard, and a slope-coloured composite MA. Built on the idea that no single oscillator tells you what the market is doing — but four orthogonal ones, properly normalised and weighted, can.
The four factors
Each factor is Z-normalised (subtract its own rolling mean, divide by its own rolling stdev) before being blended, so they all live on the same scale and a weight of "0.25" actually means "one-quarter share of the composite" regardless of the instrument:
ROC (Rate-of-Change) — the price-velocity factor. Captures pure directional momentum.
ATR (volatility) — the range-expansion factor. Rises when bars are getting larger; useful as a "the market is committing" signal.
Volume Flow — cumulative volume minus its own EMA. A proxy for net accumulation/distribution that is regime-aware (it normalises around its own trend).
EMA Difference — short EMA minus long EMA, the classic MACD-style trend factor.
The four Z-scores are weighted (sliders 0–4 each, default 0.25 each), sum-normalised internally so any positive configuration is valid, and combined into a single composite Z-line. An EMA smoother on top of the composite produces the slope-coloured Composite MA that drives Buy/Sell flips.
This is what "composite" should mean — orthogonal factors, weighted, on a common scale, with the weights exposed so the trader controls the personality.
Why per-factor weights matter
Default 0.25 / 0.25 / 0.25 / 0.25 reproduces the textbook equal-weight composite. But equal weights are an assumption , not a fact. If your instrument is volume-driven, raise VolFlow Weight. If your timeframe is dominated by trend, raise EMA Diff Weight. If you are scalping a noisy intraday environment, drop ROC Weight in favour of VolFlow. The composite reshapes itself live as you slide.
Signal engine
A Buy signal fires when the composite MA slopes up; a Sell fires when it slopes down. The composite line itself crosses the configurable threshold guides (default ±1 Z) to mark "extreme bull" and "extreme bear" states. A separate alert fires when |composite| crosses the Extreme threshold (default 2.0 Z) — the script's strongest read.
Divergence engine (JOAT enhancement)
A slope-comparison divergence runs in parallel: it compares the slope of the composite against the slope of price over a configurable lookback. Both slopes must exceed an epsilon to filter out flat-region noise, and a divergence cooldown spaces them out. Divergence labels can be forced onto the main chart pane via force_overlay so you can see them without flipping to the oscillator pane.
Histogram background
Faint columns plot the raw composite value behind the line — this is useful as a "before the slope flips" early read. You can see exhaustion building in the histogram before the slope-coloured MA actually turns.
ASCII gauge dashboard (JOAT enhancement)
A monospaced dashboard with a unique feature — each per-factor row shows both the numeric Z-value and an ASCII bar gauge ("|||||----" style) that renders the value visually inside the table cell. The gauge maps Z in the range linearly across N glyphs (configurable width), with a separator at the centre. At a glance you can see which factors are dominating without reading the numbers.
Dashboard rows:
Composite Z + bar gauge + status (extreme bull / bull / neutral / bear / extreme bear).
ROC Z + gauge.
ATR Z + gauge.
VolFlow Z + gauge.
EMA Diff Z + gauge.
Composite MA slope (Rising / Falling / Flat).
Last signal direction with bar age.
Divergence status with cooldown remaining.
Visual system
Slope-coloured composite MA (bull / bear by slope sign, configurable width).
Translucent composite line for context (transparency configurable, default matches the v5 source).
Threshold guide lines at ±1, zero line, and faint background histogram for exhaustion-before-flip reads.
Buy / Sell labels can be force-overlaid onto the main chart pane if desired.
A locked Emerald-Night palette (vivid green bull / vivid red bear / sage neutral on a midnight-forest ground) gives the pane a distinct identity.
Alerts
Five alert conditions:
Composite crossover above high threshold (default +1)
Composite crossunder below low threshold (default −1)
|Composite| crosses Extreme |Z| (default 2.0)
Bullish divergence detected
Bearish divergence detected
How to read it
Three reads, in order of conviction:
ASCII gauge agreement — when all four factor gauges point the same way, the composite is a high-conviction read. When they disagree, the composite is a wash.
Composite MA slope — once the smoothed line slope flips and price agrees, you have a clean signal.
Divergence + extreme |Z| — the rarest and strongest read. A divergence at a composite extreme tells you that one of the factors is rolling over while price is not, which is the textbook reversal setup.
The histogram is the leading indicator on the line — when it starts shrinking while price is still extending, the slope is about to flip.
Suggested settings
Defaults (ROC 14, ATR 14, VolFlow 20, ShortEMA 12, LongEMA 26) reproduce the classical configuration. For lower timeframes drop all lengths roughly proportionally. The per-factor weights are where the personality lives: pure trend-following bias → raise EMA Diff to 1.5, drop ATR to 0.1. Pure volatility-of-momentum bias → raise ROC and ATR, drop VolFlow.
Originality / what's reused
The factor primitives (ROC, ATR, EMA difference, cumulative volume flow) are public-domain. The Z-normalisation pipeline that puts them on a common scale, the sum-normalised per-factor weighting, the ASCII bar-gauge dashboard, the histogram-behind-line exhaustion view, the slope-coloured composite MA, and the divergence engine with epsilon filter are all JOAT-original and tuned together as a single oscillator. No third-party code reused.
Open source
Published open-source under the default Mozilla Public License 2.0. Sectioned source, tooltips on every input, helper functions documented inline. Each factor's Z-normalisation, the weighting pipeline, the gauge renderer, and the divergence detector are isolated modules — adapt any single one without reading the whole file.
Limitations
The composite is statistical in nature — it tells you how stretched the blend is, not which specific factor is driving the read. That is what the per-factor rows are for. The Z-normalisation needs enough history to be meaningful; on a fresh chart with little data the composite warms up to flat. Divergences are non-repainting but carry the natural lag of slope-over-window comparison.
—
-made with passion by jackofalltrades
Indicator

Alpha Signal Engine Pro [MarkitTick]🎁 Our gift to the TradingView community.
This indicator was previously available as a paid, invite-only tool. Today, it is permanently and unconditionally free — open to every trader on TradingView without restriction, without a subscription, and without an expiration date.
No catch. No trial period. Ours to you, forever.
💡A comprehensive trend-following and market-state detection framework . It operates by generating a dynamic, volatility-adjusted trailing band that reacts not just to price movements, but to the shifting structural regimes of the asset. By analyzing True Range, historical price percentiles, and momentum simultaneously, this indicator filters out market noise and isolates high-probability directional shifts. It inherently guards against false signals during flat or consolidating markets through a multi-layered filtering matrix, ensuring that traders are presented with actionable data only when strict momentum and structural conditions are met.
● ✨ Originality and Utility
Most trend-following systems rely on static multipliers or fixed lookback periods, rendering them susceptible to sudden market regime changes. The primary utility of this engine lies in its adaptive nature. It introduces a Volatility Fingerprint module that constantly scans the environment, classifying the market into distinct regimes: Alpha, Beta, Gamma, and Delta. Based on this continuous assessment, the indicator autonomously scales its sensitivity, smoothing depth, and filter thresholds. This means the engine tightens its criteria during erratic, low-liquidity chop and expands its bands during high-volatility expansions, providing an organic, self-adjusting framework that eliminates the need for constant manual parameter tuning.
● 🔬 Methodology and Concepts
• Dynamic Trailing Core
At the heart of the engine is a composite distance formula that calculates a dynamic half-band. Instead of relying solely on a basic Average True Range (ATR) multiplier, it combines three elements: an absolute band multiplier, an ATR weight normalized against the closing price, and a raw price move weight. This composite value is then smoothed using an Exponential Moving Average (EMA) alpha factor. The resulting smoothed band is applied to the median price to establish upper and lower boundaries, forming the basis of the trendline.
• Volatility Fingerprinting
The script normalizes the ATR as a percentage of the closing price and ranks it against a historical lookback window using non-parametric percentile thresholds. By splitting the historical distribution into quartiles (25th, 50th, and 75th percentiles), the asset's current volatility is placed into a specific bucket. The core mathematical weights and matrix thresholds are then dynamically multiplied by regime-specific scalars.
• Alpha Filtering Matrix
To prevent whipsaws, the script employs a five-layer matrix that acts as a logical gatekeeper before any signal is validated:
- Trendline Stall: Measures the absolute change in the trendline against a fraction of the ATR.
- Slope Regression: Computes the linear regression slope of the trendline over a rolling window and normalizes it.
- Volume Gate: Compares current volume to a dynamic simple moving average of volume.
- Range Gate: Checks if the current bar's High-Low range exceeds a specific historical percentile.
- Basis Point (BPS) Delta: Ensures the trendline shift meets a minimum percentage threshold.
• Breakout Override
If the market suddenly explodes with extreme momentum, a Breakout Override function bypasses the filtering matrix. If the absolute change in price heavily exceeds a set multiple of the ATR, the system immediately forces engagement to capture the breakout.
● 🎨 Visual Guide
• Dynamic Trendline
A solid line plots the active trailing stop and trend direction. By default, it is colored Cyan for a Bullish trend and Magenta for a Bearish trend. This line steps up or down along with price action, providing a clear visual anchor for the current structural bias.
• Dynamic Bar Coloring
The chart's candlesticks are dynamically colored using a visual gradient. The script measures the normalized distance of the closing price from the trendline. When price is near the trendline, candles assume a neutral slate-blue tone. As momentum carries price further away, the color interpolates into bright Cyan (Bullish) or Magenta (Bearish), immediately illustrating trend strength.
• Cloud Fill
A semi-transparent cloud is drawn between the primary trendline and a smoothed moving average of the typical price. This creates a visual "value zone" on the chart, helping users quickly identify the spatial relationship between the current trend anchor and the smoothed price core.
• HUD Dashboard
A comprehensive heads-up display is positioned in the top-right corner of the chart. It outputs real-time diagnostic data:
- Direction: Displays the current structural bias (Bullish/Bearish).
- Signal: Indicates if an actionable Buy or Sell signal is present.
- Override: Shows the status of the Breakout Override (Off, Nominal, or Engaged in Orange).
- Matrix Pillars: Five rows display the status of the Stall, Slope, Volume, Range, and BPS Delta filters. A Red "Flat" tag indicates the filter is blocking signals, while a Green "Active" tag indicates the path is clear.
- VF Regime: The bottom row explicitly states the current volatility state (Alpha, Beta, Gamma, or Delta) with corresponding color codes.
• Signal Labels
When a directional flip occurs and the matrix conditions are met, explicit "BUY" (Upward pointing, subtle green) or "SELL" (Downward pointing, subtle red) labels are plotted precisely at the trendline level.
• Non-Standard Chart Warning
If the user applies the script to Heikin Ashi, Renko, Line Break, Kagi, or Point & Figure charts, a bold Red warning table will appear in the top-left corner. This warns the user that standard signals may repaint due to the synthetic price data of non-standard charts.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
● 📖 How to Use
• Identifying Entries
Wait for a clear crossover of the closing price over the dynamic trendline. For a valid entry, ensure the HUD Dashboard confirms the matrix conditions are "Active" and not "Flat." The emergence of a defined BUY or SELL label serves as the primary action trigger.
• Managing the Trade
Once in a position, the dynamic trendline serves as a logical trailing stop-loss level. As the trendline steps in the direction of the trade, users can manually trail their risk. The color gradient on the bars provides a secondary gauge; fading colors suggest weakening momentum and a potential reversion to the mean.
• Regime Awareness
Monitor the VF Regime status on the dashboard. In "Alpha" or "Beta" (lower volatility), expect tighter bands and slower movements. In "Gamma" or "Delta" (extreme volatility), be prepared for wider stops and aggressive price action. The indicator will automatically handle the mathematical adjustments, but position sizing should reflect the increased environmental risk.
• Repaint Warning Note
Always utilize this indicator on standard candlestick or bar charts. The underlying calculations depend on absolute close, high, and low values. Applying this to Heikin Ashi will cause lookahead bias and repainting signals.
🏆 Golden Rule — Before You Trade This Indicator:
Never rely on the default settings, every asset behaves differently. Every timeframe has its own rhythm. Default settings are a starting point — not a strategy.
The best configuration is the one you build yourself, through deliberate testing:
Adjust the settings methodically until false signals are minimized and entry/exit accuracy is maximized.
Test on your specific asset. Test on your specific timeframe. Then lock in what works.
The trader who takes time to configure is the trader who profits consistently.
● ⚙️ Inputs and Settings
• Volatility Fingerprint Group
Allows users to toggle the adaptive engine on or off, and set the lookback length used to determine the historical percentiles for regime classification.
• Core Engine Parameters
Controls the baseline foundation. Adjust the ATR period, the absolute Band Multiplier, the relative ATR Weight, the Price Move Weight, and the EMA Smoothing Length. When VF is enabled, these act as the baseline from which multipliers scale.
• Alpha Filtering Matrix
Provides granular control over the five anti-chop filters. Users can toggle each filter independently and adjust their strictness, such as the Flatness Threshold, Regression Length, Slope Threshold, Volume MA Length, and Range Percentile.
• Display & Cloud Configuration
Permits full aesthetic customization of the Bull/Bear colors, neutral gradient tones, visibility of the dashboard, signal labels, and the transparency parameters of the cloud fill.
• Alert Actions
Customizable string inputs that feed directly into the JSON webhook alert system, allowing automated traders to define syntax for Long, Short, Close Long, and Close Short actions.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
• Autoregressive Smoothing and Moving Averages
The system employs an Exponential Moving Average (EMA) to smooth its dynamic raw band. The mathematical alpha factor is defined as 2 / (N + 1), where N is the user-defined smoothing length. This recursive formula assigns geometrically decreasing weights to older observations, ensuring the trendline remains highly responsive to recent price vectors while mathematically filtering high-frequency noise.
• Non-Parametric Rank Statistics
To evaluate the volatility state, the script calculates the nearest-rank percentile of the normalized ATR over a rolling window. Unlike standard standard-deviation bands (such as Bollinger Bands) that assume a normal Gaussian distribution of returns, this non-parametric percentile approach does not assume normality. This is statistically robust for financial time series, which exhibit leptokurtic (fat-tailed) distributions, ensuring accurate classification even during severe market outliers.
• Linear Regression and Slope Normalization
The Slope Filter relies on the Ordinary Least Squares (OLS) linear regression of the trendline. By calculating the change between the current linear regression value and the previous bar's value, it extracts a pure mathematical slope. To make this slope asset-agnostic, it is normalized by dividing the raw slope by the ATR, yielding a dimensionless ratio that accurately represents directional velocity regardless of the instrument's absolute price.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Arc Trail Regime [JOAT]Arc Trail Regime is an open-source Pine Script v6 overlay that builds an accelerating trail around an adaptive EMA arc and gates directional flips with VWAP location. It is designed to show when price has crossed a dynamic trailing level while the broader value anchor agrees with the new side.
The script focuses on a smooth regime trail rather than many signal markers. It displays the active arc, a soft cloud, optional gradient candles, and right-edge shelf levels created after confirmed flips.
Core Concepts
1. Adaptive Arc Core
The core blends fast and slow EMA curves. The blend weight increases when recent speed and volatility expansion increase, which makes the arc respond faster during active movement.
speedRaw = math.abs(ta.ema(ta.change(sourceInput), 4)) / atrValue
volRatio = nz(ta.ema(atrValue, 5) / ta.ema(atrValue, 55), 1.0)
curveWeight = f_clamp(0.38 + speedNorm * 0.18 + volSpeed * 0.22, 0.25, 0.82)
arcCore = ta.ema(slowArc + (fastArc - slowArc) * curveWeight, 3)
2. VWAP Gate
Bull flips require price to be above VWAP. Bear flips require price to be below VWAP. This keeps the trail aligned with a basic value-location filter.
3. Accelerating Trail Width
The trail distance uses ATR and a volatility speed boost. During active movement, the trail can tighten within bounds so it reacts faster to regime changes.
4. Confirmed Flip Shelves
When a confirmed regime flip occurs, the script draws a shelf line near the flip bar. The shelf remains active until price invalidates it.
5. Distance Candles
Candles can be colored from bearish to bullish based on their normalized distance from the active trail.
Features
Adaptive arc core: Blends fast and slow curves by speed and volatility
VWAP-gated flips: Direction changes require price location agreement
ATR trail: Trail distance scales with chart volatility
Arc cloud: Soft band around the active trail
Active shelves: Right-edge support/resistance references after confirmed flips
Confirmed buy/sell flip markers: Compact BUY and SELL dots are offset away from candles and only print after confirmed regime flips
Gradient candles: Optional candle coloring by trail distance
Dashboard: Shows regime, VWAP side, distance, speed, and shelf status
Alerts: Confirmed bull flip and confirmed bear flip
Input Parameters
Visuals:
Palette Preset: Selects bull and bear colors
Arc Cloud: Shows the trail cloud
Gradient Candles: Enables candle coloring
Confirmed Flip Signals: Shows compact BUY and SELL flip markers
Active Shelves: Shows flip shelf lines and labels
Engine:
Source: Price source
Inner Curve Length: Fast EMA length
Outer Curve Length: Slow EMA length
ATR Length: Volatility length
Base Trail Width: Starting ATR trail multiplier
Volatility Speed Boost: Controls how much expansion affects the trail
How to Use This Indicator
Step 1: Read the Active Regime
The dashboard shows Bull or Bear based on the active trail side.
Step 2: Confirm VWAP Location
The VWAP row shows whether price is above or below the value gate used by the script.
Step 3: Monitor Shelves
Shelf lines are created after flips and can act as visual invalidation references.
Indicator Limitations
Trail systems can whipsaw during sideways markets
VWAP behavior varies across sessions and symbols
A shelf is a visual reference, not a complete stop model
Fast volatility shifts can temporarily widen or tighten the trail abruptly
Originality Statement
Arc Trail Regime is original in its adaptive arc weighting, VWAP-gated regime flips, speed-sensitive trail width, and active shelf visualization. It is built with original Pine v6 code and public chart data.
Disclaimer
This script is provided for educational and informational use only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Trail flips can fail in range conditions or during abrupt volatility changes. Always use independent analysis and proper risk management.
-Made with passion by jackofalltrades
Indicator

Impulse Memory Engine [JOAT]Impulse Memory Engine is an open-source Pine Script v6 overlay that measures fresh displacement, stores directional memory with exponential decay, and displays adaptive retest rails after significant impulse bars. It is built to answer a simple question: is the most recent meaningful impulse still fresh enough to matter?
The script blends MAD-style distance, ATR, trend basis, and decay memory. This creates a visual layer that distinguishes fresh impulse, fading impulse, and reset conditions while keeping the chart clean.
Core Concepts
1. MAD and ATR Normalized Displacement
The script estimates a robust distance unit using median absolute deviation and ATR. The impulse score is the one-bar displacement divided by this unit.
medianSource = ta.median(sourceInput, madLengthInput)
madDistance = ta.median(math.abs(sourceInput - medianSource), madLengthInput)
unitDistance = math.max(atrValue * 0.35, madDistance * 1.4826)
impulseRaw = safeRatio(sourceInput - sourceInput , unitDistance)
2. Trend Basis and Fast Track
A slower EMA defines the trend basis while a faster EMA tracks near-term movement. The distance between them contributes to the heat score.
3. Freshness Decay
When a bullish or bearish impulse appears, the script measures bars since that impulse and applies exponential decay. Fresh impulses have more weight; older impulses fade naturally.
bullBars = ta.barssince(bullImpulse)
bearBars = ta.barssince(bearImpulse)
bullFresh = na(bullBars) ? 0.0 : math.exp(-bullBars / decayLengthInput)
bearFresh = na(bearBars) ? 0.0 : math.exp(-bearBars / decayLengthInput)
memorySigned = bullFresh - bearFresh
4. Adaptive Bands
The trend band widens when memory strength increases. This helps separate quiet reset states from active impulse regimes.
5. Retest Rails
After a fresh impulse, the script stores a rail near the impulse bar. A confirmed retest occurs when price revisits the rail while memory remains directionally active.
Features
Impulse score: Measures displacement relative to MAD and ATR distance
Memory decay model: Tracks whether the last strong impulse is fresh or fading
Adaptive trend cloud: EMA basis and fast track are filled by memory state
Dynamic bands: Band width expands with volatility and impulse memory
Retest rails: Bull and bear rails remain visible for a configurable window
Rail labels: Active bull and bear rails are labeled at the right edge with spacing protection when both rails are close
Confirmed buy/sell labels: Compact BUY and SELL labels mark fresh impulse continuation or rail retest continuation on confirmed bars
Heat candles: Optional candle coloring by impulse and memory strength
Dashboard: Top-right panel shows impulse, memory, state, and rail status
Alerts: Fresh impulse, rail retest, confirmed buy, and confirmed sell conditions
Input Parameters
Source: Price source used for calculations
Trend Length: Slow EMA basis length
Fast Track Length: Faster EMA used inside the cloud
MAD Length: Median distance length
ATR Length: ATR distance length
Band Multiplier: Scales adaptive bands
Impulse Threshold: Minimum normalized displacement for a fresh impulse
Memory Half Window: Controls decay speed
Rail Visibility: Bars a rail remains eligible for retests
Heat Candles: Enables candle coloring
Dashboard: Shows or hides the top-right dashboard
Rail Labels: Shows active bull and bear rail labels
Buy/Sell Signals: Shows confirmed continuation signal labels
Palette: Selects the local JOAT color preset
Dashboard: Shows the panel
Palette: Selects color pair
How to Use This Indicator
Step 1: Read the Memory State
The dashboard state shows whether the script is tracking bull memory, bear memory, or resetting.
Step 2: Watch Fresh Impulse Events
Fresh impulse alerts show that displacement exceeded the configured threshold in the direction of the trend basis.
Step 3: Use Retest Rails
Rails act as reference levels after impulse. A retest is most meaningful when the dashboard memory state still agrees with the rail direction.
Indicator Limitations
Impulse detection is sensitive to the selected source and threshold
Very low volatility can make normalized movement appear larger
A rail retest is contextual and does not define risk by itself
The memory model fades old impulses; it does not predict the next impulse
Originality Statement
Impulse Memory Engine is original in its use of robust distance normalization, exponential impulse decay, adaptive bands, and retest rails in one compact overlay. It is built with original Pine v6 logic and public mathematical functions.
Disclaimer
This script is provided for educational and informational use only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss. Impulse readings can fail during choppy markets or sudden volatility shifts. Always use independent analysis and proper risk management.
-Made with passion by jackofalltrades
Indicator

Trade Execution Desk [JOAT]Trade Execution Desk is an open-source trade planning and session management tool designed for futures and structured discretionary traders who operate under daily loss limits, risk tier constraints, and session performance targets. It combines position sizing from account parameters, automatic pivot-based stop detection, three take-profit levels with risk-reward boxes, a 10-trade manual session log, and session status tracking into a single indicator.
The problem this addresses is the gap between an indicator that shows signals and a tool that translates those signals into an actual trade plan. Trade Execution Desk does not generate signals — it helps the trader structure the trade after a signal has been identified, ensuring that position size, stop placement, and profit targets are consistent with the account's defined risk parameters before the order is placed.
Core Concepts
1. Risk-Based Position Sizing
Position size is computed from the daily loss limit, maximum risk percentage, risk tier multiplier, and the calculated stop distance in ticks:
tierMult = tier == "FULL" ? 1.0 : tier == "HALF" ? 0.5 : 0.25
riskAmount = (dailyLossLimit * maxRiskPct / 100.0) * tierMult
contractsAllowed = math.floor(riskAmount / (stopDistTicks * tickValue))
This produces a contracts-allowed figure that respects the current risk tier and the actual stop distance on the current setup.
2. Three Risk Tiers
The FULL tier allows the full calculated position size. The HALF tier reduces it by 50%. The QUARTER tier reduces by 75%. Tier selection reflects the trader's confidence level or account drawdown state.
3. Auto Pivot Stop Detection
When auto stop is enabled, the indicator detects the most recent confirmed pivot high (for short trades) or pivot low (for long trades) and places the stop price at that level plus a configurable tick buffer. This anchors the stop to the nearest structural level automatically.
4. Trade Block Visualization
Entry, stop, and three TP levels are plotted as horizontal lines with right-edge labels. The risk zone (entry to stop) is shown as a translucent red box; the reward zone (entry to TP1) as translucent green. All objects extend rightward in real time.
5. Session Management
Four session-end conditions are tracked: daily target reached, maximum trade count reached, maximum loss count reached, and account rule violation. When any condition triggers, a session lockout overlay is displayed on the chart as a visual reminder that session trading is complete.
6. Manual Trade Log
Ten trade entries can be logged manually with tier type and result. Results are converted to the selected unit (points, ticks, dollars, or percent of account). Sequential processing chains each entry's outcome into running totals for session P&L, trade count, loss count, and violation flag. A promotion threshold tracks whether the session meets the criteria to advance to the next risk tier.
Features
Risk-based position sizing: Contracts calculated from loss limit, risk percent, tier multiplier, and actual stop distance
Three risk tiers: FULL / HALF / QUARTER with independent position size scaling
Auto pivot stop detection: Nearest confirmed pivot placed as stop with configurable tick buffer
Three TP levels with gradient boxes: TP1, TP2, TP3 as horizontal lines with translucent colored boxes
Session status tracking: Target, max trades, max losses, and violation triggers with visual lockout overlay
Ten-entry manual trade log: Each entry processed with tier, result, and unit conversion
Promotion threshold: Tracks whether session performance meets the criteria to advance risk tier
Unit conversion: All results displayable in Points, Ticks, Dollar, or Percent
Session lockout overlay: Full-chart colored overlay when session ends, with reason displayed
17-row institutional dashboard: Account params, tier state, stop/entry/TP levels, session status, trade log summary, promotion progress
Non-repainting: All pivot detections use confirmed pivot functions with symmetric lookback
Input Parameters
Risk Parameters:
Account Size ($), Daily Loss Limit ($), Max Risk % Per Trade
Tick Value ($), Ticks Per Point
Daily Target ($), Max Trades Per Session, Max Losses Per Session
Risk Tier and Carryover:
Current Risk Tier: FULL / HALF / QUARTER
Carryover Deficit ($), Quarter Violation Active toggle, Quarter Extra Deficit ($)
Trade Planning:
Trade Direction: Long / Short
Enable Auto-Pivot Stop toggle, Pivot Left/Right Bars, Stop Buffer (Ticks)
Manual Stop Price (0 = use auto)
RR Levels:
Show TP1, TP2, TP3 toggles with RR multiples and colors
Risk Zone and Reward Zone toggles
Result Unit: Points / Ticks / Dollar / Percent
Trade Log:
10 trade entries: Tier selector + Result value per entry
How to Use This Indicator
Step 1: Configure Account Parameters
Set your account size, daily loss limit, tick value, and ticks per point to match your trading instrument. Set the daily target and maximum trades/losses for your session rules.
Step 2: Select Risk Tier
Choose FULL, HALF, or QUARTER based on your current account standing or confidence level. The contracts-allowed figure in the dashboard updates automatically.
Step 3: Read the Entry/Stop/TP Levels
After identifying a trade direction, the auto-pivot stop places your stop at the nearest confirmed structural level. TP1, TP2, and TP3 are calculated automatically based on the stop distance and your configured RR multiples.
Step 4: Log Trades Manually
After each trade, enter the tier and result in the trade log section. The dashboard updates session P&L, win rate, and promotion progress in real time.
Step 5: Respect the Session Lockout
When the session lockout overlay appears, the reason is displayed prominently on the chart. The lockout is a visual reminder only — it does not interact with your broker.
Indicator Limitations
Position sizing uses tick value and ticks-per-point inputs specific to the traded instrument. These must be configured correctly for the output to be meaningful
The session lockout overlay is a visual reminder only. It does not block order placement
The manual trade log requires manual input after each trade. It does not auto-detect executions
Promotion threshold calculation uses simple arithmetic from input values and may not account for all possible rule variations across different prop firm structures
This indicator is a planning and logging tool. It does not generate entry or exit signals
Originality Statement
The combination of risk-tier-aware position sizing, session-end condition tracking with visual chart lockout, a 10-entry chained trade log with unit conversion, and a promotion threshold tracker in a single open-source overlay indicator is not replicated in existing Pine Script v6 publications
The sequential chaining of manual trade log entries through a processing function that propagates trade count, loss count, running P&L, and violation flag forward through ten entries provides structured session accounting within a chart indicator
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Position sizing outputs are mathematical calculations based on user-provided inputs and do not account for all real-world trade execution factors. Always verify position sizes and risk parameters independently before placing orders. The author accepts no responsibility for trading losses resulting from use of this indicator.
Made with passion by jackofalltrades
Indicator

Smart Trend Flow Pro [MarkitTick]💡 Navigating modern market structures requires a robust mechanism capable of filtering out transient noise while capturing the dominant directional vectors. The Smart Trend Flow pro is an advanced analytical framework designed to dynamically track market momentum and volatility, transforming complex price action into a highly readable, visual heatmap. By synthesizing trend identification with continuous volatility scaling, this tool aims to provide clarity in both ranging environments and high-expansion phases, allowing for more structured and disciplined market analysis.
✨ Originality and Utility
● A Paradigm Shift in Trend Visualization
Traditional channel-based indicators often suffer from severe lag or become entirely unreadable during periods of intense market contraction. The utility of this script lies in its adaptive ability to map structural boundaries and instantly correlate them with localized market energy. By discarding static thresholds in favor of a dynamic, self-adjusting baseline, the tool presents a unified view of both direction and conviction.
● Beyond Binary Signals
Standard indicators frequently rely on binary conditions—such as a simple moving average crossover—which ignore the underlying volatility context. This script pioneers a synthesized approach where the strength of a trend is continuously evaluated against its own historical variance. This allows users to visually differentiate between a low-conviction drift and a highly energized breakout, providing a much richer context for potential trade management and risk assessment.
🔬 Methodology and Concepts
● Dynamic Boundary Engine
At the core of the script is a reactive boundary detection mechanism. Rather than projecting fixed bands, the engine establishes fluid upper and lower parameters based on recent localized extremes. These boundaries can be structurally smoothed using various adaptive algorithms, effectively tuning the sensitivity of the channel to match the specific rhythm of the asset being analyzed.
● Volatility Normalization Process
To accurately gauge market energy, the framework continuously measures the distance between the established boundaries. This raw measurement is then subjected to a rigorous statistical normalization process. By evaluating current fluctuations against a rolling historical baseline, the engine maps the resulting variance onto a bounded curvilinear scale. This abstract transformation isolates the pure kinetic energy of the market, stripping away absolute price dependencies to provide a standardized metric of volatility expansion and contraction.
● Integrated State Tracking
The logical engine monitors the interaction between the closing prices and the smoothed boundary parameters. A structural shift is recognized only when price definitively breaches and sustains its position relative to these dynamic thresholds. This state-tracking ensures that the primary directional bias is maintained until a statistically significant reversal occurs, minimizing false positives during minor retracements.
🎨 Visual Guide
● Color-Coded Heatmap Candles
The primary visual feature is the complete transformation of the standard candlestick chart into a continuous heatmap. The colors directly correspond to the synchronized output of the trend direction and the normalized volatility metric.
Bullish Gradients: When the market establishes an upward bias, the candles transition through a cool-to-hot spectrum. Deep, cold colors represent low-volatility accumulation phases, while bright, hot neon colors signify intense, high-volatility bullish expansion.
Bearish Gradients: Conversely, downward structural shifts are mapped using a separate color spectrum. Dark, muted tones indicate slow, grinding bearish action, whereas vivid, hot colors highlight rapid, high-volatility sell-offs.
Neutral States: When the price resides within the core boundary parameters, demonstrating no clear directional dominance, the candles default to a flat, neutral gray to reduce visual noise.
● Signal Markers
Buy Labels: Distinct markers appear precisely below the price action when the engine confirms a definitive upward structural breach.
Sell Labels: Clear markers are printed above the price action upon the confirmation of a downward structural breach.
📖 How to Use
● Interpreting the Heatmap
The most effective way to utilize this tool is to read the candle colors as a topographical map of market energy. A transition from a neutral state into a cold bullish or bearish color suggests the early formation of a trend. As the colors heat up and transition toward their neon extremes, it confirms that the directional move is being supported by expanding volatility, which often characterizes the most robust phase of a trend.
● Managing Trend Exhaustion
Traders can monitor the intensity of the heatmap to gauge potential momentum decay. If a strong trend has been characterized by hot, neon colors, a gradual cooling off—where the colors revert to darker, colder shades—may indicate that the localized volatility is subsiding, suggesting potential consolidation or a pending structural shift.
● Confirming Breakouts
The printed Buy and Sell labels serve as structural confirmation points. These markers are best utilized not in isolation, but in confluence with the heatmap. A signal label accompanied by an immediate transition into a high-volatility color spectrum carries significantly more analytical weight than a signal that remains mired in a cold or neutral visual state.
⚙️ Inputs and Settings
● Channel Settings
Channel Length: Determines the primary lookback window for establishing the core upper and lower boundaries. Increasing this value creates a wider, slower-moving channel, while decreasing it makes the system highly sensitive to recent price action.
Channel MA Type: Allows the user to apply different smoothing algorithms to the boundaries. Options range from the standard baseline to advanced weighting methods, providing precise control over signal reactivity.
● Analytics Settings
Squeeze/Z-Score Length: Defines the historical window used to evaluate the relative volatility. A longer length provides a smoother, more macro-level volatility assessment, while a shorter length makes the heatmap highly reactive to sudden micro-expansions.
● Candle Heatmap Settings
Bullish/Bearish Color Controls: Fully customizable inputs allowing the user to define the exact hex values for the cold and hot extremes of both the bullish and bearish spectrums.
Neutral Market Base: The default color applied when the market is bound within the channel without a confirmed directional state.
● Signal Settings
Label Colors: Configurable color selections for the printed Buy and Sell confirmation markers.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Topological Price Mapping
At a fundamental level, the script treats financial time-series data not as discrete data points, but as a continuous topological surface. By evaluating the highest and lowest ranges over a specified temporal window, it effectively creates a rolling bounding box that encapsulates the probable distribution of future price vectors. The application of sophisticated moving average algorithms to these boundaries acts as a low-pass filter, mathematically attenuating high-frequency noise and exposing the true underlying macroeconomic drift.
● Non-Linear Variance Scaling
The most complex aspect of the engine is its approach to variance. Standard deviation on its own is an unbounded metric, making it difficult to utilize in a standardized visual format. The script solves this by isolating the width of the bounding box and comparing it against its own moving average and standard deviation. This transforms the raw width into a standardized probabilistic metric.
● The Sigmoidal Activation Function
To achieve the seamless visual gradient, this standardized variance must be mapped onto a finite plane. The engine employs a logistic function—specifically, a sigmoidal activation curve—to compress the unbounded variance data strictly between a 0 and 100 scale. This non-linear mapping ensures that the visual heatmap remains highly sensitive to subtle shifts around the mean, while gracefully asymptotically compressing extreme, outlier volatility spikes, thereby maintaining absolute visual coherence regardless of the asset's inherent behavior.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Vesper Candle Index [JOAT]Vesper Candle Index
Introduction
Vesper Candle Index is an open-source candlestick classification engine. Instead of marking every common candle pattern equally, it scores candle patterns using body quality, wick structure, trend location, volatility, and nearby structure context.
The indicator is designed to reduce pattern noise by ranking candle events and displaying only those that meet a configurable quality threshold.
Core Concepts
1. Candle Pattern Library
The script evaluates multiple candlestick states, including engulfing candles, hammers, stars, harami, inside breaks, marubozu, tweezers, rail patterns, and reclaim/reject conditions.
2. Quality Scoring
Each candidate pattern receives a score based on candle body, wick placement, trend context, volatility, and structure alignment.
3. Structure Context
Confirmed pivot levels are used to detect CHoCH-style breaks and candle reactions near recent structure.
4. Trade Projection Labels
When a candle state qualifies, the script can display compact educational entry, stop, TP1, and TP2 information.
5. Dashboard
The dashboard shows the current candle state, quality bucket, trend, structure, and recent signal context.
Features
Ranked candle states: Patterns are scored rather than treated equally
Structure-aware candles: Uses pivots and CHoCH context
Volatility-adjusted logic: ATR helps normalize wick and body requirements
Cooldown control: Reduces repeated pattern labels
Compact dashboard: Summarizes the highest-ranked current candle state
Confirmed patterns: Pattern events use confirmed bars
Input Parameters
Pattern sensitivity controls the quality threshold
Pivot length controls structure confirmation
ATR settings control wick/body normalization
Rail projection settings control optional visual projection length
How to Use This Indicator
Step 1: Focus on high-quality states
Use the quality score to separate strong candle states from weaker pattern appearances.
Step 2: Check structure alignment
Candle events near relevant structure are often more meaningful than isolated patterns.
Step 3: Avoid treating patterns as certainty
Candlestick patterns describe current bar behavior. They do not predict continuation or reversal.
Indicator Limitations
Candle patterns can fail in strong trend or news conditions
Pivot-based structure is delayed by the selected pivot length
The script classifies candles; it does not forecast future direction
Originality Statement
Vesper Candle Index adds scoring, structure context, volatility normalization, cooldown behavior, and a dashboard to candlestick analysis. Its value is in ranking candle quality rather than simply labeling every pattern.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Candlestick patterns can be misleading when used alone.
-Made with passion by jackofalltrades
Indicator
