I have about 6 different entry signals "1" "2" ... etc. But I am having trouble ensuring they all exit at once when I trade live with real money. As in, when I run the same strategy on a sim account on the live market, my code works just fine, the script exits all contracts when intended, but with live contracts/money sometimes I end up with contracts still in the market as if that signal did not take the intended exit.
I can get around this by simply having code that ensures an exit for all contracts for my total position regardless of the signal.
how would I modify the following to ensure this:
if (LongExit()
)
{
ExitLongLimit(Convert.ToInt32(Position.Quantity), GetCurrentAsk(0), "", "");
}

Comment