vendredi 27 mars 2020

Loop for creating counter

For python loop, I want to write this logic: High = 120, Low = 100, Counter = 0 Live stock price = LTP If LTP > high, then counter should be 1 (first breakout), then if LTP < low, then counter should be 2 (second breakout) If LTP is in between high and low, then counter should show previous counter value. Help please!

Aucun commentaire:

Enregistrer un commentaire