Was confused by this example on Documentation - Research - Research on Indicators - QuantConnect.com

  1. # Create a 14 period RSI indicator
  2. rsi = RelativeStrengthIndex(14)
  3. # Create a 30 period SMA indicator
  4. sma = SimpleMovingAverage(30)
  5. # Compose indicators
  6. sma_of_rsi = IndicatorExtensions.Of(sma, rsi)
  7. df_sma_of_rsi = qb.Indicator(rsiAverage, spy.Symbol, 360, Resolution.Daily)

Should rsiAverage in last line be sma_of_rsi, or sma_of_rsi in the previous line should be rsiAverage, or I missed something? Thanks

Author

Ruming Jiang

June 2021