I have a number of stop types in operation some use ExitLongStop, some use ExitLong. I have a section of code in OnExecution that prints to screen when a stop is actioned, however it only reports back for the ExitLongStop and not for the ExitLong.
Here are two examples that would appear in OnBarUpdate:
stopOrder = ExitLongStop(0, true, 1, stopPrice, "MyLongTrailingHighOrLowStop", "MyLongEntry");
stopOrder = ExitShort("MyShortTicksStop", "MyShortEntry");
if (stopOrder != null && stopOrder == execution.Order)
However if I refer to the execution exit by name then I can get results for the ExitShort. That is if my if loop looked like:
if("MyShortTicksStop" == execution.Name)
Thanks in advance,
darmbk.

Comment