Hello Vinsom,

PipCost is constantly varying due to BTC fluctuation, consequently the LotAmount is varying as well.

When you buy 1 lot of an asset and then you sell 1 lot of the very same asset : the quantity you sell can be different from the quantity bought in the first place. The profit calculation is then incorrect.

I am wondering if you have workaround for that ? I was thinking of fixing the PIPCost at the first init of the function.

Thanks !

Johan