How can the code for stopOrder and targetOrder in OnExecution(IExecution execution) be combined to reflect TD Ameritrade's requirement of both StopLoss and ProfitTarget being applied at the same time? There is no ExitLongStopLimit variable. Once this is figured out, I am sure that moving the StopLoss up to Postion.AvgPrice code when price is 1/2 or greater of ProfitTarget will also require some adjustment. I recognize that this is not required for other providers, and welcome help in this matter.
Thanks.
Tony
Comment