
Master how functions streamline programming across languages, from built-in helpers to indicators like moving average, MACD, and RSI, with practical EMA examples.
Explore essential AFL functions for plotting EMA 20 with the plot function and color styling, using load and reference for backtesting and live-market caveats.
Learn how the highest high and lowest low functions compute top and bottom values from the last five bars and plot them with graphics space, enabling 52-week breakout/breakdown ideas.
Create a simple afl strategy that buys when the close crosses above the previous 50-candle high and sells when it crosses the previous low, using cross and reference functions.
learn how the iif function evaluates a condition and returns the true or false part, enabling color coding and plotting using cross with the highest high.
Use the iif function to merge arrays by whether close is above 50 ema, selecting the highest high when bullish and the lowest low when bearish, with green or red.
Explore nested IIF functions to handle multiple conditions in AFL. Build RSI color logic using RSI and EMA 20, applying green for bullish, red for bearish, and white otherwise.
Param functions and panel functions let traders create multiple arguments for a single parameter from the chart, eliminating repeated code edits and enabling quick color, style, and value customization.
Explore how the time frame get price function retrieves highs and lows from chosen intervals (5m, 15m, daily) using shift to reference previous day or periods for AFL charts.
Build a center pivot range (cpr) indicator in AFL by computing pivot points, center range, resistances, and spokes from previous day high, low, close, then plot color-coded lines.
Learn the difference between scanning and exploration in the AFL analysis tab: scanning filters data with simple conditions and predefined columns, while exploration supports complex, code-backed conditions and customization.
Learn AFL exploration using the filter identifier to select stocks by true conditions, such as close above moving average 20, and visualize results with add column for selected data.
Explore how to build an AFL exploration with filters that compare last day volume to the 30-day moving average, visualize results, using a minus one reference.
Explore bit advanced AFL programming by visualizing indicators, using the percentage rate of change with RSI above 60 to identify bullish or bearish trends and build add column analyses.
Explore real-time exploration and scanning in AFL programming, applying buy, sell, short, and cover triggers with 20-day high and low references for live trading.
Explore debugging with exploration techniques to inspect back-end code, create variables and columns, and identify indicators by observing how built-in functions behave.
Master the barsince function by debugging a cross between close and the 20-period moving average, using a cross detector to color-code signals and understand initialization for reliable trading insights.
Learn how optimization tunes parameters to reduce drawdowns and boost profits, while balancing karma ratio and risk reward ratio, using the syntax name, default value, final, and increment.
Exhaustive optimization tests all parameter combinations, while smart optimization selects the most useful parameters using optimizers like Spesso and CMA.
Explore exhaustive optimization of a moving-average crossover system by testing fast and slow EMA parameters and hundreds of combinations, evaluate stability with the MDD ratio, and emphasize paper trading first.
Explore the need for flow control statements in AFL programming, including looping to target data and handling multiple errors across arrays. Learn practical usage in trading strategies with beginner-friendly explanations.
Discover how flow control statements index each bar using bar count and bar index, stepping through bars in a chart and applying conditions to move to the next bar.
Understand quick AFL and its 30 extra bars for the visible chart, and learn how to turn AFL off by editing the formula.
Explore indexing candles from bar zero to the last bar, accessing open, high, low, and close values, and handling null values in AFL-style arrays.
Explore the syntax and flow of if...else statements, including condition expressions, semicolons, braces for clarity, and nested structures, with a buy/sell example and bar-by-bar execution.
Explore looping in AFL programming by iterating across each bar with for, while, and do loops, and learn when complex trade logic requires per-bar iteration.
Master the AFL for loop syntax and bar iteration, then build and plot averages and shapes while generating buy or sell signals with up or down markers.
Master the basics of the while loop syntax, including initializing a loop variable and placing a conditional in parentheses to control execution. See an example calculating averages using an array.
Compare do-while loops with while loops; do-while runs the statement then checks the condition, ensuring at least one execution, and is shown through a simple average values example.
Demonstrates break and continue in AFL programming, contrasting how break terminates a loop versus continue skips to the next iteration, using an EMA 50 example and chart plotting.
Create a trailing stop loss using a for loop and price chart, triggering buys on a cross in the maturity and signal line and raising the stop with max logic.
Learn to use param toggle and param list to switch indicators on charts. Apply true/false values, pipe separators, and defaults, then use if statements to display resistances, supports, and CPR.
Explore user defined functions in AFL programming, learn how to create and store them in the AFL code editor, and reuse them to improve code readability.
Explore the syntax for creating user-defined functions in AFL, including function keyword, naming, parameters, body, and return values, plus how to save and include functions for reuse.
Understand the difference between global and local variables in AFL programming, how function scope works, and how the global keyword can expose function-local variables for outside use.
Explore creating user defined functions and compare them with built-in iif functions, highlighting performance, speed, and best practices for trading strategies.
Explore backtesting basics for AFL programming, covering data requirements, costs, methods, and how to observe, code, and select trading strategies for systematic trading.
Learn the 52 week high breakout strategy, buying on breakouts above the upper band and selling when price closes below the 20 moving average, with backtesting and non rebranding strategies.
Account for brokerage costs and slippage in backtesting. Choose discount brokers and secure high-quality data with enough history to build robust AFL strategies.
Explore intra bar interval strategies that trigger trades before candle closes, using EMA crossovers (8/13/21/55), high and low breaches, and flip condition with reference highs and lows.
Explore multi time frame functions in AFL by pulling data from a bigger time frame into a smaller one, using time frame set and expand for EMA crossovers.
Outline a multi time frame AFL strategy using RSI and EMA on 15-minute and hourly data, with RSI above 60 and five consecutive closes above the 20-EMA, plus risk-reward emphasis.
Explore position sizing and money management in afl trading, using percent of equity, martingale and anti-martingale schemes, to manage risk and reduce drawdowns.
Explore an intraday system for same-day stock trading using big candles and next-candle reversals to trigger shorts. Cover first two bars, time windows, candle patterns, backtesting, and 2% risk sizing.
Explore how scaling in and scaling out manage risk, reduce exposure, and optimize profits in trading, including dollar cost averaging, martingale, pyramid, and profit booking.
This lecture explains a scaling strategy in AFL programming: enter on buy and add to the position over three bars (50% first, then 10%), using EMA 50 and MACD.
Set up AFL easy alerts by right-clicking a symbol and enabling real-time data. Choose text, pop-up, email, or sound alerts and monitor the output to trigger broker actions.
Explore how the loaded alert function triggers AFL alerts using a boolean expression, and configure sound, email, or file/URL outputs, including text, type, and flags with optional looping.
Learn how to configure email alerts using an ssl add-on with smtp gmail settings, including enabling two-step verification and app passwords, and troubleshoot 32-bit vs 64-bit issues.
Learn to build an afl alert strategy using ema 100 cross and RSI cues. Buy on RSI above 60, sell on RSI below 40, non repainting and reference minus one.
master the say, play sound, and send email functions in AFL programming to trigger alerts from chart signals using selected value and time-stamped messaging.
Explore vfx and dfs functions for chart shapes and plotting, and learn the four dfs modes, including default mode where x and y are in pixels and bar index modes.
Explore how screen pixels vary by system, view display resolution (for example 1920 by 1080), and use x and y coordinates to form shapes; note pixels depend on the device.
Explore dfs and gfx functions to draw shapes, set colors, text properties, and overlays, and learn how to create and customize visual objects on charts.
Showcase the practical use of VFX functions in AFL programming by plotting two moving averages (20 and 50), buy/sell signals, and PNL with color-coded backgrounds for backtesting and paper trading.
Enhance trading skills by studying how the market works, price action, and indicators. Translate tested strategies into code for broker tools while prioritizing psychology and money management.
Explore AFL programming basics for beginners, covering importing and handling databases, charting, the local formula language, and the foundations of backtesting, scanning, and building an efficient trading system.
Explore how to download Amibroker from the official site, compare standard, professional, and ultimate editions, and learn what each includes, from data options to trial access.
Navigate the AFL programming charting software, build and manage a database, and apply indicators such as moving averages and RSI for backtesting.
Learn how to create a new local database, import and encode data using a wizard, set data intervals, convert granularity, and manage watch lists for AFL programming.
Source data only from registered vendors to ensure reliability and backtesting accuracy. Compare price and latency among providers like Interactive Brokers for Canada and European markets, historical and real-time data.
Explore the analysis tab in Amibroker, learn to code price and moving average in the AFL formula language, reuse snippets, and understand scanning, exploration, backtesting, and optimization.
this lecture explains afl as a formula language, using tokens, whitespace, and commands; it covers a basic code pattern with section begin end, semicolon, and comments.
Explore the five token types in AFL programming: identifiers, constants, string literals, operators, and punctuation, and learn how the AFL language processor recognizes and uses them.
Learn how operators drive computations in AFL programming, covering comparison operators, assignment operators, arithmetic operators, logical operators, logical constants, and compound assignment, with true/false outcomes and pre/post increment.
Explore arrays as a powerful data structure for storing open, high, low, close, and other bar data, and use identifiers to build trading indicators by adding close and open values.
Explore AFL debugging with breakpoints and the watch window to inspect open and close values and daily candles. Learn to adjust debugger preferences and base versus current chart intervals.
Every thing about Amibroker Formula Language is suitable for the traders who are willing to learn the process of systematic trading. This course is meant for beginners and medium level programmers. At last there is a section named as appendix which is specifically designed for the beginners where all the basic stuff about programming and fundamentals of AFL are covered.
Then from the very first section till the second last one, level of programming will be enhanced in each and every consecutive video and you will be able to back test your own trading systems.
In between we will learn that where & how to use hundreds of in built functions available in amibroker which can also be used to create our own indicators and trading systems.
After that we will shift to the looping part of the AFL. There we will cover how different kind of loops can be used, so that we can deal with the problems which can't be handled with simple array manipulations.
Most of the importance is given to the back testing section where we will practically use our coding knowledge to create and back test different kind of trading strategies like intraday, intra bar, swing, positional etc.
The purpose of this course is not to provide any of the profitable strategy or system, but to feed the trader with right kind of programming knowledge which enables him to create & back test his own trading systems.
See you in the course!