sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
6.06k stars 2.21k forks source link

Bot for binance API interprets indicators backwards🤷‍♂️ #1216

Open DrakoAI opened 2 years ago

DrakoAI commented 2 years ago

Since they updated the binance page my bot interprets the stochastic and MACD indicators backwards. For a simple SHORT I have it programmed in the following way... ind_df['TriggerS1'] = np.where((ind_df['%D'] > 80) & (ind_df['%D'] >= ind_df['%K']) & (ind_df['RSI_7'] > 70) & (ind_df['MACD'] > 0) & (ind_df['signal'] > 0),-1,0)

And it throws me the orders as if they were LONG, the same happens with the MACD ... ind_df['TriggerS1'] = np.where((ind_df['MACD'] < ind_df['signal']),-1,0)

And places them as LONG.

They were working fine, even with matplotlib, MACD based orders put them the other side, with stochastic it puts them fine, but when it comes to trading the same way it does it the other side.

halfelf commented 2 years ago

Since when could AI post issue automatically? :joy: I can't understand a word and unable to see how the issue related to python-binance.

GonzaloMurillo commented 2 years ago

Without more specific context, is very difficult to make some sense of this. It this actually Python + Python Binance API, or PineScript? If you want some help, you need to be more clear.