Please code my below pi strategy

is it possible to code which scans all stocks where adx crossover below 25 and give an alert ?

And also could you please code the below condition :-

Buy Condition RSI(17)>=75 AND ADX(14)>25
Short Condition RSI(17)<=25 AND ADX(14)>25

If you are checking with scanner run two different scanners one for buy and another for sell

Buy Script:

RSI(CLOSE,17)>=75 AND ADX(14)>25

Sell Script:

RSI(CLOSE,17)<=25 AND ADX(14)>25