AmiBroker is one of the most powerful and flexible platforms for algorithmic trading, backtesting, and technical analysis. At its core is the , a specialized array-processing language designed for high-performance financial engineering.
AI responses may include mistakes. For financial advice, consult a professional. Learn more
This article provides a comprehensive guide to understanding, writing, and deploying , enabling you to transform market ideas into actionable, automated strategies. 1. What is AmiBroker Formula Language (AFL)?
| Category | Examples | |----------|----------| | | abs, sqrt, log, exp, sin, cos, atan2 | | Indicators | RSI, MACD, BBandTop, ATR, SAR | | Bar analysis | Cross, ZigZag, Peak, Trough | | Timing | TimeNum, DateNum, DayOfWeek | | System | Buy, Sell, Short, Cover, ApplyStop | | Output | Plot, PlotShapes, AddColumn, AddTextColumn |
Traders use AFL to design everything from simple moving average crossovers to complex volatility-based breakout systems .
// --- Calculations --- BBLower = BBandBot(C, Periods, Width); BBUpper = BBandTop(C, Periods, Width); TrendMA = MA(C, 200); ATR_Val = ATR(ATRPeriod);
Most traders use AmiBroker for charting, but the has two other critical tabs: Scan and Explore .