PythonForForex/Binance-api-step-by-step-guide

index error boolean series

Closed this issue · 5 comments

hi
i have a error in line :
mask=df.date >= start_time
df =df.loc[mask] #?????

after bigger from 1000 and lower 500 record fetch .

error:
IndexingError: Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match).

thank you very much for reply me .

It looks like you're trying to assign a boolean value (True or False) as an index to your DataFrame.

If you're trying to filter your data use --> df[df.date >= start_time]

hi
thank you very much for reply but i solve it problem previous. i can not arrive to position buy/sell with your strategy percent ETH and BTC . thank you very much .god willing

Are you using the code as is, or have you modified it?
you can try entering in a print statement under the condition where it checks for a 5% move to see if it is related to the order execution