Amibroker Afl — Code

AmiBroker Formula Language (AFL) is the proprietary scripting language used by AmiBroker, a high-performance technical analysis and charting software. It is designed to allow traders to create custom indicators, scan for trading opportunities, perform backtesting, and automate trading systems. While it shares some syntactic similarities with C and C++, it is a specialized array-processing language optimized for financial data.

To make a code flexible, variables are exposed to the Amibroker "Parameters" dialog using the Param function. amibroker afl code