Floating P/L and Max Exposure doesn't get reset when all positions are closed
Posted: Mon May 01, 2023 3:34 pm
Hi,
In some cases Floating P/L and Max Exposure don't get reset to zero, and they show their previous values.
A position was just closed by price hitting my TP. I don't have any open positions, nor I have any pending orders, but Floating P/L and Max Exposure are not 0; they are showing some previous value.
Since this bug happens only some of the time, I'm attaching the backtest file. The backtest is at the same place as the screenshot above. I'm not sure what causes it; a sudden spread spike might be a reason.
In some cases Floating P/L and Max Exposure don't get reset to zero, and they show their previous values.
A position was just closed by price hitting my TP. I don't have any open positions, nor I have any pending orders, but Floating P/L and Max Exposure are not 0; they are showing some previous value.
Since this bug happens only some of the time, I'm attaching the backtest file. The backtest is at the same place as the screenshot above. I'm not sure what causes it; a sudden spread spike might be a reason.