80% Value Area Rule
80% Value Area Rule
//@SirTehseen
//@Tradewithtehseen
indicator("80% Value Area Rule TWT", overlay=true)
// Session Detection
isNewDay = ta.change(time("D")) != 0
if isNewDay
dayHigh := high
dayLow := low
dayVolume := volume
else
dayHigh := math.max(dayHigh, high)
dayLow := math.min(dayLow, low)
dayVolume += volume
// Plotting
plot(val, "Value Area Low", color=color.red, linewidth=2,
style=plot.style_linebr)
plot(vah, "Value Area High", color=color.green, linewidth=2,
style=plot.style_linebr)