arun-mansa / tradingbot

Automatically buy option from iqoption based on specified patterns
18 stars 12 forks source link

Ichimuku #5

Open denouezechias opened 6 years ago

denouezechias commented 6 years ago

Hi ! please can you add ichimuko in the indicator group

tahmi123 commented 6 years ago

install ta-lib

denouezechias commented 6 years ago

yes, i have already see ta-lib and all this indicators. but how can i "plug" it on your project becausei tried to do it but unfortunally, i get error

tahmi123 commented 6 years ago

` def call(self): """Method to check call pattern.""" logger = logging.getLogger("main") candles = self.candles

    if hasattr(candles, 'candles_array'):
        candel_array = candles.candles_array
        close = pd.Series([candle.candle_close for candle in  candel_array])
        open = pd.Series([candle.candle_open for candle in  candel_array])
        high = pd.Series([candle.candle_high for candle in  candel_array])
        low = pd.Series([candle.candle_low for candle in  candel_array])
        up, lw, MA = talib.BBANDS(close, matype=MA_Type.T3)
        rsi14 = talib.RSI(close, timeperiod=14)`

so I edited my tbh.py pattern to that. dont forget to import talib

denouezechias commented 6 years ago

yes, i already see the tbh.py file thanks very very much for this code !

tahmi123 commented 6 years ago

you welcome

denouezechias commented 6 years ago

please, can you give me the link of the ta-lib ? it seem that i have is the wrong talib and there are many ta-lib on github

tahmi123 commented 6 years ago

mehn installing ta-lib takes the special grace of God and i mean that in every sense, try "https://github.com/mrjbq7/ta-lib"

denouezechias commented 6 years ago

ichimuko is not in the list of indicators. please, i need you really. i tried to modify the code to add ichimuku but at the start, i need only ssb and kijun code.

tahmi123 commented 6 years ago

that's the best i've got man