nifty buy sell amibroker afl formula