OPEN-SOURCE SCRIPT

Donchian Channels [backtestx]

This strategy enters long when the Donchian channel's upper line creates a new high, and exits when price goes below the middle line.

Disclaimer