HalfTrend Long/Short Signal Engine [BigBeluga]HalfTrend Long/Short Signal Engine is an institutional-grade trend tracking toolkit built for TradingView. It filters out minor market noise to deliver definitive, non-repainting long and short entry signals based on asset volatility and structural swing pivots.
Instead of displaying standard lag-heavy moving averages, this system uses an adaptive directional engine to lock onto clean trend lines and overlay automatic risk-management matrices directly onto your chart. It calculates real-time win rates and scans multiple assets simultaneously so you can trade with systematic statistical backup.
🔵 MAIN ENGINE & MARKET CALCULATION MECHANICS
1. Pure HalfTrend Price Filter Matrix
Swing Pivot Trackers: The engine scans local high and low data using an adjustable lookback filter ( Amplitude ) to find actual structural swing points rather than temporary price spikes.
Volatility-Adjusted Bands: It establishes dynamic outer channel boundaries using a 100-period Average True Range calculation divided by two ( ATR/2 ). The total channel width automatically scales using your custom risk buffer parameter ( Channel Deviation ).
Regime Flip Architecture: The system locks into a Bullish Regime when price crosses above structural highs, shifting the main tracking baseline to Green. When price slips below structural lows, it forces a Bearish Regime and changes the tracking baseline to Red.
2. Automated Risk Matrix & Multi-Asset Scanner
Algorithmic Trade Execution: The moment a new trend regime initializes, the engine projects a strict trade tracking matrix showcasing an entry line, a clear stop-loss boundary, and three tiered profit targets (TP1, TP2, and TP3).
Live Performance Dashboard: An integrated on-screen table calculates real-time historical metrics, tracking active wins, losses, current target risk-to-reward ratios ($1:3$), and overall system win rate percentages.
Screener Security Matrix: The background engine leverages real-time multi-asset queries to stream concurrent trend statuses for five separate configurable symbols directly into a secondary visual dashboard.
// Automated Trade Risk & Multi-Asset Tracking Snippet
if buySignal
float dist = atr2 * baseRiskMult
activeSL := close - dist
activeTP1 := close + dist
activeTP2 := close + (dist * 2)
activeTP3 := close + (dist * 3)
tradeState := 1
entryPx := close
t1 = request.security(sym1, timeframe.period, trend)
🔵 WHY IT IS USEFUL
Elimination of Market Noise: Standard moving averages constantly whip back and forth during consolidations. The HalfTrend calculation filters out minor intraday fluctuations, only shifting when a definitive structural high or low is broken.
Mathematical Execution Blueprint: It takes the emotion out of trade management. Every signal comes equipped with dynamic, visually mapped stop losses and a $1:3$ risk-reward profit map that fills with real-time gradient paths.
Macro Market Synchronicity: The multi-asset side-panel allows you to keep an eye on major market drivers (like BTC, ETH, Gold, or major FX pairs) simultaneously, ensuring your trades line up with broader institutional market direction.
🔵 HOW TO USE THE SYSTEM
Trading Long Breakouts: When the system transitions from a bearish regime into a bullish regime, a Green LONG label will print beneath the breakout candle. Execute your position at the white entry line, setting your dynamic stop-loss boundary inside the red risk gradient.
Trading Short Breakdowns: Monitor the system for a shift into a bearish regime, indicated by a Red SHORT label appearing above the asset price. Execute short orders relative to the entry line and utilize the upper red gradient zone to map your protective risk ceiling.
Managing Exits and Targets: Take partial profits sequentially as the asset price moves through the Green target lines (TP1, TP2, and TP3). If a sudden trend reversal prints an opposing signal before your final targets are satisfied, the script automatically triggers a reversal exit rule to preserve accumulated gains.
Streamline your trade execution, manage portfolio risk systematically, and screen multiple sectors at once with the HalfTrend Long/Short Signal Engine workspace. インジケーター

Volatility Squeeze Ignition [MarkitTick]💡 A multi-dimensional analytical engine designed to detect periods of extreme market consolidation and validate the subsequent directional expansion. By measuring the mathematical relationship between standard deviation and average true range, this tool identifies equilibrium zones where price action compresses and stores kinetic energy. Rather than reacting blindly to every volatility spike, the script employs a sophisticated filtration matrix that evaluates underlying volume delta, higher timeframe macro-trend alignment, directional movement strength, and immediate candlestick morphology. This creates a rigorous framework that authenticates breakout signals, ensuring that traders only focus on high-probability momentum ignitions supported by definitive market conviction.
✨ Originality and Utility
Standard volatility indicators often generate breakout signals without providing any insight into the underlying market participation or the structural validity of the move. This system distinguishes itself by integrating a state-tracking memory engine that monitors the cumulative buying and selling volume specifically during the compression phase. This continuous volume delta tracking allows the system to pre-assess the directional bias before the actual breakout materializes. Furthermore, it incorporates a dynamic risk-to-reward projection matrix mapped directly onto the chart. It calculates stop-loss zones and sequential take-profit levels based on the exact width of the preceding volatility squeeze. This creates a completely self-contained analytical environment that bridges the critical gap between signal generation and precise trade management, eliminating the need for discretionary target plotting and manual risk calculations.
🔬 Methodology and Concepts
● The Volatility Squeeze Engine
The core mechanics rely on the precise interplay between Bollinger Bands and Keltner Channels. A squeeze state is formally activated when the Bollinger Bands contract entirely within the boundaries of the Keltner Channels. This condition signifies that the market's standard deviation has fallen below its historical true range, indicating a profound period of low volatility and liquidity resting. The system mathematically locks in the exact width of the bands at the onset of this compression. An ignition signal is mathematically validated only when the price decisively breaks outside the Bollinger Bands, provided the bands have begun to expand.
● Volume Delta Profiling
While the squeeze state is active, the script meticulously aggregates the volume of up-closing bars versus down-closing bars. This builds a cumulative delta sum. When a breakout triggers, the system references this stored delta to ensure that the directional break is fully supported by the actual volume flow accumulated during the consolidation phase, preventing false breakouts engineered by low-liquidity spikes.
● Multi-Dimensional Filtering
The breakout validation process is governed by a rigorous confluence matrix:
Higher Timeframe Alignment: Evaluates a simple moving average on a higher resolution chart to ensure the breakout trades strictly in the direction of the macro trend, utilizing a secure, non-repainting data referencing architecture.
Trend Strength Evaluation: Integrates the Average Directional Index to demand a minimum trend strength threshold, actively filtering out choppy, sideways market noise.
Candlestick Morphology: Evaluates immediate, candle-by-candle price and momentum interaction. The real body of the breakout candle must constitute a specific percentage of the total high-to-low range, confirming definitive and immediate market conviction rather than relying on lagging divergences.
Volatility Expansion: Compares the current channel width against the locked width from the start of the squeeze, ensuring the breakout is accompanied by a genuine expansion in market volatility.
🎨 Visual Guide
● Chart Overlays
Active Squeeze Background: A subtle blue vertical background highlight appears when the volatility squeeze is actively compressing.
Breakout Backgrounds: A vibrant teal background signals a confirmed bullish squeeze ignition, while a vivid crimson background highlights a bearish squeeze ignition.
BB Basis Line: A solid blue line representing the central moving average of the standard deviation channel.
KC Lines: Muted, semi-transparent lines mapping the upper and lower boundaries of the true range channel.
● Trade Management UI
Entry Line: A dashed blue line marking the exact closing price of the validated breakout candle, accompanied by a dynamic price label.
Stop Loss (SL) Line: A solid, thick crimson line indicating the invalidation level. Depending on user settings, this is positioned either at the opposite channel edge or calculated via an ATR multiplier. A red translucent fill connects the Entry to the SL, visualizing the exact risk zone.
Take Profit (TP) Lines: Three distinct dashed teal lines representing sequential profit targets, derived from Fibonacci extensions of the locked squeeze width. A green translucent fill highlights the total reward zone from the Entry to TP3.
● Information Dashboard
A comprehensive heads-up display anchored to the chart corner providing real-time telemetry on the system's state:
Squeeze Status: Displays whether the compression is currently ACTIVE or OFF, alongside a graphical progress bar.
Sqz Bars: A numerical count of how long the current squeeze has been compressing.
BB Width %: A visual gauge showing the current width of the standard deviation channel relative to its basis.
Delta Bias: Highlights the dominant accumulated volume direction (BULLISH, BEARISH, or NEUTRAL) colored dynamically in teal or crimson.
R:R Metrics: Real-time calculation bars showing the exact risk-to-reward ratios for all three take-profit targets based on the current active signal.
Filter Diagnostics: Individual status readouts for HTF Trend, ADX, Body Strength, and Volume Confirmation, allowing traders to instantly see which filters are passing or failing.
📖 How to Use
● Identifying Setups
Traders should monitor the chart for the appearance of the blue active squeeze background. During this phase, direct your attention to the Dashboard to monitor the "Delta Bias" and "Sqz Bars" count. A longer squeeze accompanied by a strong, building Delta Bias indicates a high-probability impending breakout. Wait for a confirmed candle close that breaks the channel limits, triggering the vibrant teal or crimson background.
● Managing Trades
Once an ignition signal fires, the script automatically projects the entry, stop-loss, and three take-profit levels. Traders can use the SL line to place their initial protective stop. As price approaches TP1, traders may consider scaling out a portion of their position and trailing their stop loss to the Entry line to secure a risk-free trade. The graphical risk and reward fills visually assist in quickly assessing if the projected trade meets your personal risk parameters before execution.
⚙️ Inputs and Settings
● Core Parameters
BB Range: Defines the calculation range for the standard deviation channel.
BB Mult: The standard deviation multiplier determining the width of the outer bands.
KC Range: Defines the calculation range for the average true range channel.
KC Mult: The multiplier dictating the width of the Keltner Channels.
Min Squeeze Bars: The absolute minimum number of consecutive compressed bars required before a valid ignition can be fired.
● Filters
Require Volume Confirmation: Toggles the volume delta tracking engine.
HTF Trend Filter: Activates the macro-trend alignment requirement, preventing counter-trend breakout signals.
ADX Trend Strength Filter: Enables a strict momentum threshold requiring the market to be actively trending.
Candle Body Strength Filter: Enforces a structural rule where the breakout candle's body must meet a minimum size relative to its wicks.
● Trade Tools & Alerts
SL Mode: Allows traders to select between a structural stop loss at the opposite channel edge or a volatility-based ATR stop.
TP1, TP2, TP3 Fib: Customizable Fibonacci multipliers that project the profit targets based on the original width of the market squeeze.
Dashboard Settings: Toggles the visibility and positional anchoring of the telemetry table.
Alert Actions: Advanced JSON-formatted string inputs allowing traders to define precise webhook payloads for entries, exits, and target hits, enabling seamless automated execution.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Volatility Compression Theory
The fundamental architecture of this script is rooted in the cyclical nature of market volatility, which oscillates continuously between periods of extreme contraction and aggressive expansion. By cross-referencing standard deviation against an absolute measure of true range, the algorithm quantitatively identifies the inflection points where liquidity providers pull back and the market reaches a state of unnatural equilibrium. The mathematical locking of the channel width captures the precise kinetic energy stored during this phase, applying principles of mean reversion and standard deviation expansion to project the statistical probability of the ensuing vector move.
● Order Flow and Delta Mechanics
To move beyond simple price derivatives, the system incorporates an approximated order flow model through its volume delta profiling. By segmenting traded volume into up-closing and down-closing aggregates during the compression state, the script builds a proxy for aggressive market participation. This mechanism relies on Auction Market Theory, assessing the imbalance between aggressive buyers lifting the offer and aggressive sellers hitting the bid. When the mathematical breakout aligns with the underlying delta accumulation, the script confirms that the price displacement is driven by genuine institutional or macroscopic participation, significantly reducing the statistical likelihood of a mean-reverting liquidity sweep.
⚠️ 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. インジケーター

