Need AFL code for below strategies

Stocks trading near their high in the past 4 months with rising volumes and closing strong, indicating a possible breakout.
cash ( max ( 5 , close ) > 6 days ago max ( 120 , close ) * 1.05 ) and ( volume > sma(volume,5) ) and ( close > 1 day ago close

It would be great if u could provide scanner on this

please brief your conditions clearly. 4 months means your check on 4 months historical data?

yes correct it should be 4 month