I execute my trade for 3 contracts with the following command EnterLong(tradeContracts, "") where tradeContracts is set to "3". This command works fine.
I then sell my first contract with the command ExitShort(contractExit) with contractExit set to "1". This executes when I reach 5 tics. This command also works fine. I then sell my second contract with the same command ExitShort(contractExit) with contractExit set to "1". This executes when I reach 10 tics. This command is ignored!
The second contract executes the same exit code as the first, so I know the code is syntactically correct since it worked for the first contract.
Both of these exit commands occur in the same bar.
Any insight or advice is greatly appreciated.
Comment