How to combine two databases into one

If you ever wondered how to combine two databases into one this short article will show you how, but let us start with some background first… (more…)

How to save layouts that hold individual parameter values for different symbols.

By default the values of parameters for given indicator pane are the same (shared) for all symbols. If you want per-symbol parameters, you need to apply technique descibed in this short article. (more…)

How to set individual trading rules for symbols in the same backtest

The following code shows how to use separate trading rules for several symbols included in the same backtest. (more…)

Stops priority in the default backtest procedure in AmiBroker

The order stops are triggered in the backtest is the following:
 - Fixed Ruin stop (loosing 99.96% of the starting capital)
 - Max. loss stop
 - Profit target stop
 - Trailing stop
 - N-bar stop* (see below)

In versions 4.61 and higher: you can decide if N-BAR stop has the lowest or the highest priority. (more…)

How to change property for multiple symbols at once.

In order to automatically change a property for many symbols - instead of manual action in Symbol -> Information dialog one can use OLE automation.
For example - to unmark “Use only local database” option for all the symbols, it’s enough to run such SCAN: (more…)

Price chart with independent style

If one wants to display a Candlesticks in one chart pane and Bars in another one, then it’s necessary to use a formula which does not read the settings from: View -> Price Chart Style.

The following custom Price formula allows to achieve this: (more…)

AmiBroker for FOREX

Here is an article that tells you everything you need to know about using AmiBroker for trading FOREX markets. (more…)

How to display arrows for trades generated in backtest?

In order to display trade arrows, first of all - it’s necessary to enable the arrows for particular chart. To do so - right-click on the chart pane of your choice, choose: Parameters -> Axes&Grid, then set: Show trading arrows to YES, as shown in the screenshot. (more…)

Discretionary Equity

In the March 2006 “Letters to S&C” section I found the following request:

“I am looking for and add-on […] that would enable me to build an equity curve from buy/sell signals that the trader directly draws over the price graph of a commodity; for example, using specific active vertical lines. Such a software would be of great help for discretionary traders to validate their semiautomatic systems. — PH CHAMBAULT”

And I just thought that it would be nice example of using AFL’s Equity() function and ParamTrigger()

(more…)

Using redundant signals for entries

NOTE: THIS ARTICLE IS NOW OUTDATED AS AMIBROKER SUPPORTS NEW BACKTEST MODE THAT HANDLES THIS NATIVELY http://www.amibroker.com/f?setbacktestmode

The sample code below shows how to use custom portfolio backtester procedure to change the way backtester works. Normally buy is matched against sell and redundant buy signals between initial buy and matching sell are removed as shown in the picture there:
http://www.amibroker.com/gifs/bt_regular.gif

The procedure below changes this behaviour and allows to use redundant signals (they are not removed).

(more…)

« Previous PageNext Page »