Candle retest

Job ID: 37076667

Budget: €8 – €30 EUR

I need a pine script code the check when a candle is retested between 25% and 50% by a wick and closes below. One for Bull and one for Bear.