Disliked{quote} Try this... void manageAlerts() { static datetime last_bar = 0; datetime bar = (datetime)SeriesInfoInteger(_Symbol, TimeFrame, SERIES_LASTBAR_DATE); if(last_bar==0) last_bar=bar; if(InpAlertsOn && last_bar != bar) if(Up[0] != EMPTY_VALUE) doAlert(0, "BUY"); else if(Dn[0] != EMPTY_VALUE) doAlert(0, "SELL"); } ...however, I'm not sure who programmed this or why because the results-buffer from the internal algo are complete over-written by the custom indicator. I don't really see the point it... might as well just use the custom indicator and...Ignored