DislikedI am writing an Alert indicator, which displays Alert, when condition is satisfied across different pairs. I want only 1 Alert for 1 pair, once condition is satisfied. But here, there are multiple alerts per pair on SAME candle.Ignored
for(int j=0;j<ArraySize(MultiplePairs);j++)
{
string Fut_Name = MultiplePairs[j];
if(iClose(Fut_Name,0,0) > iClose(Fut_Name,0,1) &&
previousTime!=iTime(Symbol(),0,0)
)
{
Alert("Close is Higher for " +Fut_Name);
previousTime=iTime(Symbol(),0,0);
}
}
1