I'm expecting a graph to show me the value of the ATR indicator but I do not know how to plot the indicator. I thought that it would show under the strategy equity graph but it did not show up. Could anyone help me to figure out how to chart the indicator in a plot.

class WildFire(QCAlgorithm): def Initialize(self): self.SetStartDate(2020, 6, 19) # Set Start Date self.SetCash(100000) # Set Strategy Cash self.AddEquity("SPY", Resolution.Minute) self.atr = self.ATR("SPY", 14) def OnData(self, data): '''OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here. Arguments: data: Slice object keyed by symbol containing the stock data ''' # print (self.atr.Current.Value) # if not self.Portfolio.Invested: # self.SetHoldings("SPY", 1) #self.PlotIndicator("ATR", self.atr.Current.Value) self.Plot("My Indicators", "ATR Signal", self.atr.Current.Value)

 

Author