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.
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.