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.

122

INTRODUCTION TO AMIBROKER’S AFL

FIGURE 4.1

Launching AmiBroker’s AFL editor.

moving average example. The AFL Editor is one of the most powerful editors you

will find in any trading or programming platform. It features outlining, collapsible,

or text folding, function tips, and auto-completion. There’s just a little bit of typing,

so go ahead and just do it and I will highlight some of these key features along the

way. Here it is again, so you won’t have to flip back to the prior page.

PositionSize = MarginDeposit = 1;

avgLen = Optimize("Len",20,10,100,1);

avgLen = Param("Length",81,10,100,1);

Buy = C > MA(C,avgLen);

Short = C < MA(C,avgLen);

Sell = Short;

Cover = Buy;

www.rasabourse.com

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

Saved successfully!

Ooh no, something went wrong!