I tried to sell 1 fdax in order to close a position and exactly at the same second my strategy wanted to go short with a sell short order and due to overmargining an error was triggered and my strategy stopped :-((
Can this situation be avoided by using the command:
if (position.MarketPosition == MarketPosition.Flat)
{
<new entry>
}
...
thanks
brima
Comment