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.

FIGURE 4.18

Changing the parameters in the ‘‘Edit Rule’’ pane.

View that we are currently located within. When you click on it you will see the

following code.

136

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

INTRODUCTION TO AMIBROKER’S AFL

Sell = 0;

Short = 0;

Cover = 0;

This should look familiar. The AFL Wizard has auto-generated the rules for the

four trading arrays: Buy, Sell, Short, and Cover. The Buy array is turned on when

the MA( Close , 15) is greater than MA( Close , 30). Click back on the Design

View tab and let’s point-and-click our way to a short entry rule. Click on Enter

Short when … and then the Add Item (Pencil) icon. You will once again see

the following code:

Value of Close (now) is greater than 10

Following the same steps we did for the long entry rules:

Click Value of and slide down to the function pane and select MA.

www.rasabourse.com

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

Saved successfully!

Ooh no, something went wrong!