Mohsen Big Candle
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © joyfulPie52104

//@version=5
indicator("Mohsen Big Candle", overlay = true)

candle_length = input(10)

big_candle = false



if math.abs(close - open) > candle_length or math.abs(open - close) > candle_length
    big_candle := true
    

barcolor(big_candle ? color.black : na)
// plot(close)
