OPEN-SOURCE SCRIPT
Signal Follow-Through Ledger [MQLSoftware]

OVERVIEW
Signal Follow-Through Ledger measures what price actually did after a signal you already have. You point it at any numeric plot on your chart — a built-in price source, your own indicator, or a third-party one — tell it what counts as an event on that series, and it keeps an audit trail of how each event turned out. It owns no signal of its own and creates no entries, stops, targets or position sizing. It answers one question about a signal you already use: when this fired before on this chart, what usually happened next?
CONCEPTS
Each event opens a sample. The reference price is the close of the confirmed signal bar, and the favourable and adverse distances come from an ATR snapshot taken on that same bar and then frozen for the life of that sample. Rescaling old samples by today's volatility is the usual way this measurement goes wrong, so each sample is judged by the volatility that existed when it was taken.
Evaluation starts on the bar after the signal and runs for a configurable horizon, twenty bars by default. The signal bar's own high and low were printed partly before its close, so testing them would read its past as the signal's future.
When one later bar contains both thresholds, OHLC data cannot say which came first. That sample is recorded as ambiguous and kept out of the headline rate rather than guessed either way, which is the largest single source of overstated numbers here. A sample that reaches neither threshold inside the horizon is a real answer and stays in the denominator.
MFE and MAE keep accumulating for the whole horizon even after a sample resolves; stopping them at resolution would floor MFE at your own favourable multiple and describe your setting rather than the market.
FEATURES
Seven event types: cross up or down through a level, cross up or down through a reference (a moving average of the source, or a second plot), a new N-bar high or low, and a first non-blank value for sources that are blank except when they signal. Direction follows the event or can be forced. The panel reports the share of samples that reached the favourable target before the adverse one, the sample size, the favourable / adverse / neither split, median MFE and MAE in ATR, median bars to the peak, and the ambiguous, still-open and declined counts. Signal markers, outcome markers and the measurement corridor are drawn on the chart. Two confirmed-bar alerts: a sample recorded, and a sample resolved.
HOW TO USE
Open Settings and set Signal source to the plot you want audited; the dropdown lists the indicators already on your chart. Choose the event, and for level modes type the level in the units of that source — 30 or 70 for RSI, 0 for a zero-centred oscillator. Out of the box it audits price crossing above its own fifty-bar average, so it produces numbers before you configure anything.
Read the headline with the sample size beside it, never alone. Rates stay behind a minimum-sample gate and read "collecting" until enough samples complete. One sample runs at a time by default, so events arriving inside an open horizon are declined and counted separately: that declined figure tells you the signal fires more often than the ledger samples it.
Everything in the ledger is written on confirmed bars and is never revised. The single live figure is the raw source readout in the panel footer, so you can confirm the source is wired up.
CONCLUSION
This is a measurement tool, not a strategy tester. It models no fills, spread, commission, slippage, position sizing or intrabar sequencing, so nothing here is a profitability result. The figures describe what this chart's loaded bars did after these events, on this symbol, timeframe and source, shown with the sample size that produced them. And it cannot make a repainting source stable: if the indicator you point it at rewrites its own history, the events change and this audit changes with them.
Signal Follow-Through Ledger measures what price actually did after a signal you already have. You point it at any numeric plot on your chart — a built-in price source, your own indicator, or a third-party one — tell it what counts as an event on that series, and it keeps an audit trail of how each event turned out. It owns no signal of its own and creates no entries, stops, targets or position sizing. It answers one question about a signal you already use: when this fired before on this chart, what usually happened next?
CONCEPTS
Each event opens a sample. The reference price is the close of the confirmed signal bar, and the favourable and adverse distances come from an ATR snapshot taken on that same bar and then frozen for the life of that sample. Rescaling old samples by today's volatility is the usual way this measurement goes wrong, so each sample is judged by the volatility that existed when it was taken.
Evaluation starts on the bar after the signal and runs for a configurable horizon, twenty bars by default. The signal bar's own high and low were printed partly before its close, so testing them would read its past as the signal's future.
When one later bar contains both thresholds, OHLC data cannot say which came first. That sample is recorded as ambiguous and kept out of the headline rate rather than guessed either way, which is the largest single source of overstated numbers here. A sample that reaches neither threshold inside the horizon is a real answer and stays in the denominator.
MFE and MAE keep accumulating for the whole horizon even after a sample resolves; stopping them at resolution would floor MFE at your own favourable multiple and describe your setting rather than the market.
FEATURES
Seven event types: cross up or down through a level, cross up or down through a reference (a moving average of the source, or a second plot), a new N-bar high or low, and a first non-blank value for sources that are blank except when they signal. Direction follows the event or can be forced. The panel reports the share of samples that reached the favourable target before the adverse one, the sample size, the favourable / adverse / neither split, median MFE and MAE in ATR, median bars to the peak, and the ambiguous, still-open and declined counts. Signal markers, outcome markers and the measurement corridor are drawn on the chart. Two confirmed-bar alerts: a sample recorded, and a sample resolved.
HOW TO USE
Open Settings and set Signal source to the plot you want audited; the dropdown lists the indicators already on your chart. Choose the event, and for level modes type the level in the units of that source — 30 or 70 for RSI, 0 for a zero-centred oscillator. Out of the box it audits price crossing above its own fifty-bar average, so it produces numbers before you configure anything.
Read the headline with the sample size beside it, never alone. Rates stay behind a minimum-sample gate and read "collecting" until enough samples complete. One sample runs at a time by default, so events arriving inside an open horizon are declined and counted separately: that declined figure tells you the signal fires more often than the ledger samples it.
Everything in the ledger is written on confirmed bars and is never revised. The single live figure is the raw source readout in the panel footer, so you can confirm the source is wired up.
CONCLUSION
This is a measurement tool, not a strategy tester. It models no fills, spread, commission, slippage, position sizing or intrabar sequencing, so nothing here is a profitability result. The figures describe what this chart's loaded bars did after these events, on this symbol, timeframe and source, shown with the sample size that produced them. And it cannot make a repainting source stable: if the indicator you point it at rewrites its own history, the events change and this audit changes with them.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
🟣 Free tools, guides & product resources:
mqlsoftware.com/account/
🟣 New tools, releases & updates:
t.me/mqlsoftware_official
MQLSoftware — trading analysis tools & indicators.
mqlsoftware.com/account/
🟣 New tools, releases & updates:
t.me/mqlsoftware_official
MQLSoftware — trading analysis tools & indicators.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
🟣 Free tools, guides & product resources:
mqlsoftware.com/account/
🟣 New tools, releases & updates:
t.me/mqlsoftware_official
MQLSoftware — trading analysis tools & indicators.
mqlsoftware.com/account/
🟣 New tools, releases & updates:
t.me/mqlsoftware_official
MQLSoftware — trading analysis tools & indicators.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.