Wick Strategy
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Kawol268

//@version=4
study("Myscript")

cumTimeFrame = input("D", type=input.resolution)

is_new_day = change(time(cumTimeFrame)) != 0 ? 1 : 0
cnt_new_day = barssince(is_new_day)



highwick=high-close
lowwick=low-open
Body=close-open

//Green Candle
if (close>open)
    highwick:=abs(high-close)
    lowwick:=abs(low-open)
    Body:=abs(close-open)*1

//Red candle
else
    highwick:=abs(high-open)
    lowwick:=abs(close-low)
    Body:=abs(close-open)*-1   
    
//lowwick bullish, high wick bearish
output =lowwick- highwick+Body
plot(output, color=color.white, transp = 80)

// Accumulation
var cvol = 0.0
cvol :=output + (is_new_day ? 0 : cvol)

A=cum(cvol)
plot(cvol, color=color.red)
