Here is a trend following system written in Python (posted on my Gist) based on reversing the Mean Reversion system posted previously. Provision is made for slippage and commission but position sizing is still not fixed fractional. The latter however is easily coded if desired.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.