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.
//@version=2 // simple cross of daily candle close // strategy("DailyCandleCross", shorttitle="DCC", overlay=true, calc_on_order_fills= true, calc_on_every_tick=true, default_qty_type=strategy.percent_of_equity, default_qty_value=75, pyramiding=0) A=security(tickerid, 'D', close) B=security(tickerid, 'D', close) C=A>B if(C) strategy.entry("Long", strategy.long) if(not C) strategy.entry("Short", strategy.short)
this indicator is an example of repainting. I do not suggest to use it. I would have deleted it years ago, but TV will not allow that.
Have you tried Indicator420b? https://www.tradingview.com/u/SeaSide420/#published-scripts
it will make you 1 million dolla!
it is free
(also the CCI_Hull is great)
and here pic of possible settings of alert https://gyazo.com/d13710ee3a1f7d136ae483fe08b513cd
i dont use the alerts yet, but hopefully this right