Amibroker code for calculating Volatility

How to calculate volatility in Amibroker by the exact method which is NSE use?