Fixed the code so you can look at all timeframes and not just the daily.
// 4H Delta//Weekly Delta // By TheBullTrader-Use Daily Time frame // Trade Bullish when green is above red and Trade Short when green is below red study(title="DDA-Daily Delta Analysis_v2 ",overlay = false, shorttitle="Daily Delta Analysis_v2 ") D1 = sma(close-open,50) D2=sma(close-open,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)