Before You Begin — Requirements
Step 1: Download the AFL File
Go to the AFL Download Page
Visit the All AFLs page or any individual AFL detail page on this website.
Click the Green Download Button
Click the ⬇ Download button for your chosen AFL. Your browser will download a .afl file — this is a plain text file containing the AmiBroker formula code.
Note the Download Location
Most browsers save to C:\Users\YourName\Downloads\. Remember where your browser saved it — you'll need to move it in the next step.
Step 2: Copy to AmiBroker Formulas Folder
AmiBroker reads AFL files from a dedicated Formulas directory. You need to place your downloaded AFL file inside this folder (or a subfolder within it).
Common AmiBroker Formulas Folder Paths
Open Windows File Explorer
Press Windows + E to open File Explorer.
Navigate to the Formulas Folder
Go to your AmiBroker installation directory → open the Formulas folder. We recommend creating a Custom subfolder inside it to keep your AFLs organized.
Copy the AFL File
Copy the downloaded .afl file from your Downloads folder and paste it into Formulas\Custom\.
Step 3: Apply the AFL to a Chart
Open AmiBroker
Launch AmiBroker. Open a chart for any symbol by typing the symbol name in the symbol box (e.g., NIFTY-I for Nifty continuous futures, or any NSE stock code).
Set the Timeframe
Before applying, set your chart to the recommended timeframe for the AFL:
• SuperTrend, ORB, Intraday AFL → 5-minute or 15-minute
• Half-Trend, Buy Sell → 15-minute, 60-minute, or Daily
• Swing Trading, Trader Pro → Daily or Weekly
Insert the Indicator
Right-click on the chart area → Insert Indicator (or press Ctrl+I). The Indicator browser opens.
Find Your AFL
In the browser, navigate to Custom (or wherever you copied it) → double-click the AFL name. If you don't see it, click Refresh or restart AmiBroker.
The AFL Loads on Your Chart
The indicator will draw on the price chart immediately. Buy/Sell arrows, trend lines, color-coded candles, or staircase TSL levels will appear depending on the AFL.
Step 4: Adjust Parameters
Each AFL has user-adjustable parameters — ATR periods, multipliers, swing length, time windows, etc. To access them:
Open the Parameters Dialog
Right-click on the chart (or the indicator pane) → click Parameters. A dialog box opens listing all configurable parameters for that AFL.
Adjust Values
Use sliders or text fields to change parameter values. The chart updates in real time as you adjust. Refer to each AFL's documentation page on this site for recommended parameter ranges.
Save as Default (Optional)
Click Save As Default in the Parameters dialog to remember your settings for future chart sessions.
Step 5: Using AFL in Explorer (Stock Scanner)
AFLs marked as Explorer Ready (ORB Explorer, Intraday AFL, Buy Sell System, Trader Pro) can scan your entire watchlist simultaneously:
Open Analysis Window
Go to Analysis → New Analysis (or press Ctrl+Shift+N).
Load the AFL
Click the Pick button next to Formula and navigate to your AFL file. Select it and click OK.
Configure the Scan
In the Apply to dropdown, select your watchlist (e.g., "All Symbols" or a specific NSE group). Set the date range to "Today" and the interval to match the AFL (5min, 15min, or Daily).
Click Explore
Click the Explore button. AmiBroker scans all symbols and fills the results table with Buy/Sell/Wait columns for each stock. Sort by the Buy column to find today's top opportunities.
Troubleshooting Common Issues
❌ AFL not showing in Indicator Browser
Make sure the .afl file is in the correct Formulas folder. Try: Chart → right-click → Insert Indicator → click Refresh button. Or restart AmiBroker completely.
❌ "Error in formula" message
This usually means the AFL requires a newer version of AmiBroker. Update to the latest version from www.amibroker.com. Some AFLs (like SuperTrend V5) use GFX functions available from AmiBroker 5.90+.
❌ No signals appearing on chart
Ensure you have enough historical data loaded. Some AFLs need 100+ bars to initialize (SuperTrend V5 requires SetBarsRequired=100000). Check your data coverage in AmiBroker's Data window.
❌ Intraday AFL showing no data after 9:30 AM
ORB and intraday AFLs need live data. Connect a real-time feed via AmiFeeder or Amidata. EOD data will not work for intraday systems.
❌ Sound alert not working (SuperTrend V5)
The default sound file path is C:\Windows\Media\ding.wav. If this file doesn't exist on your PC, the PlaySound function fails silently. Copy any .wav file to that path, or edit the AFL to point to a valid .wav file on your system.
Connecting a Real-Time Data Feed
For intraday AFLs to work during market hours, AmiBroker needs a live data source. Here are the options we recommend:
AmiFeeder
Real-time NSE & MCX data feed for AmiBroker — intraday tick streaming, historical backfill, live streaming, full F&O & MCX support. Subscription-based.
- ✅ Intraday tick streaming — NSE & MCX
- ✅ Historical backfill
- ✅ Auto-reconnect & session recovery
- ✅ NSE Equity, F&O, Currency, MCX
Amidata
Real-time NSE & MCX data feed for AmiBroker — identical feature set to AmiFeeder. Intraday ticks, historical backfill, live streaming. Choose based on subscription preference.
- ✅ Intraday tick streaming — NSE & MCX
- ✅ Historical backfill
- ✅ Auto-reconnect & session recovery
- ✅ NSE Equity, F&O, Currency, MCX