private void OnExecution(object sender, ExecutionUpdateEventArgs e)
{
Print("");
Print(" OnExecution Update **** ");
Print(" :Instrument = " + e.Instrument.ToString() + " :Acount = " + e.Account.Name + " :Name = " + e.Operation.ToString() );
Print(" :Price = " + e.Price.ToString() + " :Quantity = " + e.Quantity.ToString() + " :MarketPosition = " + e.MarketPosition.ToString() );
Print("");
}
The purpose of this code is to get trade information in an indicator. Now when I place a trade, I get no OnExecution Event to trigger in Visual Studio and no Print statements in the Output window.
I don't know where to look to find the problem. Am I missing a Declaration or something?
Regards,
taddypole...
Comment