Quick question regarding Alert function syntax. I am trying to use an input parameter to select different alert file. Is this correct syntax below?
Alert("UpTrend", Priority.High, "Up Trend", NinjaTrader.Core.Globals.InstallDir + @"\sounds" + AlertFilePath, 10, Brushes.Black, Brushes.Yellow);
I have a ninjascript property as follows:
[NinjaScriptProperty]
[Display(Name = "MyFilePath", Order = 2, GroupName = "Alerts")]
[PropertyEditor("NinjaTrader.Gui.Tools.FilePathPick er", Filter = "Sound Files (*.wav)|*.wav", Title = "Sound")]
public string AlertFilePath
{ get; set; }

Comment