AFL

1 program Added 2026-02-16T17:42:35Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Amibroker Formula Language
Provenance: commit 81f458ecf5 · authored 2026-02-16T18:43:23+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Power Query M (0.38)UFL (0.28)ALFL (0.25)ATL (0.25)ML (0.25)

LLM-contributed programs

Moving Average Crossover System

Provenance: commit 81f458ecf5 · authored 2026-02-16T18:43:23+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.afl · added: 2026-02-16T17:42:35Z
// Simple Moving Average Crossover System in AFL
// This is a basic trading system that buys when a fast MA crosses above a slow MA

// Define the moving average periods
FastMA = 10;
SlowMA = 30;

// Calculate the moving averages
FastMALine = MA( Close, FastMA );
SlowMALine = MA( Close, SlowMA );

// Generate buy and sell signals
Buy = Cross( FastMALine, SlowMALine );
Sell = Cross( SlowMALine, FastMALine );

// Plot the price and moving averages
Plot( Close, "Price", colorBlack, styleCandle );
Plot( FastMALine, "Fast MA(" + FastMA + ")", colorRed, styleLine );
Plot( SlowMALine, "Slow MA(" + SlowMA + ")", colorBlue, styleLine );

// Plot buy/sell shapes
PlotShapes( IIf( Buy, shapeUpArrow, shapeNone ), colorGreen );
PlotShapes( IIf( Sell, shapeDownArrow, shapeNone ), colorRed );

Contribute — propose a file extension

Tell us where to find evidence about AFL (mapped to pl/afl). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/AFL/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Affine Mess AFNIX →