Answer to Question #240133 in Python for win

Question #240133

#During the first loop of this method, previousPrice will still be 0 here,

    # because it was set to currentPrice above, which also was 0 before we updated

    # It above via getBitmexPrice().

    # So when we reach this point during the first loop, previousPrice will be 0

    # currentPrice would have just been updated via getBitmexPrice().

    # we dont want to create the impression but that the price shot up from 0 to

    # currentPrice.

    # Therefore, if previousPrice == 0.0, it must be set equal to currentPrice here.

    ...

# replace the ellipsis with applicable code


1
Expert's answer
2021-09-21T06:55:03-0400
Dear win, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS