ที่อัปเดต:
Smart Money Concept ML [PickMyTrade]

Price breaks a swing level. Do you take the break, or wait for a retest?
Smart Money Concept ML brings that question onto the chart: structure and liquidity mapped together, a retest estimate recorded at each swing break, and a running check of how those estimates compare with what actually happened.

――――――――――――――――――――――――――――――――――――――
🔷 WHAT IT MEASURES
🔸 Break of Structure (BOS) in the established direction and Change of Character (CHoCH) against it, using confirmed swing points
🔸 Order blocks, optional fair value gaps, equal highs and lows, and the protected and opposing extremes of the current range
🔸 Order blocks, optional fair value gaps, equal highs and lows, and the protected and opposing extremes of the current range. Optional internal structure shows shorter swings; premium/discount shading shows the two halves of the dealing range
🔸 Retest odds — the estimated chance of price touching the broken swing level within the selected number of bars. A touch counts as a retest; it does not require a bounce or a successful trade
🔸 Liquidity odds — the estimated chance of the nearest untaken pool above price being traded through before the nearest pool below, and vice versa
――――――――――――――――――――――――――――――――――――――
🔷 THE LEARNING ENGINE
🔸 Retest estimates begin with a random-walk calculation using distance from the broken level, recent price-change volatility, and the retest window. The mathematical basis is the reflection principle
🔸 Liquidity estimates begin with the standard gambler’s-ruin first-touch calculation: where price sits between two boundaries
🔸 Bayesian logistic calibration adjusts these starting estimates as outcomes resolve on the chart. Retest calibration learns an intercept and slope; liquidity calibration learns a slope while preserving complementary upper and lower odds
🔸 This calibration is the learned component behind “ML.” Structure detection, zones, and signal rules are explicitly defined in the code
🔸 Each calibration fit uses its latest 500 resolved observations at most, with a prior that pulls it toward the starting formula when evidence is limited. The table reads LEARNING until 30 break observations have been scored as retested or not retested; fitting already takes place during that period. Displayed scoring totals can exceed 500
🔸 Each recorded estimate is scored before its own outcome is used to update the model
🔸 A retest observation resolves on its first later touch or when its window expires. Liquidity calibration samples qualifying setups at swing breaks; setups that cross both pools on one bar or remain unresolved after 1,000 bars are excluded
――――――――――――――――――――――――――――――――――――――
🔷 CHECKING THE EVIDENCE
🔸 Calibration compares the average recorded estimate with the observed event rate and shows the sample count. Tooltips add probability-error comparisons against the unadjusted formula and the chart’s running base rate
🔸 The Edge Test compares three groups: BOS versus CHoCH, breaks with versus without a fair value gap in the leg, and breaks preceded versus not preceded by a liquidity sweep
🔸 Follow-through means a close one risk unit beyond the break close before a close through the protected swing. Unresolved observations expire after 150 bars and are excluded
🔸 A two-proportion test, adjusted for the three comparisons, checks whether an observed difference exceeds its statistical threshold. This describes the loaded sample; it does not establish a lasting trading advantage
――――――――――――――――――――――――――――――――――――――
🔷 SIGNALS AND DISPLAY
🔸 Break Close records a hypothetical entry on a qualifying confirmed swing break. Level Retest waits within the selected window for a later bar to touch the level and close back beyond it in the break direction; a close through the protected swing cancels the setup. Adaptive waits only when the retest estimate meets its threshold
🔸 Stops sit beyond the protected swing, with an ATR buffer. Two targets are expressed as multiples of initial risk, with an optional move of the stop to entry after TP1
🔸 One signal is tracked at a time. Same-direction signals are skipped; an opposing signal closes the existing position at the bar’s close
🔸 The hypothetical Record scores half the position at TP1 and the remainder at TP2 or another exit. If TP1 is never reached, the full position is scored at the exit. It reports average R, adds an approximate 95% interval from 10 closed signals, and labels fewer than 30 as too few to judge
🔸 Blue marks bullish structure and orange marks bearish structure. Display toggles control the zones and labels; Zen Mode hides labels and the table
🔸 Alerts cover structure breaks, liquidity sweeps, and signal events. Select “Any alert() function call” for the combined entry and exit stream, available as Text or JSON
🔸 Eight separate alert conditions cover BUY, SELL, signal closure, bullish and bearish CHoCH, bullish and bearish BOS, and liquidity sweeps. The combined Text/JSON signal stream is described below
――――――――――――――――――――――――――――――――――――――
🔷 ALERTS AND AUTOMATION
🔸 Supports webhook-based automation through TradingView alerts and an external receiver configured for this script’s message format. The indicator generates signals; the receiving service handles order execution
🔸 Choose Text for readable notifications or JSON for structured integration. JSON includes source, event, action, position, side, symbol, timeframe, price, entry, sl, tp1, and tp2
🔸 Signal events include entry, TP1, TP2, stop loss, stop at entry, timeout, and reversal. The action field identifies buy, sell, partial_close, or close. The side field describes the original position direction, including on exits; receivers should use action and position to interpret an exit
🔸 After selecting the symbol, timeframe, and script inputs, set Alert Message Format to JSON and create an alert using “Any alert() function call.” Add your receiver’s webhook URL in the alert settings. TradingView requires two-factor authentication for webhooks
🔸 Messages are emitted on confirmed bar closes. A reported stop or target price is the script’s reference price for the event, not confirmation of an external fill. On a reversal, the close message is sent before the new entry message
🔸 The payload does not include order quantity, account credentials, or a unique event ID. Position sizing, symbol mapping, duplicate handling, and execution rules must be configured in the receiver. Compatibility with a particular execution platform depends on its required payload
🔸 A TP2 event can occur without a separate TP1 message. If multiple exit events occur on one bar, only the final assigned exit message is sent. The receiver must account for this when managing partial exits; the chart’s hypothetical 50% allocation is not an order-size instruction in the payload
🔸 Recreate the alert after changing script code, inputs, symbol, or timeframe: an existing TradingView alert runs its saved configuration. Hiding Buy/Sell signals changes their display; it does not disable the underlying alert logic
――――――――――――――――――――――――――――――――――――――
🔷 INPUTS
Swing Length / Internal Length — bars on each side needed to confirm a pivot. Defaults 10 / 3.
Order Blocks — number retained per side. Default 2.
Fair Value Gap Minimum / Equal-Level Tolerance — defaults 0.30 / 0.15 ATR.
Retest Window — time allowed for a return to the broken level. Default 20 bars.
Entry — Break Close, Level Retest, or Adaptive. Default Break Close.
Adaptive Threshold — estimate required to wait for a retest in Adaptive mode. Default 80%.
Breaks That Signal — CHoCH, BOS, or both. Default both.
Stop Buffer / Maximum Risk — defaults 0.20 / 6.0 ATR; wider setups are skipped.
TP1 / TP2 — defaults 1R / 2R. Stop to entry after TP1 is enabled by default.
Trade Timeout — default 150 bars.
Alert Message Format — Text or JSON. Default Text.
――――――――――――――――――――――――――――――――――――――
🔷 REQUIREMENTS AND LIMITATIONS
🔸 Use standard price bars. Synthetic chart prices can distort the measurements and hypothetical fills
🔸 Pivots become available only after their right-side confirmation bars close. A swing marker identifies an earlier bar; it was not available on that bar
🔸 Breaks, signals, and recorded estimates are committed at bar close. Live liquidity odds and the premium/discount reading can change during the current bar
🔸 Learning starts from the loaded history. Loading a different stretch of data can change calibration, historical estimates, diagnostics, and Adaptive signals
🔸 Random-walk assumptions simplify market behavior. Overlapping observations can also make statistical intervals appear more precise than the evidence warrants
🔸 Retest and liquidity percentages describe specific touch events, not win rates. The signal record is hypothetical, excludes commission and slippage, and is not a Strategy Tester backtest
🔸 When a later bar touches both a stop and a target, the record gives the stop priority. Chart bars cannot reveal every intrabar price sequence
――――――――――――――――――――――――――――――――――――――
Built in Pine Script v6. Open source — Mozilla Public License 2.0.
Smart Money Concept ML brings that question onto the chart: structure and liquidity mapped together, a retest estimate recorded at each swing break, and a running check of how those estimates compare with what actually happened.
――――――――――――――――――――――――――――――――――――――
🔷 WHAT IT MEASURES
🔸 Break of Structure (BOS) in the established direction and Change of Character (CHoCH) against it, using confirmed swing points
🔸 Order blocks, optional fair value gaps, equal highs and lows, and the protected and opposing extremes of the current range
🔸 Order blocks, optional fair value gaps, equal highs and lows, and the protected and opposing extremes of the current range. Optional internal structure shows shorter swings; premium/discount shading shows the two halves of the dealing range
🔸 Retest odds — the estimated chance of price touching the broken swing level within the selected number of bars. A touch counts as a retest; it does not require a bounce or a successful trade
🔸 Liquidity odds — the estimated chance of the nearest untaken pool above price being traded through before the nearest pool below, and vice versa
――――――――――――――――――――――――――――――――――――――
🔷 THE LEARNING ENGINE
🔸 Retest estimates begin with a random-walk calculation using distance from the broken level, recent price-change volatility, and the retest window. The mathematical basis is the reflection principle
🔸 Liquidity estimates begin with the standard gambler’s-ruin first-touch calculation: where price sits between two boundaries
🔸 Bayesian logistic calibration adjusts these starting estimates as outcomes resolve on the chart. Retest calibration learns an intercept and slope; liquidity calibration learns a slope while preserving complementary upper and lower odds
🔸 This calibration is the learned component behind “ML.” Structure detection, zones, and signal rules are explicitly defined in the code
🔸 Each calibration fit uses its latest 500 resolved observations at most, with a prior that pulls it toward the starting formula when evidence is limited. The table reads LEARNING until 30 break observations have been scored as retested or not retested; fitting already takes place during that period. Displayed scoring totals can exceed 500
🔸 Each recorded estimate is scored before its own outcome is used to update the model
🔸 A retest observation resolves on its first later touch or when its window expires. Liquidity calibration samples qualifying setups at swing breaks; setups that cross both pools on one bar or remain unresolved after 1,000 bars are excluded
――――――――――――――――――――――――――――――――――――――
🔷 CHECKING THE EVIDENCE
🔸 Calibration compares the average recorded estimate with the observed event rate and shows the sample count. Tooltips add probability-error comparisons against the unadjusted formula and the chart’s running base rate
🔸 The Edge Test compares three groups: BOS versus CHoCH, breaks with versus without a fair value gap in the leg, and breaks preceded versus not preceded by a liquidity sweep
🔸 Follow-through means a close one risk unit beyond the break close before a close through the protected swing. Unresolved observations expire after 150 bars and are excluded
🔸 A two-proportion test, adjusted for the three comparisons, checks whether an observed difference exceeds its statistical threshold. This describes the loaded sample; it does not establish a lasting trading advantage
――――――――――――――――――――――――――――――――――――――
🔷 SIGNALS AND DISPLAY
🔸 Break Close records a hypothetical entry on a qualifying confirmed swing break. Level Retest waits within the selected window for a later bar to touch the level and close back beyond it in the break direction; a close through the protected swing cancels the setup. Adaptive waits only when the retest estimate meets its threshold
🔸 Stops sit beyond the protected swing, with an ATR buffer. Two targets are expressed as multiples of initial risk, with an optional move of the stop to entry after TP1
🔸 One signal is tracked at a time. Same-direction signals are skipped; an opposing signal closes the existing position at the bar’s close
🔸 The hypothetical Record scores half the position at TP1 and the remainder at TP2 or another exit. If TP1 is never reached, the full position is scored at the exit. It reports average R, adds an approximate 95% interval from 10 closed signals, and labels fewer than 30 as too few to judge
🔸 Blue marks bullish structure and orange marks bearish structure. Display toggles control the zones and labels; Zen Mode hides labels and the table
🔸 Alerts cover structure breaks, liquidity sweeps, and signal events. Select “Any alert() function call” for the combined entry and exit stream, available as Text or JSON
🔸 Eight separate alert conditions cover BUY, SELL, signal closure, bullish and bearish CHoCH, bullish and bearish BOS, and liquidity sweeps. The combined Text/JSON signal stream is described below
――――――――――――――――――――――――――――――――――――――
🔷 ALERTS AND AUTOMATION
🔸 Supports webhook-based automation through TradingView alerts and an external receiver configured for this script’s message format. The indicator generates signals; the receiving service handles order execution
🔸 Choose Text for readable notifications or JSON for structured integration. JSON includes source, event, action, position, side, symbol, timeframe, price, entry, sl, tp1, and tp2
🔸 Signal events include entry, TP1, TP2, stop loss, stop at entry, timeout, and reversal. The action field identifies buy, sell, partial_close, or close. The side field describes the original position direction, including on exits; receivers should use action and position to interpret an exit
🔸 After selecting the symbol, timeframe, and script inputs, set Alert Message Format to JSON and create an alert using “Any alert() function call.” Add your receiver’s webhook URL in the alert settings. TradingView requires two-factor authentication for webhooks
🔸 Messages are emitted on confirmed bar closes. A reported stop or target price is the script’s reference price for the event, not confirmation of an external fill. On a reversal, the close message is sent before the new entry message
🔸 The payload does not include order quantity, account credentials, or a unique event ID. Position sizing, symbol mapping, duplicate handling, and execution rules must be configured in the receiver. Compatibility with a particular execution platform depends on its required payload
🔸 A TP2 event can occur without a separate TP1 message. If multiple exit events occur on one bar, only the final assigned exit message is sent. The receiver must account for this when managing partial exits; the chart’s hypothetical 50% allocation is not an order-size instruction in the payload
🔸 Recreate the alert after changing script code, inputs, symbol, or timeframe: an existing TradingView alert runs its saved configuration. Hiding Buy/Sell signals changes their display; it does not disable the underlying alert logic
――――――――――――――――――――――――――――――――――――――
🔷 INPUTS
Swing Length / Internal Length — bars on each side needed to confirm a pivot. Defaults 10 / 3.
Order Blocks — number retained per side. Default 2.
Fair Value Gap Minimum / Equal-Level Tolerance — defaults 0.30 / 0.15 ATR.
Retest Window — time allowed for a return to the broken level. Default 20 bars.
Entry — Break Close, Level Retest, or Adaptive. Default Break Close.
Adaptive Threshold — estimate required to wait for a retest in Adaptive mode. Default 80%.
Breaks That Signal — CHoCH, BOS, or both. Default both.
Stop Buffer / Maximum Risk — defaults 0.20 / 6.0 ATR; wider setups are skipped.
TP1 / TP2 — defaults 1R / 2R. Stop to entry after TP1 is enabled by default.
Trade Timeout — default 150 bars.
Alert Message Format — Text or JSON. Default Text.
――――――――――――――――――――――――――――――――――――――
🔷 REQUIREMENTS AND LIMITATIONS
🔸 Use standard price bars. Synthetic chart prices can distort the measurements and hypothetical fills
🔸 Pivots become available only after their right-side confirmation bars close. A swing marker identifies an earlier bar; it was not available on that bar
🔸 Breaks, signals, and recorded estimates are committed at bar close. Live liquidity odds and the premium/discount reading can change during the current bar
🔸 Learning starts from the loaded history. Loading a different stretch of data can change calibration, historical estimates, diagnostics, and Adaptive signals
🔸 Random-walk assumptions simplify market behavior. Overlapping observations can also make statistical intervals appear more precise than the evidence warrants
🔸 Retest and liquidity percentages describe specific touch events, not win rates. The signal record is hypothetical, excludes commission and slippage, and is not a Strategy Tester backtest
🔸 When a later bar touches both a stop and a target, the record gives the stop priority. Chart bars cannot reveal every intrabar price sequence
――――――――――――――――――――――――――――――――――――――
Built in Pine Script v6. Open source — Mozilla Public License 2.0.
Release Note
Smart Money Concept ML — v2: Historical structureThis update makes earlier market structure easier to read. The previous display kept six swing breaks and twenty internal breaks, so much of the structure disappeared when reviewing an older period. Historical mode now rebuilds confirmed events inside the visible chart window when you scroll or zoom.
🔷 Historical structure
🔸 Swing BOS and CHoCH use solid lines. Internal structure is enabled by default and uses dashed lines with smaller i-BOS and i-CHoCH labels. BOS identifies a break in the tracked direction; CHoCH identifies a break against it. The first break before a direction is established is classified as BOS.
🔸 The default limits are 120 swing breaks, 160 internal breaks and 40 EQH/EQL pairs per visible window. The respective maximums are 180, 180 and 60. At a limit, older drawings in that window are omitted; zoom into the earlier period to rebuild them. Coverage depends on the history TradingView has loaded.
🔸 Historical EQH/EQL links join two confirmed internal pivots within the ATR tolerance. They stop at the second pivot and remain after a sweep. They show a historical formation, not a claim that its liquidity is still resting.
🔸 Optional HH/HL/LH/LL labels retain up to 40 confirmed swing points. Recent mode keeps the original short-history presentation and active equal-high/low pools.
🔷 Reading the chart
🔸 Blue means bullish structure; orange means bearish structure. EQH uses orange and EQL blue. Solid = swing structure, dashed = internal structure, dotted = historical equal-high/low pair.
🔸 Past entry signals now show only their blue/orange arrows, without BUY/SELL text. The current active trade keeps its right-edge entry-price label.
🔸 Swing label size and placement are configurable. Choose Middle of level or Break bar. Retest percentages can be shown beside the latest break; historical labels remain short, with details in hover tooltips.
🔸 The optional Publication heading and key adds the chart heading and legend. The full info table remains available separately. These display controls do not change the signal or learning rules.
🔷 How to use v2
1. Open a standard candlestick chart and keep Structure View set to Historical.
2. Keep Show Internal Structure enabled for the minor structure, or disable it for a simpler swing-only map.
3. Scroll to the period you want to examine and allow the drawings to recalculate. Zoom in if labels overlap. The info table reports displayed history counts and limits.
4. Enable Show Swing Labels for HH/HL/LH/LL. Order blocks, fair value gaps, liquidity odds, signals and the info table have separate controls.
5. Hover a structure label for its price and confirmation time, shown in the exchange timezone. Break bar placement anchors the text at that confirming bar.
🔷 Code review and clarifications
The EQ-pair check now rejects pairs whose intervening span exceeds its 300-bar scan. The previous capped scan could overlook a violation in an unchecked earlier part of a widely separated pair. This correction can change affected liquidity pools, their outcomes and related estimates.
The learning description has also been corrected: calibration starts with the first resolved sample, with a strong prior toward the random-walk formula. LEARNING means fewer than 30 resolved samples; it does not mean calibration is disabled. Retest estimates use an intercept and slope fitted to earlier resolved outcomes. Liquidity calibration fixes the intercept at zero and fits the slope. No new ML model or predictive-performance claim is introduced in v2.
🔷 Timing and limitations
Pivots need the selected Swing Length or Internal Length of right-hand bars to confirm. Their historical locations are marked only after that delay. A structure break requires a confirmed close through a standing pivot level. A label centred on an earlier level is not an earlier signal.
Panning selects drawings; it does not rewind the model. The dashboard, active zones, current trade levels and live liquidity estimates still describe the latest loaded bar. Retest outcomes in tooltips are later observations. Use Bar Replay for an earlier as-of state.
Loading different history can change calibration, counts and estimates; Adaptive entry can also change because it uses those estimates. The record remains hypothetical, without commission or slippage, and is not a broker execution report. TP1 is scored at its target even on gaps; stop and TP2 exits use the opening price when it gaps beyond the applicable level. Same-bar stop/target conflicts are scored stop-first, and a stop moved to entry after TP1 applies from the next bar. These are OHLC simulation conventions, not intrabar execution evidence.
The eight existing alertconditions and the Text/JSON alert interface remain available. Create alerts from the updated script if you want them to use v2; existing TradingView alerts retain their saved script/settings snapshot. No broker integration is demonstrated by this update.
This is an update to this author's existing implementation. It expands historical display and adds the bounded EQ-pair correction; it does not introduce another author's SMC source code. Historical observations and calibrated estimates do not guarantee future outcomes.
Release Note
Smart Money Concept ML — v2.1: Trade-plan consistency and Plan MLThis update focuses on the trade plan behind the structure markings: do the displayed prices agree with the risk calculation, how does the learned TP2 estimate compare with a simple historical baseline, and how long did similar completed plans last?
🔷 SL/TP and risk figures now use one stored plan
Entry, the protective stop and both targets are stored on the symbol's tick grid before a signal qualifies. The stop rounds outward, risk is calculated in whole ticks, and the existing maximum-risk check uses that same plan. Targets are then built from the stored initial risk. Drawings, labels, alert prices and the hypothetical record use those levels.
This corrects the case where internal calculations used an exact 2R target but rounded labels or alert prices implied approximately 1.89R. Invalid or wrong-side plans are rejected. Custom fractional target multiples round outward to available ticks, so their actual R can exceed the requested multiple on a coarse-tick instrument; the displayed payoff and record use the actual stored prices. Reversed TP inputs now have matching target tooltips.
The default TP1 and TP2 remain 1R and 2R. With half taken at each, reaching both listed targets gives 1.5R gross for the combined position, before costs. The Plan ML panel and detailed tooltips make this combined payoff explicit. The update does not increase target distances simply to show a larger R multiple.
🔷 A separate Plan ML model
The new model estimates whether an eligible plan closes at TP2 under the script's existing stop, reversal and timeout rules. A TP1 exit followed by breakeven, a stop, timeout or reversal is not labelled a TP2 outcome. This estimate is different from the existing retest estimate, which concerns a touch of a broken level rather than a profitable trade.
At entry, four bounded features are frozen: Break Close versus Level Retest method, initial risk relative to ATR(14), directional three-bar momentum relative to ATR(14), and ATR(14) relative to ATR(50). An online logistic model, regularized toward a simple prior rate, learns only after a plan closes. Each estimate and its baseline are saved before that plan's outcome is known. The model is informational and does not filter entries or change the plan's stop, targets or exits.
The baseline is the earlier plans' smoothed TP2 rate. The script scores model and baseline estimates against later resolved outcomes using Brier scores. Positive skill means lower accumulated squared probability error than that baseline on this loaded history. LEARNING means fewer than 30 completed plans. UNPROVEN means the learned model has not beaten the baseline. Observed skill is historical evidence, not statistical certification or a promise of future performance. Changing the loaded history changes the training sequence and can change these values.
🔷 Timing from comparable completed plans
The panel also shows P50 and P75 durations: the median and 75th percentile of up to 30 nearby earlier completed plans, selected from the latest 250 records with the same entry method and similar normalized conditions. At least 10 matches are required. The match count is shown.
These durations include every final outcome, including failures and timeouts. They are not a time-to-TP forecast, a remaining-time countdown or a promised holding period. Approximate interval minutes multiply bars by the chart interval and exclude session closures and gaps. The existing Bars timeout still defaults to 150 bars; there is no fixed four-hour minimum hold.
There is now an optional Minutes timeout. For example, choose Minutes and 60 to close a remaining plan at the first available confirmed bar close after at least 60 elapsed minutes from its entry close. Stop and target checks retain priority on that bar under the OHLC simulation rules. Session gaps can delay that available close; this is not an intrabar execution deadline. Bars mode now permits limits as short as one bar. Changing the timeout recomputes historical plan outcomes, model learning and similar-plan durations under the selected rule; it does not promise a profitable exit within that time.
🔷 Partial and final alert events
Partial exits are now queued before any final exit on the same confirmed bar. A TP1 event is retained when the remaining position subsequently times out or reverses on that bar. If an OHLC bar reaches TP2 before a previous partial has been recorded, the script emits the modelled TP1 partial followed by the final TP2 event. The record's partial-exit calculation uses the actual stored TP1 price.
These remain script-generated OHLC simulation events, not broker fill confirmations. TP1 is conservatively scored at its target on a gap; stop and TP2 exits use the opening price if it gaps beyond the applicable level. Ambiguous stop/target bars remain stop-first. A stop moved to entry after TP1 applies from the next bar. Commission, spread, slippage and broker-specific execution are not modelled.
🔷 Using v2.1
1. Add the updated script to a standard candlestick chart. Historical swing/internal BOS and CHoCH, EQH/EQL, zones and arrow-only past entries remain available.
2. Keep Show Plan ML panel enabled to see the latest plan's frozen estimate, baseline, evidence status, gross combined target payoff and prior similar-plan durations. The full info table has additional detail and aggregate model scoring. Panel corners are configurable.
3. Adjust TP1/TP2 or the timeout to suit the analysis you want to perform. Larger targets do not by themselves establish better entries or returns. Zoom in or hide internal structure if the historical map is crowded.
4. The optional Publication heading and key uses the existing navy, neutral-candle and blue/orange presentation, now labelled v2.1. These presentation controls do not change calculations.
5. Recreate existing alerts if you want them to use v2.1, because TradingView alerts retain a saved source/settings snapshot. The eight existing alertconditions and Text/JSON event interface remain available; consumers must handle ordered partial and final events separately.
Pivots still need right-hand bars to confirm and are marked at their earlier pivot locations only after that delay. Breaks and entry events require confirmed closes. Panning selects historical drawings; it does not rewind the model or current-plan panel. Use Bar Replay for an earlier as-of state. The Plan ML estimate is an additional diagnostic, not a claim that the indicator or its entries outperform another tool.
Release Note
v2.2 — Higher-timeframe context and cost-aware plan reviewThis update adds completed-candle higher-timeframe context and an optional cost assumption to the existing structure map and trade-plan display. Entry eligibility, stops, targets, exits and the informational ML rules retain their existing behavior.
🔷 Reading the higher-timeframe panel
🔸 On a 1H chart, Auto shows 4H and Daily context. On a 4H chart, it shows Daily and Weekly. Below 1H it uses 1H/4H; Daily charts use Weekly/Monthly. Larger charts step up to supported Monthly, 3-Month and 12-Month contexts. Every requested interval must be strictly higher than the chart; unavailable contexts remain unavailable.
🔸 Each context shows its confirmed bullish/bearish bias, latest BOS or CHoCH with event time, protected swing at that break, and latest confirmed swing high/low. BOS follows the tracked direction; CHoCH breaks against it. Times use the symbol’s exchange timezone.
🔸 The protected swing is a level captured at the last HTF break. It is not the chart plan’s stop-loss or a guarantee of current invalidation. “Last close beyond” compares the latest safely confirmed HTF close with that stored level.
🔸 Aligned, Mixed and Waiting describe agreement between the chart’s swing bias and both HTF biases. They are context labels, not confidence scores or entry filters.
🔷 Confirmation and timing
HTF values come from the previous completed requested candle. A new state is shown only when its close is already known at the chart bar’s opening time. Custom intervals and session boundaries can therefore retain the prior state until the next chart bar opens. The panel does not display a forming HTF candle.
HTF pivots need the selected number of right-side HTF bars to confirm; the independent HTF length defaults to 10. The panel describes current confirmed context at the latest chart bar, even when you pan back. It is separate from Plan ML’s estimate frozen at entry. Use Bar Replay for an earlier as-of view.
🔷 Risk, costs and duration
The new assumed total round-trip cost input accepts fractional ticks. It covers the entire position, including partial and final fills. At entry, cost R is frozen as assumed cost ticks divided by initial risk ticks. The plan display retains gross target R and shows the payoff after that assumption; the completed-plan record deducts the total assumption once at final closure.
Zero means cost unspecified, so net figures are hidden. These are user assumptions, not measured fees, spread, slippage or broker execution results. Target payoff describes the listed price geometry if both targets are reached; it is not an expected return.
Existing P50/P75 completed-plan durations now display in interval-equivalent minutes, hours or days. They include earlier similar plans of all outcomes and are neither remaining time nor time-to-target forecasts. This formatting does not shorten the timeout: 150 bars means 150 interval-hours on 1H or 600 on 4H. Session gaps make elapsed wall-clock time different. The existing Bars/Minutes timeout behavior is unchanged.
🔷 Display and alerts
Internal structure drawings are off by default in this presentation; their calculations remain active. The HTF panel and up to four optional swing-high/low context levels have separate controls. Optional levels are off by default.
Plan ML remains informational. LEARNING and UNPROVEN diagnostics are retained; a non-positive prequential Brier skill against the prior baseline is not presented as established predictive value. HTF alignment and cost assumptions do not gate entries or change that model.
The eight original alertconditions and Text/JSON events retain their behavior. TradingView alerts keep a snapshot of their script and settings, so recreate an alert when you want it to use the updated source/settings. Use standard time-based candlestick charts for this review.
Release Note
v2.2.1 — Cleaner 1H presentationThe publication chart now uses 1H candles with more space for price and market structure. The full information table, Plan ML panel and higher-timeframe context panel are off by default. Each remains available in the indicator’s settings. A smaller heading, shorter subtitle and single-line key keep the chart easier to read.
TradingView can retain an existing instance’s saved inputs. If the older panels remain visible, turn them off in settings, reset the inputs to defaults, or remove and re-add the updated indicator. Keep one indicator instance on the chart to avoid duplicate panels and markings.
This is a presentation update. Entry rules, risk calculations, ML behavior and alert conditions are unchanged.
Automate TradingView alerts to brokers no coding needed. Trade futures, forex, or crypto, copy trades across unlimited accounts, & control risk with ease.
For Tradovate: bit.ly/4a1KBrY
For all other supported brokers: bit.ly/4qEbU2G
For Tradovate: bit.ly/4a1KBrY
For all other supported brokers: bit.ly/4qEbU2G
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
Automate TradingView alerts to brokers no coding needed. Trade futures, forex, or crypto, copy trades across unlimited accounts, & control risk with ease.
For Tradovate: bit.ly/4a1KBrY
For all other supported brokers: bit.ly/4qEbU2G
For Tradovate: bit.ly/4a1KBrY
For all other supported brokers: bit.ly/4qEbU2G
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน