I thought I could limit the number of alerts triggered by trigger using this:
extern int MaxWaiting_sec = 30;
if(trigger == 1)
{
int StartWaitingTime = GetTickCount();
if(GetTickCount() - StartWaitingTime > MaxWaiting_sec * 1000)
{
if(ShowAlert == true) {
Alert("Buy...........
But it does not seem to work, what am I doing wrong??
