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

Plotting indicator of data1 on data0



  • My kfsentiment indicator is calculated from another data feed (self.datas[1]). I'm trying to plot only kfsentiment2 onto datas[0].
    I've done data1.plotinfo.plotmaster = data1 and managed to get the plots onto one observer. But I only want kfsentiment2 to show. Whenever I try to set data1.plot = False, nothing will show.

    def __init__(self):
            self.dataclose = self.datas[0].close
            self.sentiment_balance = self.datas[1].sentiment_balance
            self.kfsentiment1 = KalmanMovingAverage(self.datas[1].sentiment_balance)
            self.kfsentiment2 = KalmanMovingAverage(self.kfsentiment1, plotname='kfsentiment2', plot=True)
    

Log in to reply
 

});