How do you calculate the margin? - page 7

 
Janis Ozols:

I had to write a crutch to check on each tick the equivalence of the calculated margin value to the actual one and in case of significant discrepancy immediately close the last open order and block further attempts to open new ones. This system had been working successfully up to June 16.

But in the end the broker disappeared along with my money. Its name started with Fort and ended with FS.

it was enough to keep track of the change in leverage.
Reason: