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

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.