After many attempts to code this with the basic managed approach, and reading through forum posts, it seems that the advanced managed approach is needed for this type of strategy, is this correct? Or is there a way to do this with basic managed?
For advanced managed, can you please explain why the order object is set to null when the order is filled (reference below), rather than when the position is closed? It seems as though setting it this way would allow re-entry of multiple open positions with the same FromEntry name.
// Resets the entryOrder object to null after the order has been filled
if (execution.Order.OrderState != OrderState.PartFilled)
{
entryOrder = null;
}
Thanks in advance for your help.
Comment