These are the TradingView scripts behind the test results in Instruction Set Trading by Rex Dale Johnson. Run them yourself, on other markets and other periods, and see whether you get what I got. They’re free, and there’s nothing to sign up for.
How to add a script to TradingView
- Download the script below and open the file.
- Select all the text and copy it.
- In TradingView, open the Pine Editor at the bottom of a chart and create a new script.
- Select everything in the editor, paste, and save.
- Click Add to chart. Set the inputs listed for that script, then read the results table in the corner of the chart.
Before you trust any result
Every test uses the same pass line, set before running it. A strategy passes only if it meets all of these:
- 100 or more trades
- An average of +0.10R or better per trade, after costs
- A t-stat of 2 or more
- Both halves of the test period positive
- Clearly better than the random control runs (seeds 1 to 5)
Don’t change the settings and re-run until something passes. With enough tries, something always will, by luck.
Strategy Lab
What it tests. Seven standard strategies, written as exact rules: overbought and oversold (RSI), consolidation breakouts, major reversals, sweet-spot re-entries, moving-average crossovers, MACD and chart patterns. Pick one in the settings.
How I ran it. 4-hour charts of ES1!, EURUSD and GC1!, every strategy, with the round-trip cost suggested in the cost setting’s tooltip for each market.
What I found. No edge on any of them after costs, over about 7,000 trades. The best-looking result, moving-average crossovers at +0.20R, had a t-stat of 0.7. (Chapter 2 of the book.)
Download Strategy Lab (.txt) · TradingView strategy
Supply Demand Zone Test
What it tests. Fresh supply and demand zones from fixed rules, with a pending limit order at the zone on the first return. Scored chart-drawn and with realistic fills, against shifted (fake) zones as the control.
How I ran it. XAGUSD (silver), 4-hour and 1-hour, default settings. Control seeds 1 to 5.
What I found. 4-hour: +0.17R a trade, but over only 25 trades. 1-hour: −0.03R. Costs took 0.1 to 0.2R a trade, and every order that never filled would have won. (Chapter 2 of the book.)
Download Supply Demand Zone Test (.txt) · TradingView indicator
Fade Plan Test
What it tests. Fading a stretched move and adding as price goes further against you, with a wide stop and a small target. The control enters at a random time in a random direction. The “Start plans during” setting tests trading hours.
How I ran it. 5-minute charts: FOREX.com silver, plus FXCM EUR/USD, GBP/USD and AUD/USD and OANDA USD/JPY with spread 1 and slippage 1. For the trading-hours test, the same pairs run once with “London-New York overlap” and once with “All hours”.
What I found. Won 60 to 77% of trades and lost money or broke even after costs on all five markets. Trading only the London–New York overlap: −0.08R a trade over 354 trades, against about −0.09R at all hours. (Chapters 2 and 3 of the book.)
Download Fade Plan Test (.txt) · TradingView indicator
Follow-Through Test
What it tests. Whether cutting a trade that hasn’t moved your way within three candles improves results. Every trade is managed both ways at once, on breakout entries and on random entries.
How I ran it. XAGUSD 4-hour and 1-hour, breakout entries, then random entries with seeds 1 to 5.
What I found. The breakouts lost −0.13R a trade, and the rule improved them by +0.04R over 514 trades: a losing system losing a little less. One random run passed every check, by luck. (Chapter 2 of the book.)
Download Follow-Through Test (.txt) · TradingView indicator
Volume Profile Test
What it tests. Limit orders at the previous period’s value area high and low, or its point of control, on the first touch. The control shifts every level by a random amount.
How I ran it. ES1! and GC1! futures: 1-hour with the previous day’s value area, 4-hour with the previous week’s, and 1-hour at the point of control. Spread 1 tick, commission $4. Control seeds 1 to 5 on the first of those runs.
What I found. All six runs lost money after costs, from −0.05R to −0.31R a trade, over about 2,700 trades, and did no better than random levels. (Chapter 2 of the book.)
Download Volume Profile Test (.txt) · TradingView indicator
Hindsight vs Honest
What it tests. The same swing trades entered two ways: at the swing low itself, which needs knowledge of the future, and at the first moment the swing is confirmed.
How I ran it. ES 4-hour, default settings.
What I found. Hindsight entries won 73% of trades for +1.14R a trade. Honest entries won 39% for −0.03R. (Chapter 2 of the book.)
Download Hindsight vs Honest (.txt) · TradingView indicator
About these scripts
Version 1.0, October 2026. I wrote and ran every test myself, and nobody else has checked them. If you find a mistake, please tell me. A test that’s wrong is worth more fixed than hidden.
© 2026 Logan’s Grove Incorporated. The scripts are shared under the Mozilla Public License 2.0: you can use and change them, and changes to the scripts themselves stay open. Education only, not financial advice.
