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

How to get an array containing the current and past values of an indicator.

Log in to reply

Looks like your connection to Backtrader Community was lost, please wait while we try to reconnect.