mardi 31 août 2021

My condition for the if statement are not being evaluated

if webtablerowscount > enterlistscount and alertcount >= 2 and 8.225 < 8.11 and askPrice < tp1 or askPrice < tp2 and tickercountenterlist == tickercountcloselist:
    print('enterposition')
    enterlists.append([ticker, alertprice, alertcount])
    positionslists.append([ticker, askPrice, tp1, tp2])
else:
    print('do not enter')

I am trying to get this if statement to work. It still prints enter position even though 8.225<8.11.

Aucun commentaire:

Enregistrer un commentaire