big shadow
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © farzam00248

//@version=5
indicator("big shadow", overlay = true)

highshadow_length = input(15)
lowhshadow_length = input(15)
big_shadow = false

high_percentage = ((high - math.max(open,close))/math.max(open,close))*100
low_percentage = ((math.min(open,close) - low)/low)*100

if high_percentage > highshadow_length or low_percentage > lowhshadow_length 
    big_shadow := true

alertcondition(big_shadow, title='big_shadow', message='big_shadow')

barcolor(big_shadow ? color.white : na)
//plot(close)