Williams VIX Fix Elite [MarkitTick]💡 The Williams VIX Fix Elite is a comprehensive, overlay-based technical analysis system designed to bring the powerful volatility-tracking properties of the traditional Williams VIX Fix directly onto the main price chart. By synthesizing statistical volatility extremes with an array of multi-timeframe trend filters, volume confirmation parameters, and dynamic risk management plotting, this tool transcends basic observation. It provides traders with a complete, structured methodology for identifying high-probability exhaustion zones and potential market reversals while strictly managing risk.
✨ Originality and Utility
Standard volatility indicators are almost exclusively relegated to separate oscillator panes at the bottom of the chart. This traditional placement forces the user to constantly shift their visual focus, often leading to a disconnect between volatility metrics and actual price action. This indicator resolves that friction by mapping volatility exhaustion directly onto the candlesticks themselves through an intuitive color-coded heatmap.
Furthermore, the utility of this script lies in its holistic approach to signal generation. Rather than providing isolated volatility alerts, it acts as a confluence engine. It mandates that a volatility spike must be corroborated by higher timeframe trend alignment, adequate localized volume, directional momentum, and specific standard deviation thresholds before generating an actionable signal. This transforms a simple oscillator concept into a robust, chart-integrated trading framework complete with dynamically calculated risk-to-reward parameters, rendering it highly useful for both discretionary analysis and automated alert integrations.
🔬 Methodology and Concepts
● The Volatility Engine
• Williams VIX Fix (WVF)
At its core, the script calculates the Williams VIX Fix. It does this by measuring the percentage drawdown of the current bar's low from the highest closing price over a user-defined lookback period. This mathematical approach creates a synthetic volatility index that mirrors the behavioral characteristics of the CBOE VIX, where high values indicate market fear and potential bottoms.
• Statistical Bounds
To determine when the WVF has reached a statistically significant extreme, the script applies Bollinger Bands to the WVF data. It calculates a Simple Moving Average (SMA) of the WVF and plots standard deviation bands around it. A "Spike" is registered when the WVF value breaches the upper Bollinger Band or a percentile-based historical high threshold.
● Confluence Filtering
• Higher Timeframe (HTF) Alignment
The script extracts moving average data from a user-selected higher timeframe. It assesses whether the higher timeframe's closing price and dual-period EMAs exhibit a bullish or bearish hierarchy, ensuring signals are not taken against the macro-directional flow.
• Volatility and Volume Validation
A signal is only considered valid if the localized volatility, measured by the Average True Range (ATR), exceeds its historical average multiplied by a strict threshold. Additionally, the localized volume must exceed its moving average, confirming that the reversal is backed by market participation.
• Signal Execution and Risk Logic
When all conditions align (a volatility spike followed by a directional reversal candle, validated by all filters), the script locks in the signal upon the bar's close. It immediately calculates a Stop Loss utilizing an ATR multiplier and projects three Take Profit levels mathematically derived from user-defined Risk-to-Reward (R:R) ratios.
🎨 Visual Guide
● Chart Overlay Elements
• Candlestick Heatmap
The indicator repaints the standard chart candles to reflect the immediate signal bias. A confirmed Long signal colors the candlestick body, borders, and wicks in a distinct bullish hue (default teal). Conversely, a confirmed Short signal paints the candle in a bearish hue (default red). Neutral periods retain a standard gray tone.
• Dynamic Trade Levels
Upon signal confirmation, the script automatically plots horizontal lines detailing the trade parameters:
Stop Loss Line: A solid, thick line plotted below (for longs) or above (for shorts) the entry price, acting as the primary risk invalidation level.
Entry Line: A dashed line marking the exact closing price of the signal candle.
Take Profit Lines: Three sequential dashed lines representing TP1, TP2, and TP3, mapping out the reward targets.
The space between the Stop Loss and Entry is highlighted with a semi-transparent risk linefill, while the space extending toward the Take Profit targets is highlighted with a reward linefill, visually contrasting the risk against the potential payout.
● The Interactive Dashboard
A dedicated data panel is rendered on the chart (default top-right) providing real-time telemetry of the script's internal calculations.
WVF Value & Spike Level: Displays the raw volatility index number alongside a visual progress bar indicating how close the current value is to the historical threshold.
HTF & Trend Bias: Textually confirms the current macro and localized trend alignment (Bullish/Bearish).
Volume & ATR: Confirms whether current volume is above or below average and displays the exact ATR value.
R:R Ratio: A visual gauge of the current signal's risk-to-reward structure.
Cooldown Status: Displays the remaining bars before a new signal can be generated, preventing over-signaling during congested price action.
📖 How to Use
● Execution Protocol
• Step 1: Signal Identification
Wait for a colored signal candle to print on the chart. A teal candle signifies a Long opportunity, while a red candle signifies a Short opportunity. Always wait for the candle to fully close, as signals are only validated upon bar confirmation to ensure accuracy.
• Step 2: Dashboard Verification
Consult the on-chart dashboard. Ensure that the "Spike Level" gauge was heavily filled prior to the signal, and visually confirm that the "HTF Bias" and "Trend Bias" align with your intended trade direction. Verify that the "Volume" metric indicates "Above Avg" for optimal setup quality.
• Step 3: Risk Assessment
Observe the plotted trade levels. The visual linefills will immediately show you the required risk (the distance from the dashed Entry line to the solid Stop Loss line). Assess whether this required risk fits within your personal account parameters. If the ATR has expanded too aggressively, the stop loss may be too wide, and the setup should be skipped.
• Step 4: Trade Management
If the trade is entered, utilize the plotted TP1, TP2, and TP3 lines as scaling-out points. The script also includes automated JSON alert outputs designed for third-party execution platforms, allowing users to fully automate the Long, Short, and Take Profit hit actions.
⚙️ Inputs and Settings
● Core Settings
• WVF Lookback: Defines the historical period used to find the highest close for the volatility drawdown calculation.
• BB Length & BB Mult: Controls the Simple Moving Average length and the standard deviation multiplier applied to the WVF. Lowering the multiplier increases sensitivity to volatility spikes.
• Percentile HH Lookback & High % Threshold: An alternative absolute-threshold filter based on a percentage of the highest historical WVF values.
● Filters
• HTF Resolution: Select the specific higher timeframe used for the macro trend validation.
• ATR Length & Min Mult: Defines the lookback for the Average True Range and the multiplier required to validate adequate localized volatility.
• Min Spike Above BB %: A Z-score threshold ensuring the volatility spike is mathematically severe before triggering a signal.
• Volume Avg Length & Min Mult: Dictates the volume moving average parameters required for trade confirmation.
• Cooldown Bars: The mandatory resting period (in bars) between valid signals to eliminate redundant alerts.
● Trade Tools & Alerts
• SL ATR Mult: The multiplier applied to the current ATR to calculate the Stop Loss distance from the entry price.
• TP1, TP2, TP3 R-Multiple: Dictates the reward distance for target lines relative to the calculated Stop Loss risk.
• Alert Actions: String inputs allowing the user to customize the JSON payload commands sent to automated webhook services.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Behavioral Finance and Volatility Asymmetry
The underlying architecture of this indicator is deeply rooted in the academic principles of behavioral finance, specifically the asymmetry of market participant reactions. Financial markets typically exhibit a "stealth" characteristic during uptrends (low volatility, steady buying) and a "panic" characteristic during downtrends (high volatility, aggressive selling). The Williams VIX Fix capitalizes on this behavioral asymmetry by focusing exclusively on drawdowns from peak closes. By quantifying this localized panic, the script provides a mathematical representation of capitulation—a state where sell-side liquidity is exhausted, and rational market equilibrium is poised to return.
● Gaussian Distribution and Standard Deviation Anomalies
To objectively define an "exhaustion point," the script relies on the statistical concept of normal distribution. By applying a Simple Moving Average to the raw volatility data, it establishes a baseline mean of market stress. The inclusion of Standard Deviation bands (Bollinger Bands) allows the system to measure dispersion from this mean. When the volatility index breaches the upper band, it represents an anomaly—an event occurring outside the expected standard deviation threshold. Statistically, extreme deviations from the mean are unsustainable, implying an imminent reversion. This indicator isolates these rare deviations to time market entries.
● The Role of True Range in Risk Normalization
Risk management within the script is governed by the Average True Range (ATR), a concept introduced by J. Welles Wilder. The True Range accounts for absolute price movement, including gap openings, providing a more comprehensive measure of market kinetic energy than standard percentage changes. By tying the Stop Loss and Take Profit levels dynamically to the ATR, the script automatically normalizes risk across different market environments. In a highly volatile state, the ATR expands, naturally widening the stop loss to avoid premature invalidation from market noise. In a compressed state, the ATR contracts, tightening the risk parameters. This dynamic adaptation ensures that the statistical risk profile of each trade setup remains proportional to the current localized market geometry.
⚠️ 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. インジケーター

