I have been learning C# and I am now starting to learn NinjaScript, so that I can work with Strategies.
I was told to start with NinjaScript indicators, to try to learn NinjaScript.
I copied the code for the default RSI indicator, from within the NinjaScript Editor, and added code for an alert that I got from your online help files. I added this code just above the closing bracket of the following statement:
protected override void OnBarUpdate()
The code that I added was:
protected override void OnBarUpdate()
{
// Generate an alert when the RSI value is greater or equal to 50
if (RSI(14, 3)[0] >= 50)
Alert("myAlert", Priority.High, "Potentially Bullish RSI", NinjaTrader.Core.Globals.InstallDir + @"\sounds\Alert1.wav", 10, Brushes.Black, Brushes.Green);
}
But after I added that code, I got 13 errors. Screenshot attached.
How would I go about troubleshooting and fixing those errors? I don't know where to start.
Thanks,
Comment