| Automated Trading Black box systems, strategy automation, algorithmic trading, etc... |
![]() | | Tweet | |
| | #1 | ||
![]() | Up Key Reversal Breakout Strategy (EasyLanguage) for YM 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 | ||
| |
|
| The Following User Says Thank You to swansjr For This Useful Post: | ||
| | #2 | ||
![]() | Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM | ||
| |
|
| | #3 | ||
![]() | Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM Jeff | ||
| |
|
| | #4 | ||
![]() | Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM Quote:
Thanks. | ||
|
| | #5 | ||
![]() | Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM 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. | ||
| |
|
| | #6 | ||
![]() | Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM Quote:
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 ); | ||
| |
|
| The Following 3 Users Say Thank You to sevensa For This Useful Post: | ||
PointHarvester (09-11-2009), Tams (09-09-2009) | ||
| | #7 | ||
![]() | Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM Quote:
I would like to spend some time exploring this but I've been too busy. Jeff | ||
| |
|
| | #8 | ||
![]() | Re: Up Key Reversal Breakout Strategy (EasyLanguage) for YM thank you for the strategy. Did you tried it intraday too and also with other futures like ES or NQ? Thx + good luck, Goody | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | 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 |