インジケーター

Swing Ladder Trend Engine [Jayadev Rana]OVERVIEW
Swing Ladder Trend Engine is a pure price-action trend-following tool. It builds its entire read of the market from confirmed swing highs and swing lows — no moving averages, no ATR, no oscillators. From that swing structure it derives three things: the current trend state, entry and exit signals, and a structure-anchored trailing stop (the "ladder") that only steps in the direction of the trade.
HOW IT WORKS
1. Swing structure. Confirmed pivot highs and lows (Swing Detection Length bars on each side) are classified as HH, HL, LH or LL and tagged on the chart.
2. Trend engine. When a bar closes beyond the most recent confirmed swing high, the trend state flips bullish; a close below the last confirmed swing low flips it bearish. Each swing level can only be broken once, so continuation breaks are tracked cleanly and bars are tinted by the active trend.
3. Ladder stop. Instead of a volatility trail, the stop is anchored to structure itself: in an uptrend it sits below the last confirmed swing low, offset by a configurable percentage of the current swing range, and it can only ratchet upward as new higher lows confirm. The result is a stepped "ladder" that gives the trade room where structure says it needs room, and tightens where structure tightens.
4. Pullback-quality entries. In the default Pullback mode a structure break only arms a setup. The entry itself requires the market to retrace into the breakout leg (between the Min and Max Retracement %), and then print a resumption candle: a close beyond the previous bar's extreme with a directional body of at least the Trigger Body Dominance fraction of its range. Retracements deeper than the maximum void the setup. A Breakout mode is included for traders who prefer to enter on the structure break itself.
SIGNALS: ENTRY, EXIT AND STOP
LONG / SHORT labels mark entries; the label tooltip stores the entry price and the ladder stop at that moment. A trade is closed either when price closes through the ladder stop or when the structure flips against it — the ✕ exit label's tooltip reports the reason and the approximate result in R (risk multiples, measured from entry to the initial ladder stop). All signals are evaluated on confirmed bars only.
DASHBOARD AND ALERTS
A compact dashboard shows the live trend state, the latest swing structure tags, the active signal, the current ladder stop level and the open trade's running R. Six alerts are available: long entry, short entry, exit long, exit short, and bullish/bearish trend flips.
SETTINGS
Swing Detection Length controls the size of the structure being tracked (larger = bigger swings, later confirmation). Entry Mode switches between Pullback and Breakout logic. Min/Max Retracement % and Trigger Body Dominance define what counts as a quality pullback entry. Stop Buffer sets how far beyond the protected swing the ladder sits, as a % of the current swing range. Dashboard position/size, structure labels, bar coloring and colors are all configurable.
LIMITATIONS
Swing points confirm only after the chosen number of right-side bars, so structure tags appear with a delay by design — this is what keeps the logic non-repainting on confirmed bars. Signals fire on bar close, not intrabar. Like any trend-following method, it gives back ground in choppy, range-bound conditions; the pullback filters reduce but do not remove that. R values shown in tooltips and the dashboard are approximations based on closing prices and do not account for gaps, fees or slippage. This is an analysis tool, not financial advice — always test settings on your own market and timeframe before relying on them.
WHY IT IS ORIGINAL
The combination of a swing-anchored ratcheting stop whose buffer adapts to the current swing range, plus an entry gate built from retracement depth and candle body dominance — all derived exclusively from raw price structure — is what this script contributes. It is not a mashup of built-in indicators; every state in the engine comes from the swing ladder itself. インジケーター

