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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

the order of the arrays. I admit this took me a few minutes to understand, but like

the rest the AFL functions, it makes perfect sense. The opposite of the short-term

moving average crossing above the long-term average is the long-term average

crossing above the short-term average.

Coding like this might not be your cup of tea—having to remember the function

calls and how the Cross function works and all the business about arrays. If you want

to test with AmiBroker, but don’t want to work with the full-blown AFL editor, you

can still do this. The next part of this chapter introduces the AmiBroker AFL wizard.

■ AFL Wizard

Imagine creating trading algorithms with point-and-click ease and minimal typing.

Enter the AmiBroker AFL Wizard. Instead of typing MySecondAlgo into the AFL

Editor, let’s create it in the AFL Wizard. Get back to AmiBroker and click on the

AFL Wizard button (Figure 4.14). Once you click on the button a window like

the one in Figure 4.15 will pop up.

133

FIGURE 4.14

The AFL Code Wizard button.

INTRODUCTION TO AMIBROKER’S AFL

FIGURE 4.15

A new AFL Code Wizard window.

www.rasabourse.com

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

Saved successfully!

Ooh no, something went wrong!