The distance works well /2 but when using martingale there are times when it gets lost in the count, because of opening an order on the winning side, when the price returns it starts the martingale again from the beginning.
@jstap hello please could you give me more details I don't understand much about variables I couldn't understand my translation comes out different from the way you're teaching me thanks