Dynamic MSS Navigator [MarkitTick]💡 An advanced technical analysis tool engineered to automatically identify localized market structure, validate structural shifts, and dynamically generate risk-to-reward parameters. Built for systematic traders, it continuously scans price action to pinpoint candidate highs and lows based on user-defined lookback periods. Rather than relying on subjective charting, this indicator applies stringent mathematical logic—incorporating Average True Range (ATR) buffers, volume participation, and higher timeframe (HTF) alignment—to filter out market noise and present high-probability structural breaks. Once a valid break occurs, the indicator seamlessly transitions into trade management mode, drawing precise entry, stop-loss, and multiple take-profit levels directly onto the chart, accompanied by a comprehensive real-time data dashboard.
✨ Originality and Utility
● Automated Market Structure Mapping
The core utility of this indicator lies in its ability to remove human bias from market structure analysis. Traders often struggle with defining which highs and lows are structurally significant. This script mathematically defines them, tracking the absolute highest highs and lowest lows over a rolling window, and only recognizing a structural shift when a mathematically validated threshold is breached.
● Dynamic Risk-to-Reward Modeling
Unlike standard indicators that only print buy or sell arrows, this tool instantly calculates the exact risk parameter upon signal generation. By anchoring the stop-loss to the structural pivot with a built-in volatility buffer, it sizes the risk logically. It then extrapolates multiple take-profit targets based on fixed risk-to-reward ratios, providing a complete trade framework from inception to completion.
● Multi-Dimensional Filtering Mashup
This script operates as a highly cohesive mashup of distinct technical methodologies. It combines Donchian-style localized pivot detection for structure, Wilder’s Average True Range for volatility-based breakout validation, Simple Moving Averages of volume for participation measurement, and multi-timeframe security requests for overarching trend alignment. This combination ensures that a signal is only fired when price action, volatility, volume, and higher timeframe momentum are in total agreement.
🔬 Methodology and Concepts
● Localized Pivot Identification
The script continuously monitors the highest highs and lowest lows over a defined lookback period. When a new top is formed, it identifies the lowest point of that peak structure as the "Candidate Top Low." Conversely, when a new bottom forms, it marks the highest point of that valley structure as the "Candidate Bottom High." These form the immediate structural floors and ceilings.
● ATR-Buffered Breakout Logic
To confirm a shift, price must do more than just tick past the candidate line. The indicator requires price to breach the candidate level by an additional margin, calculated as a fraction of the current ATR. This ensures that only shifts with statistically significant momentum trigger a signal, heavily reducing false positives (fake-outs) during low-volatility chop.
● Composite Strength Scoring
Upon signal generation, the algorithm calculates a proprietary "Strength Score" from 0 to 100. This score is a weighted aggregate of three factors:
The distance of the closing price beyond the breakout threshold (measuring immediate momentum).
The current volume relative to its moving average (measuring market participation).
The alignment of the localized pivot with the higher timeframe pivot (measuring macro confluence).
● Dynamic Bias Tracking
The indicator tracks the ongoing market bias, classifying it as bullish, bearish, or neutral. A bullish bias is initiated upon a valid bottom break and remains intact until price breaches the newly established stop-loss level, at which point the bias flips or neutralizing protocols take over.
🎨 Visual Guide
● Chart Elements
• Candidate Lines
Dashed Red Lines indicate the support floor of a localized top. Dashed Green Lines indicate the resistance ceiling of a localized bottom. These project forward to show the exact price level that must be broken.
• Signal Markers
When a structural shift is validated, a solid Red Triangle appears above the bar for a bearish shift (labeled "BEAR"), and a solid Green Triangle appears below the bar for a bullish shift (labeled "BULL"). Small "+" cross icons appear for continuation signals where the trend is reinforced.
• Trade Projection Lines
A solid Red Line marks the calculated Stop Loss level. A dashed Blue Line marks the exact Entry Price. Dashed Teal Lines of varying opacities mark Take Profit 1 (TP1), Take Profit 2 (TP2), and Take Profit 3 (TP3).
• Zonal Fills
A semi-transparent Red Background fill connects the Entry line to the Stop Loss line, visually representing the initial capital risk. A semi-transparent Green Background fill connects the Entry line to the final TP3 line, representing the total projected reward zone.
• Heatmap Candles
The indicator takes control of the underlying candlestick colors to reflect the current structural bias. Deep Teal candles indicate an active bullish trend, Deep Red candles indicate an active bearish trend, and Gray candles indicate a neutral market state where structural direction is unresolved.
● Dashboard Readouts
A highly detailed heads-up display is rendered on the chart, featuring a dark background with bright, contrasting text. It provides rows of vital data including:
Last Signal and Trend State (e.g., HH-HL Up).
Candle Bias and a visual bar chart representing the Strength Score.
Confirmed Signal Count and Bars Since the Last Signal.
Active Position status, Entry Price, and Stop Loss Price.
Dynamic tick boxes for TP1, TP2, and TP3 displaying price levels and completion checkmarks.
Real-time Floating P/L (Profit/Loss) expressed in 'R' multiples.
Current ATR values and Volume vs Average visual bar meters.
Current state of Session and HTF filters.
📌 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
● Signal Execution
Traders should monitor the formation of the dashed candidate lines. When a breakout occurs, do not act prematurely; wait for the candle to close (if "Confirm by Close" is active) and ensure the primary signal triangle prints. This confirms that all volume and volatility parameters have been met.
● Assessing Trade Quality
Immediately consult the dashboard's "Strength Score." Higher scores (e.g., above 75%) indicate robust volume participation and excellent higher timeframe alignment, making them higher probability setups. Lower scores may warrant reduced position sizing or skipping the setup entirely.
● Trade Management
Utilize the dynamically plotted lines to set limit orders and stop losses in your execution platform. As price reaches TP1 and TP2 (indicated by checkmarks on the dashboard), consider trailing the stop loss to breakeven or the next logical structure point. If the candle heatmap shifts to gray (neutral) before reaching targets, it may be a prudent early exit warning.
⚙️ Inputs and Settings
● Core Settings
Lookback: Defines the number of bars used to identify localized tops and bottoms. Higher values find macro structures; lower values find micro structures.
Confirm by Close: Toggles whether the breakout must be confirmed by the candle's closing price or just the wick.
ATR Len & ATR Break Mult: Controls the volatility buffer required to validate a breakout.
● Filters
Volume Confirm: Requires breakout volume to exceed the moving average multiplied by the "Vol Spike Mult".
HTF Confluence: Restricts signals to those that align with the high/low structure of the user-defined Higher Timeframe.
Session Filter: Restricts signal generation to a specific daily time window (e.g., standard market hours).
● Trade Tools
TP1, TP2, TP3 R:R: Defines the static Risk-to-Reward multipliers for the take profit targets.
SL ATR Buffer: Adds additional breathing room to the stop loss beyond the absolute structural pivot.
● Visuals & Dashboard
Allows the user to toggle the display of candidate lines, heatmaps, and the main data dashboard, as well as reposition the dashboard to any corner of the screen.
● Alerts
Customizable string inputs for JSON payload generation, allowing traders to map long, short, close, trail, and target-hit actions directly to automated execution systems.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Dow Theory and Structural Extremes
The foundational logic of this script is rooted in classical Dow Theory, which posits that a trend is defined by a sequence of higher highs and higher lows (bullish) or lower highs and lower lows (bearish). By mathematically indexing `highestbars` and `lowestbars`, the script algorithmically isolates these fractal extremes, stripping away subjective human interpretation of market swings.
● Volatility-Normalized Breakout Thresholds
Financial markets are noisy, characterized by frequent false breaks (liquidity sweeps). This indicator employs Average True Range (ATR), a metric developed by J. Welles Wilder, to normalize the breakout threshold against current market volatility. By requiring price to exceed a structural level by a factor of the ATR, the algorithm relies on statistical significance—demanding that the breakout possesses enough standard deviations of momentum to be classified as a genuine shift in supply and demand, rather than random market drift.
● Volume Participation Theory
Drawing on Volume Price Trend (VPT) mechanics, the algorithm recognizes that price movement without volume is highly suspect. The implementation of a volume moving average filter ensures that structural breaks are validated by a true influx of market participation, confirming that the imbalance between buyers and sellers is robust enough to sustain a new directional vector.
● Automated Expected Value (EV) Projection
By mechanically tying the entry price to a mathematically defined stop-loss, and extrapolating predetermined Risk-to-Reward targets, the script enforces strict expected value mechanics. This removes emotional profit-taking, ensuring that winning trades scale out at mathematically optimal R-multiples (e.g., 1R, 2R, 3R), aligning the trader's execution with positive expectancy mathematical models over a large sample size of trades.
⚠️ 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. インジケーター

Buy Sell Momentum Entries v2Momentum Entries v2 is a simple buy/sell confirmation indicator built to find strong continuation candles after momentum begins.
It is not meant to predict every move or catch every reversal. The goal is to filter for cleaner entries where price is already showing displacement, direction, and follow-through.
I personally like these settings on the 1-minute chart:
Confirmation Push Ticks: 40
Min Body %: 60
Cooldown Bars After Signal: 0
Block Same-Side Repeats: On
Fast EMA: 9
Slow EMA: 21
Use Fast EMA Filter: On
Use Slow EMA Filter: On
Require Fast EMA Above/Below Slow EMA: On
You can adjust the settings however you like depending on your market, timeframe, and trading style.
Important settings:
Confirmation Push Ticks:
How far price must push in the signal direction before a buy or sell can appear. Higher = fewer signals, stronger momentum required.
Min Body %:
Requires the candle body to be a certain percentage of the full candle range. Higher = stronger candles only.
Cooldown Bars After Signal:
Stops the indicator from giving another signal for a set number of bars after a signal. Higher = fewer signals.
Block Same-Side Repeats:
Prevents repeated buy-after-buy or sell-after-sell signals. This helps keep the chart cleaner.
Fast EMA Length:
The shorter EMA used for direction and trend confirmation.
Slow EMA Length:
The longer EMA used to confirm broader direction.
Use Fast / Slow EMA Filter:
Requires price to be on the correct side of the selected EMA before a signal appears.
Require Fast EMA Above/Below Slow EMA:
For buys, the fast EMA must be above the slow EMA.
For sells, the fast EMA must be below the slow EMA.
This helps avoid taking signals against the short-term trend.
Best use:
Use this as an entry confirmation tool, not a full trading system by itself. It works best when combined with your own levels, market structure, sweep areas, support/resistance, or higher-timeframe bias. インジケーター

