Attachments forums

Re: Something interesting from Chatgpt/AI please post here

srinarayani13, Tue Oct 13, 2026 5:02 pm

Pelle wrote: Tue Sep 22, 2026 1:45 am Give that a try. At first glance, it looked pretty similar to MT5.
I want to turn off alerts, I found the code in file but dont know how to turn off alert in this code, please help to turn off alerts

// ---- alerts: fire once per newly closed bar ----
if(time[0] != g_last_alert_bar)
{
g_last_alert_bar = time[0];
if(rates_total > 2)
{
int dirClosed = (int)TrendDirBuf[1];
int dirPrev = (int)TrendDirBuf[2];
bool turnedBull = (dirClosed == 1 && dirPrev != 1);
bool turnedBear = (dirClosed == -1 && dirPrev != -1);
if(turnedBull)
Alert("Gaussian Filter Trend: BULLISH trend confirmed on ", Symbol(), " - ", PeriodToString(Period()));
if(turnedBear)
Alert("Gaussian Filter Trend: BEARISH trend confirmed on ", Symbol(), " - ", PeriodToString(Period()));
}
}

return(rates_total);
}
All files in topic