Buy: when MA30 changes from downtrend to uptrend, price is over MA30 and magarto indicator shows a crossover in the top.
Sell: opposite scenario
Update 1: Sorry, for LTCUSD it didn't work. I used the wrong chart when I published it so check it in BTCUSD .
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.
study("magarto indicator",overlay=false) ma=sma(close,30) maslope=ma-ma maslopeB=iff(maslope<0,-1,iff(maslope>0,1,0)) candleOver=iff(ohlc4>ma,1,-1) xMA = ema(close,13) DayLow = iff(dayofmonth != dayofmonth, low, min(low, nz(DayLow))) bearpower = DayLow - xMA DayHigh = iff(dayofmonth != dayofmonth, high, max(high, nz(DayHigh))) bullpower = DayHigh - xMA bothElder=iff((bearpower>0 and bullpower>0),1,iff((bearpower<0 and bullpower<0),-1,0)) all4=maslopeB+candleOver+bothElder plot(all4) hline(3) hline(-3) buy = all4 == -3 ? all4 : na sell = all4 == 3 ? all4 : na plot(buy, style=circles, linewidth=4, color=red) plot(sell, style=circles, linewidth=4, color=green)