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

Looping through values

  • Hey, I new to backtrader and wanted to perform the same strategy for a different set of values, basically loop over two lists of value for EMA crossovers but when I put them in a loop I get different values which will be different for performing backtest on that particular pair of values. Does anyone have a solution for this?

  • @Rishabh-Kapoor First of all, you may want to share more details if you still need help: your goal, your script, script's output. After looking in inputs we can talk about solution.

Log in to reply