Use the form on the right to contact us.
You can edit the text in this area, and change where the contact form on the right submits to, by entering edit mode using the modes on the bottom right.
AmiBroker Formula Language (AFL) is a high-level, array-based programming language designed specifically for developing trading systems and technical analysis indicators. It serves as the engine for
Reserved variables used to trigger trading signals. Built-in Functions and Technical Indicators
, allowing traders to define entry and exit rules, automate scans, and perform high-speed backtesting. The Role of AFL in Algorithmic Trading Array-Based Processing amibroker afl code
: Combine data from different intervals (e.g., Daily and Weekly) to create a single trend-strength feature. TimeFrameSet() TimeFrameRestore() to compress and expand data into a single array. Relative Performance Features
: Using Plot() or PlotShapes() to show indicators and entry/exit arrows on the chart. The Role of AFL in Algorithmic Trading Array-Based
Buy = Cross( Close, MA( Close, 20 ) ); // Buy when price crosses above its 20-day Moving Average Sell = Cross( MA( Close, 20 ), Close ); // Sell when price crosses below Use code with caution. Copied to clipboard
The best in the world will fail if your backtest settings are wrong. Buy = Cross( Close, MA( Close, 20 )
AFL comes with hundreds of pre-defined functions for technical analysis. These range from simple moving averages to complex statistical tools: Simple Moving Average. RSI(Periods): Relative Strength Index. StochD(Period, KPeriod, SPeriod): Stochastic Oscillator.