i am trying to genertae alert from a script.
The code to genertae alert was copied from the help.
this is the code :
Alert("myAlert", Priority.High, "Reached threshold", NinjaTrader.Core.Globals.InstallDir + @"\sounds\Alert2.wav", 10, Brushes.Black, Brushes.Yellow);
however the compilation generate an error :
Error 625 'NinjaTrader.NinjaScript.Alert' is a 'type' but is used like a 'variable' d:\docs\Documents\NinjaTrader 8\bin\Custom\Indicators\Ace.cs 13460 21 NinjaTrader.Custom
what am i missing ?
in addition the following command
PlaySound(@"C:\mySound.wav");
generate err :
Error 644 The name 'PlaySound' does not exist in the current context d:\docs\Documents\NinjaTrader 8\bin\Custom\Indicators\Ace.cs 13477 21 NinjaTrader.Custom
what am i missing again ?
Comment