ERROR in short model gain calculation

I have a short model that in simulation shows a gain of 132% on a single trade.
This can not be correct, since the max gain on a short trade is 100%

It looks like the gain is calculated as a percentage of the cover cost, not the original short revenue.

Thanks for reporting this issue. I’m reviewing all related code to ensure we’re being consistent and correct for handling short positions.

It looks like the issue was isolated to realized P&L computations. It should be resolved now.

It works.
Thanks for the quick repair.