After creating several versions (Set__Methods, unmanaged, managed) of order management code for my strategies, I recently coded another managed version based on the ManagedRithmicIBFriendlyMultipleEntriesExample (assigning order objects in OnOrderUpdate, calculating average entry price, filled positions, and placing stop loss and profit target order in OnExecutionUpdate only referencing to execution.name. I used it recently traded the CPI event, and it worked for my Bulenox accounts (Rithmic) without problems.
Since this approach doesn't use any by ref object ( execution.name is a by-ref object in the literal sense, but I think it can be treated as a value object here), I think it might be a reasonable choice. I am not feel very comfortable deploying the unmanaged version to live accounts, as I keep finding issues that has been taken care of by the managed order framework.
Do you see any potential issues with this managed approach based on ManagedRithmicIBFriendlyMultipleEntriesExample? I'd like to hear your opinions on the pro's and con's of this approach vs the unmanaged sample that Jim provided.

Comment