OPEN-SOURCE SCRIPT

Runner

Highlights run days on a chart

Run days are defined as:

Up run day.
A day that meets the following two conditions:

1. The true high of the run day is greater than the maximum true high of the past N days (e.g., N = 5).
2. The true low on the run day is less than the minimum true low on the subsequent N days.

Down run day.
A day that meets the following two conditions:

1. The true low of the run day is less than the minimum true low of the past N days.
2. The true high on the run day is greater than the maximum true high on the subsequent N days.

Taken from: Schwager, Jack D.. A Complete Guide to the Futures Market: Technical Analysis, Trading Systems, Fundamental Analysis, Options, Spreads, and Trading Principles (Wiley Trading) (Kindle Locations 3376-3382). Wiley. Kindle Edition.
rundayTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer