I downloaded the BarTimerCounter indi from the EcoSystem link provided by
https://forum.ninjatrader.com/member/96912-ninjatrader_manfred
I'm attempting to create an alert that I can use in other files by assigning a bool or dataseries if the time counts to below 15 seconds on a 1-minute chart.
Partial code here:
else if (BarsPeriod.Value == 1)
{
if (barTimeLeft.Minutes < 1 && barTimeLeft.Seconds < 16)
{
if (!alerted15sec && SoundOn) PlaySound(NinjaTrader.Core.Globals.InstallDir + @"\sounds\boathorn.wav");//new
alerted15sec = true;
_lessThan15Sec[0] = 1;
}
else
{
_lessThan15Sec[0] = 0;
alerted15sec = false;
}
}
private BarTimerv00 btB0;
//and
btB0 = BarTimerv00(Inputs[0]);
//and
double btB0ltsec = btB0.LessThan15Sec.IsValidDataPoint(0) ? btB0.LessThan15Sec[0] : 0;

Comment