In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
This is a Non Repaint version of my ever popular "Open Close Cross Alert R6 by JustUncleL" and is normally used in conjunction with my strategy script "Open Close Cross Strategy NoRepaint Version by JustUncleL", to provide alerts for the TradingView Alarm subsystem.