- 精华
- 0
- 在线时间
- 133 小时
- UID
- 2659
- 积分
- 6468
- 帖子
- 459
- 阅读权限
- 100
- 注册时间
- 2008-10-26
- 最后登录
- 2009-4-7
- 精华
- 0
- UID
- 2659
- 积分
- 6468
- 帖子
- 459
- 主题
- 209
- 阅读权限
- 100
- 注册时间
- 2008-10-26
- 最后登录
- 2009-4-7
|
King Keltner Pseudocode
movAvg = Average(((High + Low + Close)/3),40)
upBand = movAvg + Average(TrueRange,40)
dnBand = movAvg – Average(TrueRange,40)
liquidPoint = Average(((High + Low + Close)/3),40)
A long position will be initiated when today's movAvg is greater than
yesterday's and market action >= upBand
A short position will be initiated when today's movAvg is less than
yesterday's and market action <= dnBand
A long position will be liquidated when today's market action
<= liquidPoint
A short position will be liquidated when today's market action
>= liquidPoint
King Keltner Program
{King Keltner by George Pruitt—based on trading system presented by Chester
Keltner}
Inputs: avgLength(40), atrLength(40);
Vars: upBand(0),dnBand(0),liquidPoint(0),movAvgVal(0);
movAvgVal = Average((High + Low + Close),avgLength);
upBand = movAvgVal + AvgTrueRange(atrLength);
dnBand = movAvgVal – AvgTrueRange(atrLength);
if(movAvgVal > movAvgVal[1]) then Buy ("KKBuy") tomorrow at upBand stop;
if(movAvgVal < movAvgVal[1]) then Sell Short("KKSell") tomorrow at dnBand
stop;
liquidPoint = movAvgVal;
112 Building Winning Trading Systems with TradeStation
If(MarketPosition = 1) then Sell tomorrow at liquidPoint stop;
If(MarketPosition = –1) then Buy To Cover tomorrow at liquidPoint stop;
凯特王系统程序测试
调用均线和平均真实排列函数
买/卖在下一个K线在停损水平
清算头寸在下一个K线停损水平
结合输入系统平台并且优化将来
凯特王交易系统测试结果如表格,形象示例战士这个系统如何入场出场交易
Table 6.1
King Keltner Performance
System Name: King Keltner Commission/Slippage = $75
Tested 1982 – 3/19/2002
Total Net Max. # of Max. Cons.
Markets Profit DrawDown Trades % Wins Losers
British Pound $ 48,056.25 $ (51,962.50) 239 30.13% 25
Crude Oil $ 36,152.50 $ (17,682.50) 184 32.07% 16
Corn $ (612.50) $ (10,681.25) 251 22.71% 14
Copper $ 5,180.00 $ (12,182.50) 149 33.56% 10
Cotton $ 30,387.50 $ (26,997.50) 241 24.48% 15
Deutsch Mark $ 57,962.50 $ (11,575.00) 208 33.17% 10
Euro Currency $ 2,612.50 $ (9,425.00) 36 38.89% 5
Euro Dollar $ 37,392.50 $ (6,130.00) 204 30.88% 21
Heating Oil $ 10,673.68 $ (25,697.71) 240 27.50% 12
Japanese Yen $ 114,175.00 $ (30,162.50) 215 31.16% 12
Live Cattle $ (3,036.50) $ (21,925.50) 243 24.28% 24
Natural Gas $ 100,577.50 $ (14,157.50) 119 37.82% 7
Soybeans $ (15,193.75) $ (34,818.75) 251 27.49% 15
Swiss Franc $ 56,962.50 $ (14,837.50) 220 32.27% 8
Treasury Note $ 61,850.00 $ (11,053.13) 209 33.01% 10
U.S. Bonds $ 66,275.00 $ (15,543.75) 215 28.84% 9
Wheat $ (16,112.50) $ (19,906.25) 254 22.83% 14
Total $ 593,302.18 3478 |
|