OPEN-SOURCE SCRIPT
MHIDa Strategy Honesty Dashboard

WHAT IT IS
An honesty dashboard for backtests. It runs the trades of a single, fully editable sample strategy through a strict bench of six checks and shows, with a green/red traffic light, whether the strategy passes or fails. The goal is to expose inflated numbers, not to celebrate them.
WHY THESE PARTS ARE TOGETHER
A backtest and its stress tests belong on the same screen. The sample strategy produces the trades; the six panels immediately judge those same trades. Keeping them together means that every time you change a parameter you see, in one place, both the raw result and whether it holds up under scrutiny.
THE SAMPLE STRATEGY (educational example, editable)
Entry: the previous close is a chosen percentage below a reference EMA (a dip) and the current bar turns up (close above the previous close). Exit: a protective stop always, plus either a return to the reference EMA, or a fixed target, or a time-based close, depending on the selected mode. No lookahead: the signal uses closed-bar data and orders fill at the close.
THE SIX CHECKS (all must hold for PASS)
1) Enough trades, so there is no verdict on a handful of trades (default minimum 40).
2) Positive average return per trade, and it beats simply holding, so a real edge must exist.
3) It survives removing the best jackpot trades, so the result is not carried by a few outliers.
4) It survives on the newer half of history (out-of-sample), so it is not only old, curve-fit past.
5) It survives in weak, bear-like regimes (price below a slow EMA), so it holds when conditions are hard.
6) It survives with higher costs: extra fee and slippage per side are subtracted and the net must stay positive.
Each panel is green when it holds and red when it fails. The final verdict is PASS only when all six hold together. Every threshold is an input you can tighten or loosen.
HOW IT CALCULATES
Net figures are compounded across the per-trade net returns reported by the Strategy Tester (already net of commissions). The out-of-sample split is by bar index; the weak-regime filter compares price with a slow EMA at entry; the cost stress subtracts a round-trip cost from each trade before recompounding; buy and hold is first close versus last close, used only as a reference benchmark.
HOW TO USE
Add it to any symbol and timeframe. Read the dashboard in the corner and the final verdict. Change the sample-strategy inputs and the bench thresholds and watch how the panels and the verdict react. The trades depend entirely on the symbol, period and settings you choose.
LIMITS
This is a context and educational tool, not a trading signal and not financial advice, and the sample strategy is a teaching example, not a tuned configuration. Past numbers guarantee nothing about the future.
An honesty dashboard for backtests. It runs the trades of a single, fully editable sample strategy through a strict bench of six checks and shows, with a green/red traffic light, whether the strategy passes or fails. The goal is to expose inflated numbers, not to celebrate them.
WHY THESE PARTS ARE TOGETHER
A backtest and its stress tests belong on the same screen. The sample strategy produces the trades; the six panels immediately judge those same trades. Keeping them together means that every time you change a parameter you see, in one place, both the raw result and whether it holds up under scrutiny.
THE SAMPLE STRATEGY (educational example, editable)
Entry: the previous close is a chosen percentage below a reference EMA (a dip) and the current bar turns up (close above the previous close). Exit: a protective stop always, plus either a return to the reference EMA, or a fixed target, or a time-based close, depending on the selected mode. No lookahead: the signal uses closed-bar data and orders fill at the close.
THE SIX CHECKS (all must hold for PASS)
1) Enough trades, so there is no verdict on a handful of trades (default minimum 40).
2) Positive average return per trade, and it beats simply holding, so a real edge must exist.
3) It survives removing the best jackpot trades, so the result is not carried by a few outliers.
4) It survives on the newer half of history (out-of-sample), so it is not only old, curve-fit past.
5) It survives in weak, bear-like regimes (price below a slow EMA), so it holds when conditions are hard.
6) It survives with higher costs: extra fee and slippage per side are subtracted and the net must stay positive.
Each panel is green when it holds and red when it fails. The final verdict is PASS only when all six hold together. Every threshold is an input you can tighten or loosen.
HOW IT CALCULATES
Net figures are compounded across the per-trade net returns reported by the Strategy Tester (already net of commissions). The out-of-sample split is by bar index; the weak-regime filter compares price with a slow EMA at entry; the cost stress subtracts a round-trip cost from each trade before recompounding; buy and hold is first close versus last close, used only as a reference benchmark.
HOW TO USE
Add it to any symbol and timeframe. Read the dashboard in the corner and the final verdict. Change the sample-strategy inputs and the bench thresholds and watch how the panels and the verdict react. The trades depend entirely on the symbol, period and settings you choose.
LIMITS
This is a context and educational tool, not a trading signal and not financial advice, and the sample strategy is a teaching example, not a tuned configuration. Past numbers guarantee nothing about the future.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.