31.07.2021 Views

Ultimate Algorithmic Trading System

Using automated systems for trading in stock markets

Using automated systems for trading in stock markets

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

switch

break (part of the switch statement or for/while statements)

case (part of the switch statement)

continue (part of for/while statements)

default (part of switch statement)

■ Functions

The following programming constructs are available for the creation of subprograms:

function

procedure

return

local (variable scope)

global (variable scope)

■ Utilizing Exploration for Debugging

AmiBroker provides a very easy to use form of program output to help with analysis

and as a tool for debugging. You have probably already seen the Explore button right

beside the Backtest button. Explore allows you to output various values created

by your AFL code in an easy to read spreadsheet format. This output is displayed

in the Results tab—the same place where a backtest outputs its information. Here

is an example of an exploration that prints out various indicator values:

295

AMIBROKER

/* Sample Exploration

Print out some indicator values */

Filter= 1;

myMACD = MACD(12,26);

myRSI = RSI(14);

myStoch = StochD(14,3,3);

myMovAvg = MA(C,19);

myClose = C;

www.rasabourse.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!