Hi guys just need a little help not sure if this can even give an alert.
I’m try to get an alert on the Zero lag MACD but having trouble can someone help please attached image as I don’t want an alert when the line cross “0” but want an alert when histogram (or the bars goes above or below “0”
There you go
x = MACD[12,26,9](close)
IF x CROSSES OVER 0 THEN //histogram goes above ZERO
.
.
ENDIF
IF x CROSSES UNDER 0 THEN //histogram goes below ZERO
.
.
ENDIF
Roberto
Thank you for the help but when I try to add this as an indicator I get a syntax error am I doing something wrong
Do I add this as an alert
Roberto has gave you an example of how to code a signal indicator. If you want to add sounds alerts, you can follow this tutorial in video: https://www.prorealcode.com/blog/video-tutorials/alerts-prorealtime-10-3/