Broker with different multiplier for different dataset



  • Hi! I am currently coding a strategy that will be applied simultaneously to different datasets. I would like to check how to set broker with unique multiplier for each datasets.

    Also, when I try to plot the data, it gives an error as there are many plots to be plotted. Is it possible if I only plot the equity line.

    Thanks for helping :)



  • Could you please clarify what is the multiplier?

    To hide data and indicator plots simply specify plot=False for that data feed or indicator. Couple examples -

    data = btfeeds.YahooFinanceCSVData(dataname='wheremydatacsvis.csv', plot=False)
    
    self.sma = btind.SimpleMovingAverage(period=15, plot=False)
    


  • @KT said in Broker with different multiplier for different dataset:

    I would like to check how to set broker with unique multiplier for each datasets.

    Use different CommissionInfo customized (with the desired multiplier and settings) instances for each asset.


Log in to reply
 

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