Donchian Breakout with ATR Trailing Stop (Trend Following)A simple, transparent trend-following strategy: a classic Donchian
(turtle) channel breakout with a single ATR-based trailing stop.
It was deliberately built to be robust across markets rather than
curve-fit to one — the same code and settings held up on both an
equity index (DAX/GER40, 1h) and Bitcoin (BTCUSD, 4h), and across
trailing multipliers of 2.5–3.5.
HOW IT WORKS
- Entry: goes long when price closes above the highest high of the
last N bars (default 20) while above the 200 EMA trend filter.
Short side is optional and off by default.
- Exit: one ATR-based trailing stop (distance = ATR × multiplier,
default 2.5, fixed at entry). It serves as both the initial
protective stop and the trailing exit — cutting losses and letting
winners run, fully automatically. No separate exit signal needed.
- Risk: size is derived from a fixed % risk per trade against the
stop distance (compounding), with optional risk and leverage caps.
- Optional weekend-flat close for instruments with gap risk.
HOW TO USE
- Best on genuinely trending markets. Try it on your own instrument
and timeframe.
- Tune the risk % to your own drawdown tolerance, and the ATR
multiplier to taste (2.5–3.5 behaved similarly — a good sign the
edge isn't fitted to one value).
- Built-in alerts: the entry alert gives you the trailing-stop
distance to set on your broker; the trailing stop handles the exit.
WHAT TO EXPECT — READ THIS
- It's a breakout system, so win rate is LOW: ~40–45% is normal.
The edge is that winners are bigger than losers, not that you're
right often. Judge it by profit factor and drawdown, not win rate.
- Expect long flat/drawdown periods in choppy, range-bound markets.
It performs when markets trend.
- COSTS DECIDE EVERYTHING. Set your own broker's spread/commission
in the properties before trusting any result. Something that looks
great at zero cost can be break-even or worse once real spreads —
and, for leveraged CFDs, overnight financing — are included.
Results vary a lot by broker and instrument.
NOTES
- No repainting: entries use the prior bar's channel; the trailing
stop only ratchets in the trade's favor.
- Not financial advice. Past backtest results do not guarantee
future performance. Always test on your own market, timeframe and
broker costs, and only risk what you can afford to lose. ストラテジー

Liquidity Entry Signals [MarkitTick]💡 A comprehensive, multi-faceted approach to identifying potential market reversals based on classic liquidity sweep mechanics. By scanning for instances where price briefly breaches a significant structural high or low before immediately rejecting and closing back within the range, this tool highlights areas where trap-based price dynamics may be in play. It is designed to offer a complete trading framework rather than just a simple signal, integrating dynamic stop-loss and take-profit plotting, real-time advanced dashboard analytics, and comprehensive alert payloads. This indicator assists in bridging the gap between raw price action analysis and structured trade management.
● ✨ Originality and Utility
Many basic technical indicators simply look for higher highs or lower lows without assessing the quality of the rejection. This script elevates that concept by requiring strict closing conditions to validate a sweep. What truly sets it apart is its integration of multiple intelligent filters. Rather than relying on price action alone, users can mandate that sweeps align with the prevailing trend, occur during periods of sufficient volatility, and are backed by relative volume strength.
Additionally, the built-in risk management visualizations automatically calculate position risk parameters right on the chart. By projecting stop-loss and take-profit levels based on current volatility, it transforms a static signal into an actionable trade plan. The inclusion of dynamic JSON payload generation for alerts also makes this an incredibly versatile tool for those looking to automate their execution through third-party platforms.
● 🔬 Methodology and Concepts
The core logic of this script is built around the concept of a liquidity sweep, verified through price action closes, and filtered through statistical market conditions.
Bullish Sweep: The script continuously calculates the lowest low over a user-defined lookback window. A valid bullish signal occurs when the current bar's lowest price penetrates this recent low, but the closing price decisively reclaims it by closing higher than the structural low and higher than its own open.
Bearish Sweep: Conversely, the script identifies the highest high over the recent lookback period. If the current bar's high breaches this level, but the close falls below the recent high and below its own open, a short signal is triggered.
Trend Filtration: The indicator uses a Simple Moving Average (SMA) on both the current chart and a selected higher timeframe to establish a directional bias. Signals that conflict with these moving average baselines are suppressed to prevent counter-trend trading.
Volatility and Volume Analysis: The script evaluates the Average True Range (ATR) as a percentage of the current closing price to ensure sufficient market movement is present. It also compares the current volume to a standard moving average of volume, filtering out setups that lack participation.
● 🎨 Visual Guide
The script draws extensive visual overlays to assist in real-time decision-making and trade management.
• Signal Labels
When a valid sweep occurs, an "LS" label is plotted. Green labels positioned below the candle indicate bullish setups, while red labels above indicate bearish setups.
• Trade Execution Lines
Upon a signal, the indicator projects trade management lines directly on the chart for the next 50 bars.
Entry Line: A dashed blue line marking the closing price of the signal bar.
Stop Loss (SL): A solid red line placed away from the entry, calculated based on the ATR multiplied by the user's risk factor.
Take Profit (TP): Three dashed teal lines representing Take Profit 1, 2, and 3. These are calculated using specific Risk-to-Reward multiples of the stop-loss distance.
• Risk and Reward Zones
Semi-transparent colored fills visually separate the trade zones. A red fill highlights the risk zone between the entry and the stop loss, while a teal fill highlights the reward zone extending from the entry to the final take-profit level.
• Advanced Dashboard
A multi-row informational table appears in the selected corner of the chart. This dashboard provides a real-time status check of the prevailing trend bias, the number of bars since the last signal, exact entry/SL/TP price levels, current ATR, and visual progress bars for volatility and signal cooldown periods.
● 📖 How to Use
Traders can utilize this script as a complete top-down methodology for analyzing market structure. First, observe the dashboard to confirm that the current market environment aligns with your desired filters (e.g., ensuring the higher timeframe trend is supportive and volume thresholds are met).
When a valid "LS" label appears on the chart, immediately note the projected Entry, Stop Loss, and Take Profit lines. The dashed blue line serves as your reference for a potential entry point. You can calculate your position sizing based on the fixed distance between this blue Entry line and the solid red Stop Loss line.
The three Take Profit levels allow for a tiered approach to trade management, enabling partial profit-taking as the price advances in your favor. Advanced users can configure the custom string inputs to send highly detailed webhook payloads directly to execution platforms, passing the exact dynamically calculated price levels directly to their broker.
● ⚙️ Inputs and Settings
The script is highly customizable through categorized input groups, allowing adaptation to any asset class or timeframe.
• SMC Settings
Sweep Lookback: Defines the number of historical bars used to calculate the structural high and low points.
• Smart Filters
Trend Filter: Enables an SMA condition to dictate the allowed signal direction.
Volatility Filter: Requires the ATR to be a minimum percentage of the asset's price before a signal can fire.
Volume Filter: Demands that the current bar's volume exceeds a defined multiple of the volume moving average.
HTF Timeframe: Selects the specific higher timeframe used for long-term trend alignment.
Signal Cooldown: Prevents consecutive signals within a specified number of bars to reduce chart noise during extended consolidations.
• Trade Tools
SL ATR Mult: Determines the distance of the Stop Loss based on the current ATR, adjusting risk based on market volatility.
TP1 / TP2 / TP3 RR: Sets the specific Risk-to-Reward multiples for the three profit targets.
• Alerts
Action Strings: Customizable fields to inject specific commands into the JSON alert payloads for entries, exits, and partial take-profits.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
From a market microstructure perspective, liquidity sweeps represent a temporary imbalance in supply and demand. In auction market theory, price frequently probes beyond established boundaries to test for the presence of resting orders. When price penetrates a historical extreme but fails to sustain value there—evidenced by the immediate reversal and closing within the prior range—it indicates an absorption of liquidity by counter-trend market participants. This exhaustion of directional momentum is a well-documented phenomenon in order flow analysis.
To normalize these price extensions, the indicator applies the Average True Range (ATR). Developed by J. Welles Wilder, the ATR provides a robust statistical measure of absolute price volatility, capturing gaps and limit moves that standard standard-deviation metrics might underrepresent. By tying the Stop Loss logic directly to the ATR, the indicator adapts to heteroskedasticity, which is the changing variance of asset returns over time. This ensures that risk parameters dynamically widen during highly volatile periods to prevent premature stop-outs, and contract during quiet phases to optimize capital efficiency.
Furthermore, the reliance on moving averages for trend and volume filtration applies fundamental time-series smoothing. This inherently mitigates the noise of high-frequency price fluctuations, ensuring that the localized microstructure event (the sweep) is aligned with the macro directional drift of the broader dataset.
⚠️ 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. インジケーター

DMI & ADX Enhanced Trend Dashboard (with Long/Short Status)
概述
本脚本在经典的 Wilder DMI(趋向指标)与 ADX(平均趋向指数)基础上,进行了实用性增强。它不仅在副图区清晰绘制了 +DI、-DI 与 ADX 三条曲线,还在图表右上角集成了一个智能状态看板(Dashboard),将枯燥的数值转化为 “做多 / 做空 / 不交易” 的直观文字信号,极大提升了复盘效率和实时盯盘的便捷性。
核心计算逻辑
严格遵循 Wilder 标准算法,使用 RMA(Wilder 移动平均)对真实波幅(TR)和方向运动(DM)进行平滑处理,确保指标反应的稳定性和经典性。+DI 与 -DI 分别代表多头与空头的力量方向,ADX 则量化了当前趋势的绝对强度(数值越高,趋势越强)。
智能看板(Dashboard)信号规则
1. 趋势过滤:当 ADX > 设定阈值(默认 20)时,认定市场存在明显趋势,进入交易逻辑判断。
2. 多空判定:若 +DI > -DI 且 ADX 大于阈值,看板显示“做多”(绿色背景)。若 -DI > +DI 且 ADX 大于阈值,看板显示“做空”(红色背景)。
3. 观望警示:当 ADX 低于阈值时,视为市场处于震荡或无趋势状态,看板显示“不交易(趋势偏弱)”(灰色背景),建议投资者空仓观望,规避频繁止损。
参数自定义建议
ADX 平滑长度(默认 14):控制 ADX 线的平滑度,数值越大曲线越平缓。
DI 周期长度(默认 14):影响 +/-DI 对价格变化的敏感度。
趋势阈值(默认 20):核心风控参数。对于波动较大的品种(如加密货币),建议调高至 25;对于股票或外汇,保持 20 即可。
适用场景
本指标非常适合中长线趋势跟踪策略,能有效帮助交易者过滤掉震荡行情的噪音,只在趋势明确时提供方向性参考。请注意,本工具为分析型指标,不包含未来函数,信号稳定。
Overview
This script enhances the classic Wilder DMI (Directional Movement Indicator) and ADX (Average Directional Index) with practical improvements. It not only clearly plots the +DI, -DI, and ADX curves in the indicator pane, but also integrates a smart dashboard in the top-right corner of the chart. This dashboard translates the raw numerical values into intuitive textual signals — "Long", "Short", or "No Trade" — greatly improving the efficiency of both backtesting analysis and real-time monitoring.
Core Calculation Logic
The script strictly follows Wilder's standard algorithm, using RMA (Wilder's Moving Average) to smooth True Range (TR) and Directional Movement (DM), ensuring stable and classic indicator responses. +DI and -DI represent the directional strength of bulls and bears respectively, while ADX quantifies the absolute strength of the current trend — the higher the value, the stronger the trend.
Smart Dashboard Signal Rules
1. Trend Filter: When ADX > the set threshold (default 20), the market is considered to have a clear trend, and the trading logic is activated.
2. Long/Short Determination: If +DI > -DI and ADX is above the threshold, the dashboard displays "Long" (with a green background). If -DI > +DI and ADX is above the threshold, the dashboard displays "Short" (with a red background).
3. Caution/Wait Signal: When ADX is below the threshold, the market is considered range-bound or trendless. The dashboard displays "No Trade (Weak Trend)" (with a gray background), suggesting that traders should stay on the sidelines to avoid frequent stop-losses.
Parameter Customization Suggestions
ADX Smoothing Length (default 14): Controls the smoothness of the ADX line. Higher values result in a smoother, less reactive curve.
DI Period Length (default 14): Affects the sensitivity of +DI and -DI to price changes.
Trend Threshold (default 20): A critical risk management parameter. For more volatile instruments (e.g., cryptocurrencies), consider raising it to 25. For stocks or forex, keeping it at 20 is generally suitable.
Application Scenarios
This indicator is ideally suited for medium-to-long-term trend-following strategies. It effectively helps traders filter out noise during choppy, sideways markets, providing directional references only when a clear trend is present. Please note that this is an analytical tool with no built-in future functions, ensuring stable and reliable signals.
インジケーター

