@miroslaw For some reason you link doesn't open your project. Let me confirm if I understand it correctly.
The preceding is a candle measuring 100 pips from high to low.
The close price of the preceding candle is at 75 pips distance from high (for a sell trade). This means the lower wick is 25 pips long.
If the close price of the preceding candle is at 75 or more pips distance from the high, the a sell is open.
Is that correct?