RezzaHmt

Motion Line

This script plots the Motion Line, a concept explained in Glenn Neely's River Trading Technology, on the go.

Due to the limitations on Pine Script at the time of writing this script, plotting Motion Line on Violent Outside-bars does not follow the main procedure...

For example on this occasion, the snapshot below displays how exactly the Motion Line should be drawn when a Violent Outside-bar condition is met:

But this is how the script handles it:
The first connection point to the Violent Outside-bar is ignored and the line is continued from second point of connection. In such situations a different color is applied on the Motion Line.
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?