| Feature | Description | |---------|-------------| | | All variables represent time series (e.g., Close[0] = today, Close[1] = yesterday) | | No explicit loops needed | Most operations are implicitly vectorized | | Tick-based execution | AFL code runs for every bar in a chart or backtest | | Static variables | Used to preserve values between bar iterations when explicit loops are needed | | Built-in database | OHLCV, Open Interest, and auxiliary data |
Here's a more complex example that includes an RSI filter: amibroker afl code
Standard operators apply: + (add), - (subtract), * (multiply), / (divide). | Feature | Description | |---------|-------------| | |