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.

138

FIGURE 4.20

Automatic Analysis dialog box.

INTRODUCTION TO AMIBROKER’S AFL

beside the Exclamation mark. This will build the formula and export it with a

‘‘.afl’’extension. You can then open it with AFL Editor and add the necessary code

for testing a futures contract:

PositionSize = MarginDeposit = 1;

For practice, go ahead and click on the Build and Export a formula icon and

save it somewhere on your desktop or in a folder in your C: drive. You then can go

to the AFL Editor and open it and add the line of code above. I did just that and my

AFL Wizard designed code looks like this:

PositionSize = MarginDeposit = 1;

Buy = MA( Close , 15 ) > MA( Close , 30 );

Sell = 0;

Short = MA( Close , 15 ) < MA( Close , 30 );

Cover = 0;

www.rasabourse.com

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

Saved successfully!

Ooh no, something went wrong!