Skip to main content


AmiBroker Formula Language (AFL) is a scripting language designed for technical analysis and algorithmic trading within the AmiBroker software. AFL is a powerful tool that enables traders and analysts to create custom indicators, trading strategies, and exploration systems.

One of AFL’s key advantages is its accessibility. It doesn’t require advanced programming knowledge, making it suitable for both beginners and experienced traders. With AFL, you can transform your trading ideas into functional strategies.

AFL’s functionality extends to backtesting, which allows you to assess how your trading strategies would have performed historically. This feature aids in strategy refinement and optimization, helping you make informed decisions in real trading scenarios.

Traders can utilize AFL to automate buy and sell signals based on predefined conditions. This automation streamlines the trading process and removes emotional biases from decision-making. It can also help capture trading opportunities even when you’re not actively monitoring the markets.

AFL’s versatility is a standout feature. It boasts a vast library of built-in functions and indicators, simplifying the creation of complex trading systems. Moreover, AmiBroker’s extensive user community regularly shares AFL code snippets and strategies, fostering collaboration and knowledge sharing.

With AFL, you can conduct in-depth technical analysis by creating custom indicators and charting features. This empowers traders to tailor their technical analysis to their unique trading styles and preferences.

In summary, AmiBroker Formula Language is a valuable tool for traders and analysts seeking to enhance their technical analysis and algorithmic trading capabilities. Its accessibility, backtesting capabilities, automation features, and extensive library of functions make it an indispensable asset in the world of financial markets. Whether you’re a beginner or an expert, AFL can help you turn trading ideas into profitable strategies.