Running on real-time feed from IB.
protected override void OnBarUpdate()
{
// Condition set 1
Print("Value Checking: " + CurrentBar + " Close: " + Close[0] + " Prc: " + Prc);
if (Close[0] > Prc)
{
Print("Value Checking: " + CurrentBar + " Close: " + Close[0] + " Prc: " + Prc);
Alert("MyAlert0", Priority.High, "", @"C:\Program Files\NinjaTrader 7\sounds\AlertPrice.wav",2, Color.White, Color.Black);
PlaySound("AlertSound2.wav");
PlaySound(@"C:\Program Files\NinjaTrader 7\sounds\AlertRSI.wav");
PlaySound("AlertATR.wav");
Print("The Program is working");
Print(Close[0].ToString("0.00"));
Log("Action Took Place",NinjaTrader.Cbi.LogLevel.Information);
}
}

Comment