For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

Pairs Trading - my research and experiments

  • Over the past few weeks I've been experimenting with different platforms (backtrader especially) to backtest pairs trading strategy. I've documented my results here. I hope somebody finds this useful.