KRT Kalman Regime Tricolor# 📊 KRT — Kalman Regime · Tricolor
**Designed and statistically validated for 🥇 GOLD and Ξ ETHEREUM.** A regime compass, not a buy signal: KRT reads the market on three layers — background regime, trend, your candle — and shows you which way the wind blows at every moment: 🟢 long · 🔴 short · 🔵 wait.
**⚡ ZERO lookahead, ZERO repaint.** Every signal appears in real time using only the information available at that moment, and whatever is printed at a bar close never changes afterwards. Many indicators look perfect because they quietly redraw the past — KRT is built for the opposite: what you see in replay is exactly what you would have seen live.
## ⚡ Quick start (30 seconds)
The colored BACKGROUND = the underlying regime.
Green 🟢 = bull regime installed → longs carry. Red 🔴 = bear regime installed → shorts carry. No color = no regime → caution.
The CURVE trails price like a stop line: below the candles in an uptrend, above them in a downtrend. Price crossing the curve = the reversal.
The curve's intensity = the strength of the authorization.
BRIGHT = trend aligned with the regime. Pale = secondary bias only. Blue = wait.
THE MARKERS — one single rule:
SOLID green or red marker (big triangle OR diamond) = GO. Blue = wait. Small = provisional.
🟢▲ / 🔴▼ BIG triangle — GO: reversal confirmed AND regime aligned.
🟢◆ / 🔴◆ Diamond — Deferred GO: the regime installs while the trend already points that way (often follows a big blue triangle). Same strength as a big colored triangle.
🔵▲ / 🔵▼ BIG blue triangle — reversal confirmed but no regime behind it → wait (a diamond will tell you if it becomes a GO).
▵▿ Small triangles (any color) — early alerts on your chart, ahead of confirmation. Provisional.
No thinking required: solid + colored = apply your strategy · blue = patience · small = not yet.
Drop it on gold or Ethereum, chart timeframe 5m–15m. Run YOUR strategy on top: KRT gives the direction, you handle entries, stops and exits.
## ⚠️ Before you use it
This is an indicator, NOT a strategy: it provides no entry or exit points.
Validated with permutation tests on gold and Ethereum. On Bitcoin the detection displays but the statistical edge is not demonstrated; on major forex pairs it is absent. Test it yourself before using it elsewhere.
The background regime changes slowly (weeks): that is by design — it filters, it does not scalp.
## 🔍 Understanding the display (going deeper)
THE THREE LAYERS
Regime (background, default 8H) — a slow Kalman trend filter with hysteresis: the background only colors once the regime is installed (default 3 days, adjustable). Locked at its own bar close: it does not flicker and does not repaint.
Trend (curve, default 1H) — the exact price level that would flip the trend filter, computed in advance: the distance between price and curve measures the strength of the trend.
Your candle (the chart) — the curve is monitored at your chart's granularity: you see the flip before the 1H close (small triangles), the close confirms it (big triangles).
HOW TO READ IT
Green background + bright green curve + GO = every layer agrees: the most favorable long context. Mirror in red for shorts.
Pale green curve = uptrend without an installed regime — weak bias.
Pale red curve = intraday "breather" (recurring windows of weakness inside an uptrend) — a short-lived bias, not an invitation to swing short.
Blue = no statistical edge. The best trade is often no trade.
After a bullish GO, price often retests the curve before continuing: aim for the retest rather than the impulse.
TIMEFRAMES & SETTINGS
Chart from 1m to 1H (5m–15m recommended).
Trend TF / Regime TF: the only settings an advanced user may change (swing trading: 4H/D).
Regime installation age (default 72h): higher = rarer, more reliable background; lower = more reactive, more false regimes.
Everything else (q values, thresholds, windows): the calibrated and validated core of the model — keep the defaults.
---
KRT is a decision-support tool based on historical data. Past performance does not guarantee future results. Manage your risk. インジケーター

ATR Trend Rail🚦 ATR Trend Rail — a trend rail that knows when to shut up.
Most ATR / SuperTrend clones flip you into every chop-fest, then repaint the "perfect" entry after the candle closes. This one doesn't. It runs on a single idea: a trailing ATR band is only worth trading when the market regime agrees with it. 🎯
WHAT'S UNDER THE HOOD
📐 The rail — a trailing ATR band that latches trend state and rides price until volatility says the move is done. Adaptive, clean, no lag-heavy MA soup.
🧭 Regime filter (the whole point) — every flip is gated against a regime SMA. Leave it on your chart timeframe, or point it at an HTF for a top-down bias. Wrong side of regime? The signal never fires. This is the piece most trend tools skip entirely.
🚫 Non-repainting, for real — flips confirm on closed bars only, the regime pull runs lookahead-off with a realtime offset, and each leg's regime status locks the moment the flip bar closes. What you see in replay is what you'd have traded live. No hindsight magic.
🌫️ Faded legs — trends that fire against regime don't disappear, they dim. You still see the move; you just know it didn't earn a signal. Context, not censorship.
🔔 Alerts that behave — Bull, Bear, and Flip, confirmed-bar only. Set them once and trust them.
READ IT IN ONE GLANCE
🟢 Bright rail under price → confirmed uptrend, regime agrees
🔴 Bright rail over price → confirmed downtrend, regime agrees
⚪ Faded rail → the move exists, regime says wait
🔺 Triangle + Bull / Bear tag → a flip that passed the gate
100% free. 100% open-source. 🔓 Learn from it, make it yours.
Still useful after it's been on your chart a while. 🚦
— SlatinaTrades インジケーター

MR8 Trend Direction & Signal IndicatorThe MR8 is a dynamic trend-following indicator built on the McGinley Dynamic moving average — one of the most responsive and self-adjusting smoothing algorithms available. Unlike traditional EMAs that can lag or whipsaw in changing market conditions, the McGinley Dynamic automatically adapts its speed based on market velocity, resulting in cleaner, more reliable signals.
How It Works
MR8 plots two McGinley Dynamic lines — a faster Ribbon 8 and a slower Ribbon 9. When the faster line crosses above the slower line, the ribbon turns white, signaling bullish momentum and a potential long entry. When the faster line crosses below, the ribbon turns grey, signaling bearish momentum and a potential short entry. This crossover method filters out the noise and false flips that plague single-line slope-based indicators.
Built-In Stop Loss
MR8 includes an optional visual stop loss line calculated directly from the ribbon's current value — 2% above the line for shorts, 2% below for longs. Toggle it on in settings to see exactly where your risk level sits relative to the indicator itself, on any timeframe.
Alert Ready
MR8 includes two built-in alert conditions — one for long signals and one for short signals — with a webhook-compatible JSON message format. Connect directly to any automated trading bot or notification system with zero additional configuration.
Best Used On
BTC/USD and BTC/USDT
55 minute, 1 hour, and higher timeframes
Futures and spot markets
Settings
Ribbon 8 Length — controls the speed of the faster line (default 12)
Ribbon 9 Length — controls the speed of the slower line (default 21)
Stop Loss % — distance from the ribbon for the optional SL line (default 2%)
Show Stop Loss Line — toggle the SL visualization on or off インジケーター

Adaptive Supertrend [ForexCracked]🔷 OVERVIEW
Adaptive Supertrend is a trend-following tool that automatically adjusts its sensitivity to current market volatility. A classic Supertrend uses one fixed factor, which whipsaws in choppy conditions and lags in calm ones. This version measures the live volatility regime and scales the ATR factor between a low and a high setting, so the trail tightens when volatility is low and widens when volatility is high.
🔷 CONCEPTS
Supertrend trails price using an ATR band whose width is set by a "factor." Instead of one fixed factor, this script ranks the current ATR against its own recent range (a 0–100 volatility percentile) and maps that rank onto a factor between your Min and Max settings:
• Low volatility → smaller factor → tighter trail, earlier signals. • High volatility → larger factor → wider trail, fewer false flips.
🔷 HOW TO USE
• Stay with the trend while the line sits below price (up) or above price (down). • A flip of the line marks a potential trend change, shown with a Buy or Sell label. • Read the Info panel for the live trend and the current volatility regime (Low / Medium / High). • Combine it with structure or support and resistance for confirmation, and always use a stop. No single indicator is a complete system.
🔷 SETTINGS
• ATR Length — lookback for the ATR band. • Min Factor / Max Factor — the range the factor adapts between. • Volatility Lookback — bars used to rank the current volatility. • Style — Buy/Sell labels, gradient fill, info panel, bar coloring, and colors.
🔷 ALERTS
• Buy (flip up) and Sell (flip down).
Free and open-source. Educational tool, not financial advice. インジケーター

