Hi, may i check how to call the stochastic indicator into use for python?

 

Attached is what i've tried:

class OptimizedParticleInterceptor(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2019, 1, 1)  # Set Start Date
        self.SetCash(10000)  # Set Strategy Cash
        # self.AddEquity("SPY", Resolution.Minute)
        self.AddAlpha(EmaCrossAlphaModel(50, 200, Resolution.Minute))

        self.AddAlpha(MacdAlphaModel(12, 26, 9, MovingAverageType.Simple, Resolution.Daily))

        self.AddAlpha(PsychSignalAlphaModel())

        self.SetExecution(ImmediateExecutionModel())
        
        self.pair = self.AddForex("EURJPY", Resolution.Minute)
        self.pair.SetDataNormalizationMode(DataNormalizationMode.Raw)
        self.sto = self.STO("EURJPY", 14, 3, int 5, resolution = "minute")
    
        self.pair.SetLeverage(20.0)
 

the line for self.sto returns a build error. 

 

Thanks

Author