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 5.7

tab option.

FIGURE 5.8

The ESB VBA Code

Customize your Excel ribbon. Make sure you check the box next to the Developer

The Developer tab in Microsoft Excel.

The modules are individual files that contain the source code to carry out the various

chores necessary to test a trading system. The most import module (Main)istheone

we will spend most of our time in. Go ahead and double-click Main—the source

code inside the module will open in a separate window (see Figure 5.10). Inside

this module are five submodules or subroutines: declarations, fillTradeInfo,

GetData, SystemTester, andmain. Most of our work will take place in the

SystemTester module. Go ahead and scroll up and down in this window. It’s going

to look daunting without a doubt, but you need not concern yourself with 80 percent

of the source code. Scroll to the very top of the window and you will see a lot of text

155

USING MICROSOFT EXCEL TO BACKTEST YOUR ALGORITHM

www.rasabourse.com

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

Saved successfully!

Ooh no, something went wrong!