Request to "SMART money pressure oscillator", the best tools

#1
Dear Coders,
Hello, Hope to have a good day.
Kindly prepare AFL code to show "smart money pressure oscillator" as this explanation from MT5

Calculation:
Smart Money Pressure = Close[Period] - SM

where:
SM = SM[i+1] + Change

where:
If Volume > VolMA
Change = Close - Close[i+1]
Otherwise
Change = 0
Volume = current volume