n1nj4z33 / iqoptionbot

IQ Option Trade system (Python 2.7)
38 stars 29 forks source link

Error candle dbhlc ,pinnochio,dblhc,tbh #7

Open crypto-maniac opened 7 years ago

crypto-maniac commented 7 years ago

Hello , i got these error when i activate the bot

i tried with different pattern but its same error dbhlc ,pinnochio,dblhc , tbh,tbl

exemple of error

Traceback (most recent call last): File "starter.py", line 170, in start() File "starter.py", line 146, in start signal = signaler.get_signal() File "/iqoptionbot/signaler.py", line 59, in get_signal if pattern.put(): File "iqoptionbot/patterns/dbhlc.py", line 20, in put if self.candles.first_candle.candle_high == self.candles.second_candle.candle_high: AttributeError: 'NoneType' object has no attribute 'first_candle'

or

Traceback (most recent call last): File "starter.py", line 170, in start() File "starter.py", line 146, in start signal = signaler.get_signal() File "/iqoptionbot/signaler.py", line 55, in get_signal if pattern.call(): File "/iqoptionbot/patterns/tbh.py", line 20, in call if self.candles.first_candle.candle_high == self.candles.second_candle.candle_high: AttributeError: 'NoneType' object has no attribute 'second_candle'

any help would be appreciated

thanks you very much

end1an commented 7 years ago

I have same problem ++

crypto-maniac commented 7 years ago

use this one but its not a win bot TurboTrading-Martingale original.py.zip

end1an commented 7 years ago

I will try thank you @crypto-maniac

end1an commented 7 years ago

Why TurboTrading bot does not a win bot? @crypto-maniac

tolawho commented 7 years ago

I have same problem :(. Anyone have solution for this. @n1nj4z33 please help

lucianopinheiro commented 6 years ago

That happens because the event to get a candle from web is asyncronous. So, when it is "changing" candles, you can have a test, and no candle at variable. The best solution is to have a solution so you get candles from asyncronous queue and transform it to a syncronous queue. The workaround is to test the existence of that candle with try.

AllenUchiha commented 6 years ago

use this one but its not a win bot TurboTrading-Martingale original.py.zip

Kindly give credits when you're sending my codes to somewhere else