Please don't forget part 2 of the suggestion!

Part 1 is, as you noted above, to not open the Real trade.

Part 2 is to instead respect Margin=0 and close the Virtual trade!

There is thereby no Virtual/Real difference, and therefore none of those evil consequences.

Thanks. Have a great weekend!