Welcome to the Traders Laboratory Forums.
Automated Trading Black box systems, strategy automation, algorithmic trading, etc...

Reply
Old 06-16-2008, 09:52 PM   #1

swansjr's Avatar

Join Date: Oct 2007
Location: Gurnee, IL
Posts: 282
Ignore this user

Thanks: 86
Thanked 132 Times in 69 Posts

Up Key Reversal Breakout Strategy (EasyLanguage) for YM

In an attempt to get more activity on this “Automated Trading” forum I’m posting a little strategy that I found in a PDF on strategy design. Unfortunately, I don’t have the original PDF or the author’s name at this time. Anyway, the set-up is centered on up-key-reversals (UKR). A UKR is where the most recent daily price bar is 1) making new low over the past X days and 2) the close is greater than the previous day. A buy limit order is then placed just above the daily high of the trigger bar. The position is exited either when a profit target is hit or X days after the initial purchase.

I coded this concept in EasyLanguage under tradestation up and you’ll find it below. I only tested it for YM since that's all I trade at this time. I only tested it for the past 3.5 years. It shows a positive results with a Profit Factor of 3.3. I hope others will find this interesting and perhaps propose improvements. I'm eager to see what others may modify.

You’ll notice one of the inputs is to activate a fix ratio position-sizing algorithm. I put this into the code so you can easily see what a position-sizing algorithm can do to a trading system.

Oh, do I personally trade this system? Not at this time.

Jeff
Attached Thumbnails
Up Key Reversal Breakout Strategy (EasyLanguage) for YM-ukr_1.jpg  
Attached Files
File Type: eld UKR_BREAKOUT.ELD (3.5 KB, 177 views)
swansjr is offline  
Reply With Quote
The Following User Says Thank You to swansjr For This Useful Post:
Old 09-02-2008, 08:57 AM   #2

Join Date: Jan 2008
Location: Michigan
Posts: 7
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM

Interesting strategy........wondering if you have looked at it in a shorter timeframe such as a 2 or 5 minute chart?
dede is offline  
Reply With Quote
Old 09-02-2008, 09:07 AM   #3

swansjr's Avatar

Join Date: Oct 2007
Location: Gurnee, IL
Posts: 282
Ignore this user

Thanks: 86
Thanked 132 Times in 69 Posts

Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM

Nope. I've not looked at shorter or longer time frames. I should make a point to test it out sometime in the future.

Jeff
swansjr is offline  
Reply With Quote
Old 09-02-2008, 09:55 AM   #4
forsearch

Status: Guest
Posts: n/a
Ignore this user


Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM

Quote:
Originally Posted by swansjr »
. I put this into the code so you can easily see what a position-sizing algorithm can do to a trading system.
Could you, or any forum members, post a copy of this .eld here in PLAINTEXT? Some of us don't have access to TS or MC to decompile the code, but might find it useful to look at it anyway.

Thanks.
 
Reply With Quote
Old 09-02-2008, 11:10 AM   #5

daedalus's Avatar

Join Date: Jul 2007
Location: Omaha, NE
Posts: 627
Ignore this user

Thanks: 431
Thanked 551 Times in 228 Posts

Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM

Wonder how hard it would be to make it so the system could sell as well as buy...

Interesting system though. If you used it into some kind of defined trend it could do well... You just don't want it buying every down surge as it has been doing in this recent bear market.

And the 2k max stop out stuff kills the results... I wonder how big of a drawdown is really necessary because that can really kill the results.
daedalus is offline  
Reply With Quote
Old 09-02-2008, 11:41 AM   #6

Join Date: Nov 2006
Location: N/A
Posts: 612
Ignore this user

Thanks: 62
Thanked 294 Times in 177 Posts

Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM

Quote:
Originally Posted by forsearch »
Could you, or any forum members, post a copy of this .eld here in PLAINTEXT? Some of us don't have access to TS or MC to decompile the code, but might find it useful to look at it anyway.

Thanks.

Code:
{ UKR Breakout }

Input:
   ProfitFactor( 9 {0 = no target}),
   StopLossInDollars( 2000 { 0 = no stop}),
   BreakoutAmount( 10 {Purchase limit order at high+breakoutamount in points}),
   LL( 11 {Look back period for the lowest low }),
   BSI( 5 {Bars Since Entry - when to exit trade}),
   UseFixedRatio( false {Enable/Disable fixed ratio position sizing});

Variables:
   ATR(0),
   TotalContracts( 0 ),
   TotalProfit( 0 );


Condition1 = Low < Lowest( Low, LL )[1];
Condition2 = Close > Close[1];

If ( Currentbar > 1 ) And ( marketposition = 0 ) And ( Condition1 ) And ( Condition2 ) Then Begin

   // Ryan Jones Fixed-Ratio Position Sizing
   If ( UseFixedRatio ) And ( NetProfit > 0 ) Then
      TotalContracts = IntPortion( 1 + SquareRoot(1 + 8 * NetProfit/4000) * .5 )
   Else
      TotalContracts = 1;

   Buy TotalContracts contracts next bar at (High+BreakoutAmount) limit;
   ATR = AvgTrueRange(LL);

End;

If ( BarsSinceEntry(0) = BSI) Then sell("expiration") next bar at market;

If ( StopLossInDollars > 0 ) Then SetStopLoss( StopLossInDollars );
If ( ProfitFactor > 0 ) Then SetProfitTarget( ATR*ProfitFactor );
sevensa is offline  
Reply With Quote
The Following 3 Users Say Thank You to sevensa For This Useful Post:
PointHarvester (09-11-2009), Tams (09-09-2009)
Old 09-02-2008, 02:04 PM   #7

swansjr's Avatar

Join Date: Oct 2007
Location: Gurnee, IL
Posts: 282
Ignore this user

Thanks: 86
Thanked 132 Times in 69 Posts

Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM

Quote:
Originally Posted by daedalus »
If you used it into some kind of defined trend it could do well... You just don't want it buying every down surge as it has been doing in this recent bear market.
I was thinking the same thing. Maybe a 200 SMA could act as a filter. Only take trades when price is above. Or if slope of 200 SMA is positive.

I would like to spend some time exploring this but I've been too busy.


Jeff
swansjr is offline  
Reply With Quote
Old 11-25-2008, 11:39 AM   #8

Join Date: Apr 2007
Location: Ffm
Posts: 10
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM

Hello Swansjr,

thank you for the strategy.
Did you tried it intraday too and also with other futures like ES or NQ?

Thx + good luck,

Goody
goody01 is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Morning Reversal Setup Soultrader Trading Videos 2 08-25-2011 08:07 AM
How do you determine a breakout from a false breakout? Blaze Technical Analysis 45 01-16-2009 10:23 AM
The 2 bar reversal TinGull Technical Analysis 16 10-13-2007 05:36 PM
Morning Reversal Strategy Chart Soultrader Day Trading and Scalping 8 05-17-2007 02:13 AM
POP & Reversal Setup Soultrader Technical Analysis 4 04-01-2007 11:31 PM

All times are GMT -4. The time now is 05:35 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.