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
- Post #24,184
- Quote
- May 28, 2018 6:18pm May 28, 2018 6:18pm
- | Additional Username | Joined May 2018 | 38 Posts
- Post #24,189
- Quote
- May 28, 2018 10:48pm May 28, 2018 10:48pm
- Joined Nov 2016 | Status: Member | 2,356 Posts
- Post #24,190
- Quote
- May 28, 2018 11:50pm May 28, 2018 11:50pm
- | Joined Nov 2017 | Status: Member | 74 Posts
- Post #24,191
- Quote
- May 29, 2018 1:04am May 29, 2018 1:04am
Don't Be A Hard Worker, Be A Smart Worker
- Post #24,194
- Quote
- May 29, 2018 4:46am May 29, 2018 4:46am
- | Joined May 2018 | Status: Junior Member | 2 Posts