OPEN-SOURCE SCRIPT

Average Directional Index + 200 SMA [backtestx]

This strategy enters long when price is above the 200 SMA and the ADX goes above 25, and exits when ADX goes below 25.

Disclaimer