Dynamic Trend Bands & Anchored VWAP Signals [BigBeluga]Dynamic Trend Bands & Anchored VWAP Signals is an institutional-grade market structure toolkit built for TradingView. It blends smooth mathematical trend mapping with real-time volume calculations to identify key market turning points and trade breakout momentum.
Instead of displaying standard lag-heavy moving averages, this system locks onto real-time volatility boundaries and anchors Volume Weighted Average Price (VWAP) paths to major swing pivots. It tells you exactly who controls the market—buyers or sellers—and tracks the net volume driving every single expansion phase.
🔵 MAIN ENGINE & MARKET CALCULATION MECHANICS
1. Dynamic Volatility Envelope Framework
Smoothed Base Filter: The indicator runs a double-smoothed exponential moving average engine ( Baseline Length ) to find the true structural baseline of the asset.
ATR Volatility Channels: It projects dynamic outer bands based on market volatility over a set period ( ATR Volatility Length ). The width adjusts automatically using your preference ( ATR Band Multiplier ) to trap standard price fluctuations and highlight true volatility expansion zones.
Trend Flip Architecture: A definitive close above the upper band switches the system to a Bullish Regime, while a close below the lower band forces a Bearish Regime.
2. Pivot-Anchored VWAP Matrix
Structural Anchor Selection: The engine scans your chart using your lookback criteria ( Pivot Point Detection Length ) to pinpoint major structural market highs and lows.
Live VWAP Projections: The moment a trend flip occurs and a pivot is confirmed, the script constructs a dynamic, non-repainting polyline tracking the Volume Weighted Average Price (VWAP) directly from that structural anchor point.
Delta Volume Accumulation Engine: As price moves along the anchored line, a real-time looping counter sums up the true buy and sell volume to calculate Delta Volume (buying volume minus selling volume).
// Pivot-Anchored VWAP Delta Volume Accumulation Loop Snippet
for i = 0 to bar_index - highIndex - 1
cp1.push(chart.point.from_index(bar_index - i, vwap1 ))
loopDeltaVolHigh := loopDeltaVolHigh + (close > open ? volume : -volume )
poly1 := polyline.new(cp1, line_color = bullColor, line_style = line.style_dotted, line_width = 2)
🔵 WHY IT IS USEFUL
Exposes Institutional Commitments: Standard indicators show where price has been. This engine anchors to major structural pivots and factors in volume data to show you exactly where big institutional players are positioning their capital.
Provides Instant Market Context: The floating real-time dashboard reveals the macro trend status and the exact volume backing the latest market cycle at a glance, allowing you to instantly align your bias with the dominant force.
Quantifies Breakout Authenticity: When price breaches the anchored VWAP baseline, the indicator immediately calculates the net Delta Volume. This tells you if a breakout is backed by aggressive institutional participation or if it is just a low-volume trap.
🔵 HOW TO USE THE SYSTEM
Trading Bullish Breakouts: During an active uptrend, watch for price to pull back toward the lower volatility support bands or consolidation zones. Look for price to break sharply back up through the anchored VWAP baseline line. When a green breakout triangle ( ▲ ) appears, check the Delta Volume text label to verify aggressive buying pressure before entering.
Trading Bearish Breakdowns: When the macro regime shifts to bearish, monitor rallies into the upper resistance bands. Wait for price to cross down through the bearish anchored VWAP baseline. A purple breakdown triangle ( ▼ ) signals a high-probability short opportunity backed by aggressive selling volume.
Managing Risk and Invalidations: Use the outer volatility bands as dynamic structural backstops. For long positions, place your defensive stop loss just below the lower dotted line boundary; for short positions, manage risk right above the upper dotted line boundary.
Master institutional volume cycles and track true structural momentum using the Dynamic Trend Bands & Anchored VWAP Signals workspace. インジケーター

インジケーター

Vortex Signals [Gabremoku]Vortex Signals is a reworked version of the classic Vortex Indicator designed to make directional shifts easier to read and less reactive than raw crossover-based interpretations.
Instead of treating every VI+ / VI- crossover as a direct trading signal, this script uses the Vortex lines as a regime detector first, then looks for signal quality through spread expansion and re-activation after a pullback. The goal is to reduce the noisy sequence of repeated entries and exits that often appears when the standard Vortex is used on its own.
What the script does:
Plots the classic Vortex components, VI+ and VI-.
Fills the space between the two lines with a dynamic gradient that reflects which side is dominant and how strong the current spread is.
Detects bullish and bearish dominance regimes.
Uses a signal engine based on regime change, spread expansion, and first valid continuation after weakening.
Prints compact chart markers for LONG, SHORT, and CLOSE events.
Includes a dashboard to show current state, sequence status, setup condition, spread, slope, and directional bias.
How it works:
Regime: the script first determines whether VI+ is above VI- or VI- is above VI+.
Spread: it measures the distance between the two Vortex lines to evaluate whether dominance is meaningful or weak.
Expansion: a regime becomes more relevant when the spread rises above its short baseline and continues widening.
Trigger logic: instead of firing on every crossover, the script waits for either an early valid impulse after regime change or the first useful re-expansion after a pullback inside the same regime.
Why this is different from the classic Vortex:
The built-in Vortex is often read through raw line crossovers.
This script reframes the indicator as a dominance and continuation tool rather than a pure crossover trigger.
The signal engine is designed to capture cleaner transitions and continuation phases while avoiding part of the back-and-forth noise that often occurs in choppy conditions.
How to use it:
In Long mode, focus on bullish dominance and the appearance of a LONG marker after spread expansion or re-expansion.
In Short mode, focus on bearish dominance and the appearance of a SHORT marker after the same logic on the opposite side.
CLOSE markers appear when the opposite Vortex condition breaks the active sequence.
Suggested use:
This script is generally better suited to trending or directional environments than to highly compressed sideways markets.
In my testing and chart observation, the signals can appear cleaner on the 1H timeframe, where short-term noise is often reduced compared with very low timeframes, but users should still adapt settings to the instrument and market structure they trade.
Notes:
This indicator is not predictive and does not guarantee profitable signals.
It should be used as a decision-support tool together with price structure, risk management, and broader market context.
As with any directional model, false signals can still occur during whipsaw or transition phases. インジケーター

Momentum Squeeze Breakout EngineDescription
*Momentum Squeeze Breakout Engine* is a quantitative, trend-following breakout strategy engineered to capture explosive directional moves emerging from periods of asset compression (squeezes). By combining precise volatility boundaries, structural market sentiment filters, and micro-momentum triggers, this strategy systematically avoids false breakouts.
### Core Mechanics & Features
1. Volatility Squeeze Identification
The foundation of this strategy relies on the relationship between *Bollinger Bands* and *Keltner Channels. When the Bollinger Bands contract *inside the Keltner Channels, it confirms a highly compressed, low-volatility environment (highlighted by the subtle blue background zones). This indicates stored market energy primed for release.
2. Rigid Structural Macro Filter (200 EMA)
To eliminate counter-trend traps, the strategy utilizes a strict 200-period Exponential Moving Average (EMA) as a macro baseline. Long entries are strictly prohibited if the asset is printing below this line, ensuring you only trade high-probability expansions aligned with the dominant institutional trend.
3. Holistic Intra-Bar Bias
Rather than relying purely on close prices, the script calculates an internal *Holistic Bias* engine. It evaluates where the close falls relative to each bar's high-low range over a specific structural lookback period. A valid breakout requires a positive cumulative sentiment bias (cumBias > 0), ensuring authentic accumulation is taking place.
4. Micro-Momentum (Rate of Change) Filter
To prevent entering "slow drift" scenarios or low-volume fakeouts, a 3-period Rate of Change (ROC) velocity check is integrated. A breakout will only trigger an entry if the price action demonstrates immediate expanding velocity (priceROC > 0).
# Execution Rules
* *BUY Signal:* Generated when a compression zone has broken out within the last 3 bars, the price crosses above the Upper Bollinger Band, the macro trend is bullish (Price > 200 EMA), holistic bias is positive, and positive momentum velocity is confirmed.
* *EXIT Signal:* Generated when the price crosses below the Lower Bollinger Band following a squeeze or when the holistic bias shifts negatively, functioning as a structural trailing mechanism.
* *Signal Spacing:* Features a built-in 15-bar cooldown rule to prevent over-trading and signal clustering within volatile consolidation nodes.
### Best Practices
* *Intended Timeframe:* Optimized for the *1-Hour (1H)* chart.
* *Assets:* Best suited for high-liquidity assets including Major Crypto Pairs (BTC, ETH), Blue- Chip Equities, Indices and Major Forex Pairs.
* *Risk Management:* Default settings utilize a 100% equity allocation model for raw backtesting transparency, but traders should scale their position sizes according to their personal risk tolerances.
### Disclaimer
*Financial and Trading Risk Warning:*
This script is an educational and analytical tool designed to demonstrate quantitative breakout concepts using historical data. It is published as an open-source resource for informational purposes only and does not constitute financial, investment, or trading advice.
Past performance is not indicative of future results. Market conditions change constantly, and systematic strategies can experience significant drawdowns. Automated trading involves substantial risk of capital loss. Never trade with money you cannot afford to lose. The author assumes no liability or responsibility for any financial losses incurred from the use or modification of this code. Always perform your own independent research and forward-test on a demo account before risking live capital. ストラテジー

