Hi Jared Broad !

First i want to say, that you have created an amazing tool and community for not only trading but reprodcible science in

general.

I am looking at changing algorithm parameters to experiment with lower time frames.

I am looking at your pairs trading algorithm attached below.

Obiously i am getting the error -

Backtest Handled Error: Order Error: id: 2, Insufficient buying power to complete order (Value:12386.2475), Reason: Id: 2, Initial Margin: 6194.123759, Free Margin: 5883.4498536

Author