i tried it with Alert() which I //'d out below and with PlaySound() which was my latest try. The re-coloring works fine.
// Condition set 2
if (High[0]-Low[0] >= (TickSize*dist) //0.1
&& Close[0] < Open[0])//&&Open[0]-Close[0]>=0.1)
{
BarColor = Color.DeepPink;
}
if (AlertBool == true)
// Alert("size",NinjaTrader.Cbi.Priority.Medium, " dn barsize","Alert2.wav",0,BarColor,Color.DeepPink);
PlaySound(@"C:\Program Files\NinjaTrader 7\sounds\Alert1.wav");
In the Properties section I have this:
[Description("Sound and display an alert with Alerts window open ")]
[Category("Parameters")]
[Gui.Design.DisplayNameAttribute("Alert on Begin/End?")]
publicbool AlertBool
{
get { return alertBool; }
set { alertBool = value; }
}
Comment