Example #1
0
    def daily_obs(self):
        """
        Gets all the observers of 'D' timestamp.

        :return: List of Observers of 'D' timestamp
        """
        sma = BollingerBands('f_bb', 25)

        return [sma]
    def daily_obs(self):
        """
        Gets all the observers of 'D' timestamp.

        :return: List of Observers of 'D' timestamp
        """
        volume = Volume('f_volume', 25)
        sma = BollingerBands('f_bb', 25)
        rsi = RSI('f_rsi', 25)

        return [volume, sma, rsi]
    def g15_obs(self):
        """
        Gets all the observers of 'Min15' timestamp.

        :return: List of Observers of 'Min15' timestamp
        """

        volume = Volume('c_volume', 25)
        sma = BollingerBands('c_bb', 25)
        rsi = RSI('c_rsi', 25)

        return [volume, sma, rsi]
    def g01_obs(self):
        """
        Gets all the observers of 'Min1' timestamp.

        :return: List of Observers of 'Min1' timestamp
        """

        volume = Volume('a_volume', 25)
        sma = BollingerBands('a_bb', 25)
        rsi = RSI('a_rsi', 25)
        self.signal = Doji('a_doji')

        return [volume, sma, rsi, self.signal]
    def g30_obs(self):
        """
        Gets all the observers of 'Min30' timestamp.

        :return: List of Observers of 'Min30' timestamp
        """

        # Extremist indicator needs to be loaded before anything that uses count_ext

        volume = Volume('d_volume', 25)
        sma = BollingerBands('d_bb', 25)
        rsi = RSI('d_rsi', 25)

        return [volume, sma, rsi]