Ok, so the "Cover" message was definitely wrong - not only wrong profit, the position was not closed at all. The cover message also had an imaginary id of 0001.

Can you post the script? You can also send it to Support when you don't want it public. We'll look into it. Due to the wrong message, the displayed accumulated profit is likewise wrong.

Update: I believe we found the problem. It was indeed related to the NFA flag. We'll upload a new version, 1.28.1, to the beta forum in the next days. Please continue with that version. And check if you really have an NFA account: if you can manually open a short and long position at the same time, it is not NFA.