I have a few questions on flattening positions in an account from within a strategy. First, the ExitLong() and ExitShort() functions, do those flatten ONLY positions that the strategy has taken?
For example, if I have strategy xyz running and its taking trades.
But then I manually enter a trade by myself on a separate instrument. When the ExitLong or Short is called from the strategy , will that leave my manually entered trade alone and only exit the strategies positions? From initial testing that seems to be true, but looking for confirmation.
Also, is there a way, unsupported if need be , that a strategy could flatten everything within the account , even manually taken trades? Importantly, not globally so all accounts flatten but an account wide position flatten.
Thanks!
Comment