Hang seng trend following strategy with volatility filter H1 Time zone : UK
Forums › ProRealTime English forum › ProOrder support › Hang seng trend following strategy with volatility filter H1 Time zone : UK
- This topic has 12 replies, 4 voices, and was last updated 5 years ago by Nicolas.
-
-
01/14/2019 at 11:25 AM #8846912345678910111213141516171819202122232425defparam cumulateorders = falseperiodrsi = 8periodatr = 16a = 30b = 0.15timeok = time>20000 and time<120000oscillator = rsi[periodrsi](close)volindic = (averagetruerange[periodatr](close)/close)*100oversold = oscillator<a and volindic>b and timeokoverbought =oscillator>100-a and volindic>b and timeokif oversold thensellshort 1 contract at marketendifif overbought thenbuy 1 contract at marketendifset target pprofit 200set stop ploss 15001/14/2019 at 11:39 AM #88541
Hi Francesco, I always appreciate your submissions. Thank you very much. In the case of that strategy I must say that I’m a bit perplex about the overfitting of settings due to optimization. Sorry to sound a little annoying, but why don’t you optimize at least with a single OOS period, to validate the settings? Or maybe you already did it? Have a good day 😉
01/14/2019 at 11:41 AM #88545Hi Nicolas, sure I will post walk forward results ASAP.
Warm regards
Francesco
01/14/2019 at 12:01 PM #88549What do you think about the other 2 strategies ( dax and audcad) I do not see them pending anymore.
Thank you
Francesco
01/14/2019 at 12:16 PM #88550pls find attached the results
01/14/2019 at 12:27 PM #8855601/14/2019 at 12:35 PM #88557Ok I see, I will post WF for the other 2 as well.
No the settings are different, In the code you see the sets optimezed for the whole period, if you prefer the code with settings as per walk forward then :
12345678910111213141516171819202122232425defparam cumulateorders = falseperiodrsi = 7periodatr = 10a = 40b = 0.1timeok = time>20000 and time<120000oscillator = rsi[periodrsi](close)volindic = (averagetruerange[periodatr](close)/close)*100oversold = oscillator<a and volindic>b and timeokoverbought =oscillator>100-a and volindic>b and timeokif oversold thensellshort 1 contract at marketendifif overbought thenbuy 1 contract at marketendifset target pprofit 150set stop ploss 1501 user thanked author for this post.
01/14/2019 at 6:09 PM #8859301/14/2019 at 6:57 PM #88601Francesco78 – please try to remember to use the ‘Insert PRT Code’ button. I tidied things up for you! 🙂
1 user thanked author for this post.
01/14/2019 at 7:13 PM #88603Thank you Vonasi, sorry about that.
01/16/2019 at 1:20 AM #8873101/16/2019 at 10:47 AM #88755Hi, you can use 10 as spread
01/16/2019 at 1:45 PM #88799Strategy is now in the library: Hang seng automatic trend following strategy with volatility filter
1 user thanked author for this post.
-
AuthorPosts