Open AlexCatarino opened 4 years ago
`/*
using QuantConnect.Algorithm.Framework.Portfolio; using QuantConnect.Orders;
namespace QuantConnect.Algorithm.Framework.Execution
{
///
/// <summary>
/// Permit to access to OrderEvent method. (In order to use for example OCO)
/// </summary>
/// <param name="algorithm">The algorithm instance</param>
/// <param name="orderEvent">
/// These are always just the new/updated targets and not a complete set of targets</param>
void OnOrderEvent(QCAlgorithm algorithm, OrderEvent orderEvent);
}
} `
Hi, I Am Gmamuze Cht on the Forum, if you want, tell me what files to modify, then send you once the work is done. Best
Has this been implemented yet? Trying to use order events in an Execution Model.
Expected Behavior
ExecutionModel
hasOnOrderEvent
method that can be used to manage the orders placed byExecutionModel.Execute
Actual Behavior
ExecutionModel
doesn't haveOnOrderEvent
method. If the algorithm needs to create complex order combinations, like OCO, it has to be managed byQCAlgorithm.OnOderEvent
.Potential Solution
Implement
IExecutionModel.OnOderEvent(QCAlgorithm algorithm, OrderEvent orderEvent)
Checklist
master
branch