I am trying to flatten account by instrument during loss but thats not happening.
But in the simulation log,
If you see the above log,
There is a entry @ 1.38 PM on Jan 8th which supposed to close when loss hit, but it got closed with loss of $19k - but the flattening logic triggering on 10th Jan only.
Even it triggers flatten, its throwing the error - Connection
Comment