VWAP SAR Magnitude Filter [Gabremoku]VWAP SAR Magnitude Filter
Short description
A state-based long-only trend filter that combines VWAP context with Parabolic SAR structure. It uses VWAP as the main trend and invalidation line, while SAR confirms directional pressure and helps visualize momentum expansion or compression.
Descrizione completa
VWAP SAR Magnitude Filter is a long-only overlay designed to turn two familiar tools, VWAP and Parabolic SAR, into a cleaner operational framework rather than a simple indicator mashup.
The script uses VWAP as the primary market context and invalidation line. When price is above VWAP, the market is treated as having bullish intraday or swing context. When price falls back below VWAP, that context weakens and the script can trigger an exit.
Parabolic SAR is not used here as the primary exit engine. Instead, it acts as a structural confirmation tool. A valid long setup requires price to be above VWAP while SAR remains below the candle, which helps align directional bias and price structure. This reduces the number of signals that would appear if VWAP or SAR were used independently.
The script also includes an Auto mode engine. In Auto mode, lower intraday timeframes are handled with faster behavior, while higher timeframes are treated as swing conditions with additional filters. This makes the indicator adapt its sensitivity without requiring constant manual switching.
In Swing mode, the script becomes more selective by requiring:
persistence of the long condition for a minimum number of bars,
a minimum distance between price and SAR,
confirmed exit behavior below VWAP,
a longer cooldown after exits.
This approach is intended to reduce noise and avoid frequent re-entries during unstable or sideways phases. The indicator is therefore more focused on readable continuation structure than on generating many raw signals.
How it works
Long context: Price above VWAP.
Long confirmation: Parabolic SAR below the candle.
Long entry: The bullish context and structural confirmation align.
Exit logic: Main exit occurs on VWAP fallback; in Swing mode the fallback can require confirmation across multiple bars.
Mode engine: Auto selects Intraday or Swing behavior depending on the chart timeframe.
Visual features
VWAP line as the main reference level.
SAR line and glow for directional structure.
Magnitude fill between price and SAR to visualize pressure expansion and compression.
Optional bar coloring.
Dashboard with State, Mode, Regime, Flow, Distance %, SAR Side, and Exit Logic.
How to use it
This indicator works best when price is developing directional structure away from VWAP. In strong trends, it can help frame cleaner long continuation behavior. In choppy or sideways markets around VWAP, noise is naturally higher because the market lacks clear directional context.
A practical way to use it is:
monitor whether price is holding above VWAP,
wait until SAR is also positioned below price,
use the dashboard to confirm the current regime and state,
treat VWAP fallback as the main warning that the active long structure may be weakening.
Limitations
This indicator is not meant to eliminate all noise, especially in lateral environments where price oscillates around VWAP. In those conditions, repeated context shifts are part of market behavior, so no VWAP-based trend tool can remove all false transitions. The script is designed to reduce that noise, not to make it disappear completely.
It is also a context and structure tool, not a complete trading system. Users should still evaluate market conditions, liquidity, session behavior, and personal risk management before making decisions. インジケーター

インジケーター

Machine Learning Adaptive DMI Signals [AlgoAlpha]🟠 OVERVIEW
The Directional Movement Index (DMI) is commonly calculated using a fixed lookback length. But market conditions change over time, and a length that works well during one period may become less effective during another.
This script builds multiple DMI models across a user-defined range of lengths and continuously evaluates their past performance. Each DMI length acts as an independent expert. As new directional flips occur, the script measures how well each expert performed and updates its internal scoring system.
The result is an adaptive DMI that automatically shifts toward lengths that have recently produced better directional signals while reducing the influence of weaker performers.
🟠 CONCEPTS
Expert DMI — A DMI calculation running at a specific lookback length within the tested range.
Directional Flip — A change in trend state when +DI crosses above -DI or when -DI crosses above +DI.
Reward Score — A performance score assigned to each completed flip based on return, move quality, pullback behavior, or win rate.
Maximum Favorable Excursion (MFE) — The largest move in the trade's favor before the next directional flip.
Maximum Adverse Excursion (MAE) — The largest move against the trade before the next directional flip.
Recency Decay — A weighting system that gradually reduces the influence of older observations so recent market behavior has greater impact.
Softmax Weighting — A probability-style weighting process that gives greater influence to higher-scoring DMI lengths when estimating the adaptive length.
🟠 FEATURES
Adaptive +DI and -DI Lines — Displays directional movement using a dynamically selected DMI length that adjusts over time.
Directional Clouds — Color-filled regions between the DI lines help visualize which side currently has directional control.
Bullish and Bearish Flip Signals — ▲ and ▼ markers appear when the Adaptive +DI and -DI lines cross.
ADX Strength Display — Strength squares at the bottom of the pane become more visible as trend strength increases and fade as strength decreases.
Information Table — Displays the active adaptive length, selected scoring mode, memory count, and current bullish or bearish trend state in a customizable table.
🟠 HOW TO USE
Watch for bullish flips when Adaptive +DI crosses above Adaptive -DI to identify potential shifts toward upward directional control.
Watch for bearish flips when Adaptive -DI crosses above Adaptive +DI to identify potential shifts toward downward directional control.
Use the ADX strength squares to gauge whether directional movement is strengthening or weakening.
Increase the tested length range when evaluating a wider variety of market conditions.
Increase Memory and Forget Old Trades values for more stable adaptation and slower length changes.
Decrease Memory or lower the decay factor when faster adaptation to recent behavior is preferred.
Experiment with the available scoring methods to determine whether return, trend quality, or consistency is more important for your analysis.
🟠 CONCLUSION
Machine Learning Adaptive DMI combines traditional DMI calculations with a performance-driven adaptive length selection process. Instead of relying on a fixed lookback period, it continuously evaluates how different DMI lengths have behaved and adjusts accordingly. This provides a dynamic view of directional strength, trend bias, and signal quality that reflects recent market behavior. インジケーター

インジケーター

Strategy Forecast EngineThe Strategy Forecast Engine is a regime-based Monte Carlo forecasting tool that estimates the future return distribution of trend-following strategies across different market environments. The model identifies the current market regime, conditions forecasts on historical returns observed during comparable regimes, and generates thousands of potential future price paths using Monte Carlo simulation. The resulting return distribution is presented through percentile projections and a structured, color-coded table that provides a comprehensive assessment of the forecast.
First, the model identifies the current market regime using the selected trend-following strategy. Users can choose between a moving-average crossover strategy, a volatility-based trailing stop strategy, or a combined strategy that incorporates both approaches. Supported moving-average types include the Exponential Moving Average (EMA), Simple Moving Average (SMA), Wilder’s Moving Average (RMA), and Weighted Moving Average (WMA). Supported volatility types include the Average True Range (ATR), Standard Deviation (SD), and Mean Absolute Deviation (MAD). By default, the model applies an asymmetric design in which conflicting signals default to bullish unless neutral regimes are enabled in the menu. Market regimes are determined as follows:
Bullish Trend Regime = (Fast MA – Slow MA) > (ATR × Trend Margin)
Bearish Trend Regime = (Fast MA – Slow MA) < –(ATR × Trend Margin)
Bullish Volatility Regime = Price > (Highest Price – (Volatility × Stop Factor))
Bearish Volatility Regime = Price < (Lowest Price + (Volatility × Stop Factor))
Bullish Combined Regime = Bullish Trend Regime and Bullish Volatility Regime
Bearish Combined Regime = Bearish Trend Regime and Bearish Volatility Regime
Once the current regime has been identified, the model collects all historical logarithmic returns that occurred during the same regime beginning from the selected start date. Only returns from the matching regime are used to generate the forecast, allowing projections to be conditioned on historically comparable market environments rather than treating all historical observations as equally relevant. If duration-adjusted forecast is enabled in the menu, the model further restricts the sample pool to returns from regimes that were at least as mature as the current regime.
The Monte Carlo simulation engine then generates thousands of possible future price paths over the selected forecast horizon. Each simulation randomly samples historical returns from the sample pool associated with the current regime and compounds them forward to generate a potential future price path. This process is repeated for the specified number of simulations to produce a broad range of possible future outcomes. The random seed controls reproducibility, ensuring that identical settings produce identical forecasts. Once all individual simulations have been completed, the resulting return distribution is summarized using percentile projections:
95% = 5% of simulations ended above this level and 95% ended below it.
75% = 25% of simulations ended above this level and 75% ended below it.
Median = 50% of simulations ended above this level and 50% ended below it.
25% = 25% of simulations ended below this level and 75% ended above it.
5% = 5% of simulations ended below this level and 95% ended above it.
The upper quartile (75%) and lower quartile (25%) define the Interquartile Range (IQR), which contains the middle 50% of all simulated outcomes and represents the central range of the projected outcome distribution. The upper and lower tail percentiles can be set to 10% (90% / 10%), 5% (95% / 5%), or 1% (99% / 1%). The default setting is 5%, which captures the middle 90% of simulated outcomes. At 10%, the range captures 80% of simulated outcomes, while at 1%, the range captures 98% of simulated outcomes. To further evaluate the risk/reward characteristics of the forecast, the model includes a built-in table with the following metrics:
Regime = Current market regime based on the selected strategy configuration.
Duration = Percentile rank of current regime duration relative to past regimes.
Forecast = Percentile rank of current duration including the forecast horizon.
Win Rate = Percentage of profitable simulations relative to total simulations.
Profit Factor = Ratio of total simulated profits to total simulated losses.
Expectancy = Average expected percentage return across all simulations.
Reward/Risk = Ratio of upper quartile return to lower quartile return.
Asymmetry = Ratio of selected upper tail return to selected lower tail return.
Skewness = Ratio of upside potential to downside risk relative to the median.
Sample Size = Number of historical returns available for the current regime.
Frequency = Percentage of historical returns belonging to the current regime.
In summary, the Strategy Forecast Engine is a comprehensive forecasting tool designed to help investors evaluate the return distribution of trend-following strategies based on the current market regime. By combining regime detection with Monte Carlo simulation, the model conditions forecasts on historical returns observed during comparable market regimes to estimate the distribution of potential outcomes and their associated risk/reward characteristics. While the model provides valuable insight into historical return patterns, investors should remain mindful that historical market behavior may not necessarily persist under future market conditions. インジケーター
