https://www.tradingview.com/script/qZ9E ... lta-Trend/
Code: Select all
// 4H Delta//Weekly Delta
// By TheBullTrader-Use Daily Time frame
// Trade Bullish when green and red is above 0.000 and Trade Short when both are below 0.000
study(title="Daily Delta Trend",overlay = false, shorttitle="Daily Delta Trend")
W_C=security(tickerid,"D",close)
W_O=security(tickerid,"D",open)
//
D=W_C-W_O
D1 = sma(W_C-W_O,50)
D2=sma(W_C-W_O,200)
D3=ema(D1,50)
D4=ema(D2,200)
//
//plot(D1,color=green)
//plot(D2,color=red)
plot(D3,color=green,style=histogram)
plot(D4,color=red,style=histogram)I love the way the indicator turns. It is not the holy grail, but it is fairly accurate in that even when there is a spike the other way, it eventually (within 24 hours when using 15-minute timeframe), corrects. If it does not turn after such a time, one can always get out for a small loss.