No matter what I do I can't get NT to fire any alerts in my strategy. I can't even get it to fire an alert made via the wizard that does nothing other than fire an alert, e.g.
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
// Set 2
if (true == true)
{
Alert(@"SampleIsFallingIsRising_1", Priority.Medium, [USER="137"]test[/USER], @"C:\Program Files (x86)\NinjaTrader 8\sounds\Alert1.wav", 0, Brushes.Transparent, Brushes.Yellow);
}
}
I've tried cutting and pasting the alert code from https://ninjatrader.com/support/help...nd_sharing.htm and that alert never fires for me either. I've checked the path to the alert file, I've tried changing the parameters, and same thing, no error and no alert.
Am I missing something here this is driving me crazy, thank you!

Comment