Alert Problems
//if (IsIndicatorPeak(shift) && TimeStamp != Time [ 0 ]) if (shift==1 && IsIndicatorPeak(shift) && TimeStamp != Time [ 0 ]) { ......... }
Since these alerts were issued in response to past data, I corrected it to sound only with the latest confirmed candle.
Naguisa Unada:
Since the alerts were issued in response to past data, I corrected it to sound only with the latest confirmed candle.
This works!!! thanks 😃
Why when I use this code to sound an alert it behaves okay and sounds only when the statement is true.
But when I use this 2nd code it displays an alert on chart as soon as its placed onto chart?