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

How can we've test same strategy for multiple scripts(For ex: I've 50 stocks against which I wanted consolidated report)

  • I'm trying to simulate like a live version.

    I've shorted listed some 50 stocks from diff. sectors. want to trigger long or short based paramteres matched.
    But to test in this scenario wanted to use single capital value which would be consolidatedly used by all triggering stocks.

    I want to have a consolidated report for all trading done rather single stocks. similar to like a broker PnL.

    Would be worthy if any tuning parameters are also suggested


  • @Indi-Algo Google this backtrader multi and then come back if you have more questions. You can run many stocks in one strategy.

Log in to reply