In an attempt to learn how Futures work in Quantconnect, I tried to code up Andreas Clenow's Futures strategy from his book “Follow the Trend”. He basically takes a diversified basket of futures, buys when the price hits a 100 day high, and sells on a 50 day low. The idea is to catch futures that are on an uptrend, and ride the wave. We use ATR to position size based on volatility.

The backtest results just loses all of its equity, which is not what is expected, so something seems way off. Would anyone who understands how futures contracts work in Quantconnect be willing to take a look and help me out?