defparam cumulateorders = false
periodrsi = 8
periodatr = 16
a = 30
b = 0.15
timeok = time>20000 and time<120000
oscillator = rsi[periodrsi](close)
volindic = (averagetruerange[periodatr](close)/close)*100
oversold = oscillator<a and volindic>b and timeok
overbought =oscillator>100-a and volindic>b and timeok
if oversold then
sellshort 1 contract at market
endif
if overbought then
buy 1 contract at market
endif
set target pprofit 200
set stop ploss 150
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 😉
Hi Nicolas, sure I will post walk forward results ASAP.
Warm regards
Francesco
What do you think about the other 2 strategies ( dax and audcad) I do not see them pending anymore.
Thank you
Francesco
pls find attached the results
The other two strategies are also in the forum because of the same question 🙂
You should always send a strategy with the WFA you made! This one seems good finally, do the settings in the code are the last one?
Ok 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 :
defparam cumulateorders = false
periodrsi = 7
periodatr = 10
a = 40
b = 0.1
timeok = time>20000 and time<120000
oscillator = rsi[periodrsi](close)
volindic = (averagetruerange[periodatr](close)/close)*100
oversold = oscillator<a and volindic>b and timeok
overbought =oscillator>100-a and volindic>b and timeok
if oversold then
sellshort 1 contract at market
endif
if overbought then
buy 1 contract at market
endif
set target pprofit 150
set stop ploss 150
Hi Nicolas,
@Nicolas
Any chance you will put this into the library?
Thank you
Francesco78 – please try to remember to use the ‘Insert PRT Code’ button. I tidied things up for you! 🙂
Thank you Vonasi, sorry about that.
Hi, you can use 10 as spread