[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Complete AFL Code for %K Trading System from 'Active Trader' Mag



PureBytes Links

Trading Reference Links

Dickie, I get a 41% drawdown testing from 1/1/2000 -
8/12/2005 , not the 6% you mention.

--- Dickie Paria <babui@xxxxxxxxx> wrote:

> Was leafing through the latest 'Active Trader' mag
> at a newsstand and 
> came across the %K trading system which seems pretty
> robust.  The 
> theory behind the system is simple.  The StochK
> indicator is a very 
> popular indicator used by many traders.  The traders
> wait till it is 
> oversold (under 5) and then jump in to buy. 
> Different traders have 
> different timeframes.  So, the technique
> 'piggybacks' on this 
> inclination.  It takes the StochK for various
> periods and
> Buys = when all the StochK's are under 5
> Sells = the next day at the open
> Active Trader tests the system on its 'standard'
> stock portfolio 
> which is 18 large cap stocks like Apple, Caterpillar
> etc over a 10 yr 
> (I think) period.  The system is in the market about
> 10% of the time 
> and has a very steady equity curve growth.  Annual %
> profit is 11.5% 
> with no margin.  If cash is invested in the money
> mkt at other times, 
> then total annual profit is greater buy and hold. 
> Drawdown is (if I 
> remember correctly) only 6%.  Only 25% was risked at
> any one time (I 
> think) and Active Trader took about $8 or $9 as
> commission.
> Overall - they say that it is very robust
> system.....
> 
> Here's the code
> ***************************
> 
> /* %K Trading System as written in Active Trader
> ** Sept 2005
> ** Coded by Dickie Paria for AB Group Discussion, 
> */
> 
> 
> Cond1 = StochK (10);
> Cond2 = StochK (15);
> Cond3 = StochK (20);
> Cond4 = StochK (25);
> Cond5 = StochK (30);
> 
> Plot( Cond1 , "StochK10", colorRed, styleThick );
> Plot( Cond2 , "StochK15", colorGreen, styleThick );
> Plot( Cond3 , "StochK20", colorBlack, styleThick );
> Plot( Cond4 , "StochK25", colorYellow, styleThick );
> Plot( Cond5 , "StochK30", colorBrightGreen,
> styleThick );
> 
> Plot (5,"",colorBlue,styleNoLabel);
> 
> 
> Buy = (Cond1 AND Cond2 AND Cond3 AND Cond4 AND
> Cond5) < 5;
> Sell = 0;
> SellPrice = Open;
> ApplyStop(3,1,1);
> 
> Capital = 100000; /* IMPORTANT: Set it also in the
> Settings: Initial 
> Equity */
> PositionSize = -25;
> 
> 
> 
> 



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hoi91m5/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124064645/A=2894350/R=0/SIG=10tj5mr8v/*http://www.globalgiving.com";>Make a difference. Find and fund world-changing projects at GlobalGiving</a>.</font>
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/