We are excited to roll out an oft-requested API enhancement, the new set_benchmark() method!
You can now select any security in our universe to serve as the benchmark in your algo's backtests. If you do not call set_benchmark in the initialize() method you will default back to the SPY as the benchmark.
In the example attached I have a moving average crossover strategy using everyone's favorite stock (AAPL), but in this case I have also set AAPL as my benchmark -- allowing for a much fairer comparison of the strategy's added value over a simple buy-and-hold strategy with the same stock.
As with any new API method we'd love to hear your feedback and any questions you might come across.