Quantcast
Channel: AmiBroker Knowledge Base
Browsing all 115 articles
Browse latest View live

How generate backtest statistics from a list of historical trades stored in a...

Apart from testing mechanical rules based on indicator readings, backtester can also be used to generate all statistics based on a list of pre-defined trades, list of our real trades from the past or a...

View Article


Image may be NSFW.
Clik here to view.

Third party software “black list”

From time to time users face bizarre problems that after hours/days of investigation turn to be caused by 3rd party softwares that modify normal operation of Windows OS and cause troubles. As most...

View Article


Image may be NSFW.
Clik here to view.

How to restore accidentially deleted price chart

When working with chart windows it sometimes may happen that we mistakenly close the chart we meant to keep displayed. Here are some suggestions showing how to quickly restore our working setup. First...

View Article

Image may be NSFW.
Clik here to view.

How to setup automatic periodic scans & explorations

One of the most powerful features of AmiBroker is the ability of screening even hundreds of symbols in real-time and monitor the occurrence of trading signals, chart patterns and other market...

View Article

What are constants in AFL and how they work

The AFL language contains many pre-defined words like: shapeUpArrow, stopTypeTrailing, colorRed, styleThick, inDaily and many more. These are examples of constants. As written in AFL language...

View Article


Image may be NSFW.
Clik here to view.

Relationship between chart panes

In order to explain possible relationships between chart panes in AmiBroker, let us first introduce two important attributes associated with each chart pane, these are Chart ID and File path. To see...

View Article

How to get support most efficiently

As a customer you want to have your questions and issues resolved most quickly and it is also our goal. In order to allow us to serve you the best possible answer in shortest possible time you need to...

View Article

Image may be NSFW.
Clik here to view.

How to draw regression channel programatically

Built-in drawing tool allows to place regression channel on the chart manually and the study works on regular Close array as input. The power of AFL allows to automate this task and draw a customizable...

View Article


Position sizing based on risk

One of most popular position sizing techniques is Van Tharp risk-based method. Van Tharp defines risk as the maximum amount that can be lost in a trade. Typically you limit your loses by setting up a...

View Article


Image may be NSFW.
Clik here to view.

Per-symbol profit/loss in a portfolio backtest

Backtesting engine in AmiBroker allows to add custom metrics to the report, both in the summary report and in the trade list. This is possible with Custom Backtester Interface, which allows to modify...

View Article

Image may be NSFW.
Clik here to view.

How to combine data from multiple input files

Sometimes it is useful to update existing database with quotes from other source and sometimes we just want to update one data field, leaving other unaffected. For example we may want to import data...

View Article

Using price levels with ApplyStop function

ApplyStop function by default requires us to provide stop amount (expressed in either dollar or percentage distance from entry price). Therefore, if we want to place stop at certain price level, then...

View Article

Image may be NSFW.
Clik here to view.

How to customize list-view columns

A list-view is a view that displays a list of scrollable items in a table-like format. List-views are used in Real-Time quote window, Analysis window, Symbol list, etc. The columns in any list-view in...

View Article


Image may be NSFW.
Clik here to view.

Time compression of data retrieved from another symbol

AmiBroker’s Time-Frame functions (http://www.amibroker.com/guide/h_timeframe.html) allow to use multiple intervals within a single formula and combine them together. Another set of functions in AFL...

View Article

How to export chart image to a file

Charts can be exported as GIF or PNG files either manually or programmatically. To export chart image manually, simply use Edit->Image->Export to file menu. Instead of exporting you can also copy...

View Article


Image may be NSFW.
Clik here to view.

How to force Line chart style for specific symbols (like mutual funds)

There is an easy way to avoid switching the price chart style back and forth if we want e.g. to display a candlestick chart for our stock symbols, but a line chart for just a subset of tickers in our...

View Article

How to exclude top ranked symbol(s) in rotational backtest

Rotational trading is based on scoring and ranking of multiple symbols based on user-defined criteria. For each symbol a user-definable “score” is assigned on bar by bar basis. Then, each bar, symbols...

View Article


Image may be NSFW.
Clik here to view.

How to use Google to search AmiBroker site

Everyone knows how to use Google, but not everyone knows about a simple trick that tells Google to look for results only in single web site. To do so simply add +site:domain.com to your Google search...

View Article

How to correct forward looking timestamps

Some platforms, like Tradestation, use “future looking” timestamps in their data so for example 5 minute bars covering market activity from 9:30:00 till 9:34:59 are stamped with 9:35:00 (future time –...

View Article

How to backup AmIBroker configuration

By default AmiBroker stores all its files and databases inside AmiBroker installation folder. Standard AmiBroker installation path is: C:\Program Files\AmiBroker (32-bit program installed on 32-bit...

View Article
Browsing all 115 articles
Browse latest View live