
and how do I fix it?
here is the alert code..,
private void Account_ExecutionUpdate(object sender, ExecutionEventArgs e)
{
Print(String.Format("Execution triggered for Order {0}", e.ToString()));
NinjaTrader.Core.Globals.SendMail( "[email protected]", "[email protected]", "trade ", e.ToString(),null) ;
NinjaTrader.NinjaScript.Alert.AlertCallback(e.Execution.Instrument, this, DateTime.Now.ToString(), NinjaTrader.Core.Globals.Now, Priority.High, e.ToString(), NinjaTrader.Core.Globals.InstallDir+@"\sounds\Alert1.wav", new SolidColorBrush(Colors.Blue), new SolidColorBrush(Colors.White), 0);
//PostMessage(e.ToString(),true,e.Execution.Instrument);
}

Comment