strategy BarHunter DAX v1p
Forums › ProRealTime English forum › ProOrder support › strategy BarHunter DAX v1p
- This topic has 255 replies, 11 voices, and was last updated 1 year ago by sfl.
-
-
01/15/2020 at 6:33 PM #116911
Hi Folks!
Here’s a new strategy BarHunter v1p, which searches for the best intradaybar on any timeframe and enter on a defined break.
The goal is many trades on higher timeframes. It had to work with 1% stoploss and a trailing stop.
Then if there is a reasonable good equity-curve with minimal curve-fitting it’s possible to enable & optimise trend-detection and perhaps limit the hour of entry.
Happy Hunting!
01/15/2020 at 7:03 PM #11691701/15/2020 at 7:13 PM #11691801/15/2020 at 8:27 PM #116924Ok i made a very fast test, and i noticed that on nikkei 225 that’s a percentage of gain similar to the dax (89.36%) but with a gain loss ratio much more lower.
Do you think could be worth trying to optimize on nikkei? Not because I’m saying your code isn’t good, but in order to diversify assets 😀
01/15/2020 at 9:05 PM #116927Ofcourse! Other markets is my next step.Take care of the spread and I would optimise between 15-min – 1 hour timeframe. That should go quick, not many bars in a day. That with tds off.
But it’s always the details! The trailingstop is suited for the dax, but maybe not for the nikkei or s&p or forex.
So you have to turn on the graph of the trailing stop and need to see that it kick’s in.
i.e. for forex use
1atrtrail=averagetruerange[atrtrailingperiod]((close/1)*pipsize)dax
1atrtrail=averagetruerange[atrtrailingperiod]((close/10)*pipsize)/1000s&p is different too.
1 user thanked author for this post.
01/16/2020 at 1:53 AM #11694601/16/2020 at 2:05 AM #11694801/16/2020 at 7:29 AM #11695001/16/2020 at 7:30 AM #11695201/16/2020 at 7:55 AM #11695601/16/2020 at 10:24 AM #11696901/16/2020 at 12:22 PM #11697801/16/2020 at 4:17 PM #116998In theory it should be possible I guess to make 100k bars of 15 min the same as 25k bars of 1 hour. (without atr but with % profit target)
12345678910if longtrading or (longtrading and shorttrading) thenif intradaybarindex=barnumberlong thenbreakvaluelong=highest[4](high) //experiment!endifendifif shorttrading or (longtrading and shorttrading) thenif intradaybarindex=barnumbershort thenbreakvalueshort=lowest[4](low) //experiment!endifendifLines are the same on both timeframes.
And repeat the entry to check four bars with buy/sellshort on stop instead of one
If that’s the cause it would take a bit the worry away from only 2500 bars.
@Francesco The South Africa version
1 user thanked author for this post.
01/16/2020 at 5:41 PM #117005Don’t you think a backtest beyond 5 years is useless?
Far from useless as Mauro’s 200k back test shows us. Basically the strategy is a fit to a certain amount of data and it goes sideways before that and virtually sideways on recent data. The probability of it performing well going forward is unlikely.
1 user thanked author for this post.
01/16/2020 at 6:31 PM #117008@Vonasi you’re right. If a certain hour was suitable for a certain period, it could be shifted. Perhaps a quick forward test with many OOS data with would make it clear.
In any case this posted pic above is the opposite of my other strategy 1 hour TF to show your point,
-
AuthorPosts
Find exclusive trading pro-tools on