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.

35000

30000

25000

20000

15000

10000

5000

0

0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3

10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44

46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80

FIGURE 2.17 Keltner Channel optimization.

73

of trades. I scanned the Keltner Channel results and pulled out the parameter sets

that generated trades within +/− 2 percent of the 3,580. Most of the selected

parameter sets included the same 3.0 width. There are a couple of outliers, though.

Table 2.10 shows the performance of the Bollinger Band algorithm that was derived

earlier using (len = 60, stdDev = 2) and the Keltner Channel algorithm utilizing

the different parameter sets that generated nearly the same number of trades.

From this information, we might be able to derive that a Bollinger Band

(60, 2) is similar to a Keltner Channel (60, 3). If we accept this assumption, then

the winner is easy to pick from this table. The Bollinger Band algorithm performed

much better than the Keltner with these parameters. However, with such stringent

criteria and utilizing the Bollinger algorithm as the benchmark, are we being fair to

Keltner? We forced the Keltner to fit into criteria where a similar number of trades

were generated. Let’s take the gloves off and again do the same optimization and

pick the top five parameter sets for both algorithms based on the average profit and

net profit. In this analysis, a $50 round-turn commission will be deducted from each

trade—this will take execution costs into consideration, which will in turn provide

a level playing field for parameter sets that do not generate a large number of trades.

Tables 2.11 and 2.12 show the best performers for the Bollinger Band algorithm.

The first set of performance metrics were derived by sorting by average profit/loss

STOCHASTICS AND AVERAGES AND RSI! OH, MY!

www.rasabourse.com

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

Saved successfully!

Ooh no, something went wrong!