#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
Comments
Leave a comment