Amibroker Afl Cheat Sheet !full! Jun 2026
These functions handle how indicators and titles appear on your charts Plot(array, name, color, style); : Standard function to draw lines or bars. PlotShapes(shape, color, layer); : Plots buy/sell arrows or custom icons on the chart. Title = StrFormat(...); : Customizes the text displayed in the chart header WriteIf(condition, true_text, false_text); : Generates dynamic text for chart commentaries Control Structures & Advanced Tools
// --- Backtest Settings --- SetPositionSize(100, spsShares); SetOption("CommissionMode", 3); // Per share SetOption("CommissionAmount", 0.005); // Half cent per share ApplyStop(stopTypeLoss, stopModePercent, StopLoss, True); amibroker afl cheat sheet
: Accesses past or future values. Example: Ref(C, -1) is yesterday's close. 📊 Essential Functions Cheat Sheet Trading Indicators Description MA() MA(C, 20) Simple Moving Average EMA() EMA(C, 50) Exponential Moving Average MACD() MACD() Moving Average Convergence Divergence RSI() RSI(14) Relative Strength Index ATR() ATR(10) Average True Range Trading System Logic These functions handle how indicators and titles appear
