Can any one help me with AFL code to plot Real Time advances & declines on chart?

I am new to amibroker. I want to plot real time advances and declines of NSE on Amibroker.
Can any one help me with this AFL code?1f9162f989bc876528e4d9e6b487fcf185dddeed_1_690x250