How to write a scan for PPO(12.26.9) line's slope (linear regression: 20)?

Can someone help me to write a scan for PPO(12.26.9) line's slope (linear regression: 20) when it is crossing zero line (above or below).
Note: PPO line is actually similar to MACD(12.26.9) line. See attached screenshot.

Best Answer