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
 

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?