Strategy DayOpen Straddle for DAX
Forums › ProRealTime English forum › ProOrder support › Strategy DayOpen Straddle for DAX
- This topic has 241 replies, 39 voices, and was last updated 3 years ago by Monobrow.
-
-
01/17/2020 at 12:43 PM #11706701/19/2020 at 5:55 PM #117216
As said before, the sort timeframe is a problem for an ideal future live implementation of the strategy.
So, i tried to make little fixes to the 1min code in order to fit in a 10min timeframe and have a larger backtest view.
Results are not the best, but could be a starting point.1 user thanked author for this post.
01/19/2020 at 8:25 PM #117246That timeframe is a lot better I think. What is a bit of issue with this strategy, is the way the entry is coded. The current way it is it checks first the long criteria, that’s why long has preference has the better results especially in a rising market.
If you swap in the code below the long & short the strategy breaks down, because then it checks short criteria first. It’s because “elsif”
12345678910111213if tradetime and tradeday thenif pclong and mclong thenorderpriceL=dayopen+((close/10000)*2)*pipsizebuy positionsize contract at orderpriceL stoplongtradecounter=longtradecounter + 1tradecounter=tradecounter+1elsif pcshort and mcshort thenorderpriceS=dayopen-((close/10000)*2)*pipsizesellshort positionsize contract at orderpriceS stopshorttradecounter=shorttradecounter + 1tradecounter=tradecounter+1endifendifor you could code it like this below, which is in essence better; Then long above short, or visa versa give the same results. But then again results go down.
1234567891011121314if tradetime and tradeday thenif pclong and mclong thenorderpriceL=dayopen+((close/10000)*2)*pipsizebuy positionsize contract at orderpriceL stoplongtradecounter=longtradecounter + 1tradecounter=tradecounter+1endifif pcshort and mcshort thenorderpriceS=dayopen-((close/10000)*2)*pipsizesellshort positionsize contract at orderpriceS stopshorttradecounter=shorttradecounter + 1tradecounter=tradecounter+1endifendifps on the strategy you posted. if you remove
123456if onmarket thenif time >= closetime or (currentdayofweek=5 and time>=closetimefr) thensell at marketexitshort at marketendifendif12once closetime = 240000 // greater then 23.59 means it continues position overnightonce closetimefr = 172900then results go up.
1 user thanked author for this post.
01/19/2020 at 8:48 PM #11724901/20/2020 at 6:43 PM #11734401/22/2020 at 9:41 AM #11749301/22/2020 at 4:36 PM #11753307/02/2020 at 12:35 PM #13807707/03/2020 at 12:40 AM #13819807/03/2020 at 9:01 AM #13821907/03/2020 at 9:25 AM #13822407/03/2020 at 11:00 AM #13824907/03/2020 at 11:22 AM #13825312/16/2020 at 1:40 PM #153972Hi, i am currently testing the V5.3 on my demo account. I have tried loading the D6p version and i get a warning message,
Optimization limit. Your back test exceeds the limit for repetitions for walk forward optimization.
backtest.limit.optimisation.occurence,teasing
How do i edit the variables ? No lines are highlighted in red as not working…
This looks like a great system by the way and i would really like to see it working for me.
Lastly , what world time zone does it work best in?
Many thanks
12/16/2020 at 1:52 PM #153978Open the optimization window, activate WF, reduce the number of repetitions, deactivate WF, close optimization window.
-
AuthorPosts
Find exclusive trading pro-tools on