Thanks for your reply.
An extra check for this specific case can be addressed in the following way:
//declare this variable outside of Initialize() and OnBarUpdate()
private int x;
//assign the value in Initialize()
protected override void Initialize()
{
x = Time[0].Minute;
}
protected override void OnBarUpdate()
{
if(x == 0)
x = 60;
else
x = Time[0].Minute;
if(DateTime.Now.Minute == (x - 1) && (60 - DateTime.Now.Second) <= 15)
//trigger alert
}
Please let me know if I may be of any further assistance.
Comment