Dax intraday scalping strategy
Forums › ProRealTime English forum › ProOrder support › Dax intraday scalping strategy
- This topic has 17 replies, 11 voices, and was last updated 4 years ago by deletedaccount051022.
-
-
02/13/2017 at 10:48 AM #24941
Hello fellow traders,
I have been monitoring this wonderful site for nearly one year now, admired the work of a number of experienced and creative minds.
I would now like to share a piece of code with out that my wife, Dominique, and I have developed.
We have tried the code live since January 6th on te DAX 1 minute and it has generated 260 Euros with a DAX mini 1 Euro CFD system, trading long only. I admit that I have aborted two trades going the wrong way manually.
The code relies on the crossing of linear regression lines, augmented with a factor a or b to define the steepness or angle of the crossing (the steeper, the more bullish),
combined with RSI and the Schaff Trend Cycle Index. We have also tried other indices for trent, such as the TDI, the ‘Bluster DAX’ and a lot of others, but the Schaff Trend Cycle Index in our opinion performs best.The code is designed to take whatever profit as soon as it get’s later than 17.45, provided that we are making any profit. This is to avoid higher spreads. This codes has been tested using a spread of 0,8, which is normal DAX spread during the office hours. We specifically don’t want to go overnight, although it as happened.
All parameters have been optimized for the last 6 weeks, which have been rather annoying, given the horizontal progression of the DAX, but that’s life.
We also have a ‘short’ version of this code, but it doesn’t work as good.
We have also tried to combine our entry with CTFA’s grid trading and money managing strategy (congratulations on this one, by the way), but we have found that a simple take profit and stop loss renders the most profit. Perhaps you can do it.
So, here it is. We hope that you will be able to improve this code and -who knows- combine with an efficient short version and/or money management strategy.
Greetings from the ‘hell hole’ Belgium. “It’s tremendous”. Time zone is GMT +1
Glen
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556//-------------------------------------------------------------------------// Main code : DAX DOMI LONG 03/02/2017//-------------------------------------------------------------------------DEFPARAM CumulateOrders = true// Definition of indicatorspurple = LinearRegression[7](close)blue = LinearRegression[10](close)yellow = LinearRegression[40] (close)a = 1b = 0indicator1 = RSI[31](close)indicator2 = time// Schaff Trend CycleMCD = WilderAverage[20] - WilderAverage[50]ST =( MCD-LOWEST[3] (MCD) )/(HIGHEST[3] (MCD)-LOWEST[3] (MCD) )*100STC = WilderAverage [round(3/2)] (ST)// Conditions to enter long positionsc1 = (purple > (blue + a))c2 = (close > (blue + b))c3 = (close > close[1])c4 = (blue > blue[5])c5 = CountOfPosition <=3c6 = (indicator1 < 70)c7 = (indicator1 > 49)c8 = (indicator2 > 080000)c9 = (indicator2 < 161500)c10 = STC > 27c11= STC > STC [5]IF c1 AND c2 AND c3 AND c4 AND c5 AND c6 AND c7 AND c8 AND c9 AND c10 AND c11 THENBUY 1 CONTRACT AT MARKETENDIFIF LONGONMARKET AND (time > 174500) AND (PositionPerf > 0) THENSELL AT MARKETENDIFIF LONGONMARKET AND (yellow > (purple + 20)) THENSELL AT MARKETENDIF// Stops and targetsSET TARGET pPROFIT 25SET STOP pLOSS 1351 user thanked author for this post.
02/13/2017 at 11:01 AM #24944Hello Glen and Dominique !
I know well Belgium, and living there is not like living in an “hellhole” 🙂
You are right, it’s been almost a year since the website has been launched! We’ll celebrate our first year the 1st of March.
I preferred moving your post from the library to the forum first, to discuss a bit about what have been optimized and what were the past performance. I think other fellow members will participate and I encourage them to do so.02/26/2017 at 5:07 PM #26433hello
nice code… I am looking for dax short code. The market is so high at the moment that I prefer shorting dax or dow jones to be honest.
Main indicator that I like it is rsi pivot and macd.
02/26/2017 at 5:29 PM #2643702/26/2017 at 10:59 PM #2646802/26/2017 at 11:05 PM #26469Didnt perform any trades at the moment. I am looking for algo code with low loss.
02/26/2017 at 11:05 PM #26470Hello gforton,
thank you for sharing your code.
If you have been trading this strategy since new year and the variables are optimized for the last weeks have you “reoptimized” before posting or have the last six weeks been a out-of-sample testing period?
05/08/2017 at 1:01 PM #3481605/08/2017 at 7:56 PM #34856This looks promising, but needs to work in short mode also in my opinion?
Alternatively the Long code attached could be improved as it loses in down periods.
I have optimised as below and got results attached.
Please might somebody be able to improve the Long Code and / or add Go Shorts?
Many Thanks
GraHal1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556///-------------------------------------------------------------------------// Main code : DAX DOMI LONG 03/02/2017//-------------------------------------------------------------------------DEFPARAM CumulateOrders = false// Definition of indicatorspurple = LinearRegression[6](close)//7blue = LinearRegression[8](close)//10yellow = LinearRegression[40] (close)//40a = 1b = 0indicator1 = RSI[35](close)indicator2 = time// Schaff Trend CycleMCD = WilderAverage[20] - WilderAverage[50]ST =( MCD-LOWEST[3] (MCD) )/(HIGHEST[3] (MCD)-LOWEST[3] (MCD) )*100STC = WilderAverage [round(3/2)] (ST)// Conditions to enter long positionsc1 = (purple > (blue + a))c2 = (close > (blue + b))c3 = (close > close[1])c4 = (blue > blue[5])c5 = CountOfPosition <=3c6 = (indicator1 < 70)c7 = (indicator1 > 49)//49c8 = (indicator2 > 082000)c9 = (indicator2 < 163000)c10 = STC > 6//27c11= STC > STC [5]IF c1 AND c2 AND c3 AND c4 AND c5 AND c6 AND c7 AND c8 AND c9 AND c10 AND c11 THENBUY 1 CONTRACT AT MARKETENDIF//IF LONGONMARKET AND (time > 194000) AND (PositionPerf > 0) THENSELL AT MARKETENDIFIF LONGONMARKET AND (yellow > (purple + 19)) THENSELL AT MARKETENDIF// Stops and targetsSET TARGET pPROFIT 31SET STOP pLOSS 7205/08/2017 at 8:22 PM #34860As agreed on another Thread we need to state Times to a standard … times in above code is UTC +1.
UTC / Universal Time Clock is not a timezone it is a ‘time standard’ and it’s best if we all state what our times are in our codes in UTC mode.
(UTC is not an abbreviation for Universal Time Clock but it is the easiest way to to remember! 🙂
GraHal
09/21/2017 at 5:19 PM #4684809/21/2017 at 5:30 PM #4685310/25/2017 at 12:04 PM #5046806/10/2020 at 4:16 PM #135462Hi gforton,
I too trade DAX Index and the constituent stocks and really liked your strategy. After having run some extensive back testing I started running your strategy on a live trading account, albeit with a small amount of risk capital. Provided the DAX on a daily basis is in an uptrend the performance if very good.
I was just wondering if you had been using this of late or worked on enhancing it? Would be interested to swap ideas.
Best regards,
S
06/10/2020 at 8:50 PM #135506Attached is a quick re-working of this for DAX 2min.
It is a disaster. Has the distinction of perhaps the highest annual profit and worst robustness score I’ve yet to see. Possibly the most curve fit thing since Beyonce went shopping.
Still, the basic code seems interesting and this could be a starting point if someone else wants to take it on.
-
AuthorPosts
Find exclusive trading pro-tools on