How to use "min" function in chartink scanner

Hi, can anyone help me how to use " min " function in chartink scanner for the below condition ;
any one candle closed above its respective candle indicators value for previous 5, 6 candles ,
ie candle 1 close should be above candle 1 vwap value
candle 2 close should be above candle 2 vwap value ,
like that the scan should return results for scrips , any one of the previous 5,6 candles closed above its indicators value respectively ,
Thanks in advance.