protected override void OnExecution(IExecution execution)
{
if (EntryOrder != null && EntryOrder == execution.Order)
{
if (execution.Order.OrderState == OrderState.Filled)
{
[...]
I think I got this code that checks the EntryOrder with the execution.Order from one of your samples. So how do I know that a stoploss execution is part of the original EntryOrder that was filled? Apparently I can't compare the order tokens... is there another way?
Thanks!
Bryan

Comment