Open Run 150/15
(Slow Lag of 150 and Fast Lag of 15) and examine the performance chart
In the trade
log, locate the first trade entry
6500 82-09-01 119.525 83-12-20
buys 6500 Units on 9/1/82 at a price of 119.535 and sells them on
12/20/83 at a price of 159.60 for a profit of 260487.50.
To see how
this works, scan down the metrics log to late August, 1982.
slow=113.110 fast=112.055 -
slow=113.177 fast=112.817 -
slow=113.254 fast=113.590 +
slow=113.306 fast=114.035 +
average crosses above the slow average on 8/31/82 (See the + sign).
Therefore, the system buys on the next open.
Again, look in
the metrics log for the prices.
OHLC:[ 115.90 118.20 115.05 118.15 ]
OHLC:[ 117.95 119.95 117.40 119.00 ]
OHLC:[ 119.30 119.75 116.90 117.15 ]
On 9/1 the
open is 119.3 and the high is 119.75. The system awards an
execution 50 percent of the way from the open to the high, or
the metrics log:
On 8/31 the
ATR is 3.115. The ATR Multiplier is 5 so the Risk_Per_Lot is 5 *
3.115 = 15.575.
On 8/31 the
Equity is 1,000,000 and the Heat (for the entire run) is 10% so the
Risk_Budget is 10% of 1,000,000 or $100,000.
Position_Size, then, is 100,000 / 15.575 = 6420.545+ and rounding
to the nearest 250, we get 6500 units.
To see another
run, with different test parameters, visit 325/85
. Notice the 325/85 winds up with about 13.6 times the original
stake whereas the 150/15 winds up with about 3.3 times the original
stake. Optimization is the process of finding the best set of
hunt-and-peck approach to optimization is to tinker around with your
parameter values to see how they effect the test results. You might
notice that the skid factor makes a big difference for systems that
trade frequently. You might also notice that you make the most
money with a slow system with a high heat and low ATR multiplier,
although this configuration also delivers very large drawdowns.
In the case of
very-high-heat / high-drawdown systems, the testing software also needs
to recognize other limits, such as margin calls, and stomach calls.
steamroller approach to optimization is to try every combination of
parameters. This is generally impractical. A ten-parameter system,
with 20 values of each parameter would require 2010
runs. One run for a complex system on a multiple instrument
portfolio might take several minutes.
A synthesis of
hunt-and-peck, steamroller and thinking about the results is likely the
Spread Sheet Showing Bliss Function
Slow Lag and Fast Lag
Color Indicates Higher Bliss
Slow Lag (Left:30; Right:530)
Fast Lag (Top:15; Bottom:285)
Upper Left Corner
the home of dysfunctional short-term systems
Lower Left Region
systems where the short-term lag
longer than the long-term lag.
Good Values: Slow=330; Fast=90
More on how to automate optimizations, how to include longs and shorts,
and how to handle multiple instruments.