Dax adaptable strategy Breackout/Mean reversion
Forums › ProRealTime English forum › ProOrder support › Dax adaptable strategy Breackout/Mean reversion
- This topic has 82 replies, 13 voices, and was last updated 3 years ago by xburrex.
-
-
05/03/2017 at 9:34 PM #3447905/03/2017 at 9:40 PM #34480
Hi Cosmic, unfortunately I did not take note of the optimized variables of the wf test and it took few hours to run it. Im going to check again but Im travelling until tuesday. Maybe I could work on it tomorrow afternoon.
Regards
Francesco
05/03/2017 at 10:33 PM #34485No worries. You can drag those results to an excel spreadsheet. It does not drag the variables used though. You have to input those manually to Excel for each OOS sample. Just hover over the x with your mouse.
Also best to take a screen shot of your optimise window so you know what you were optimising and the min and max variables you were using for them.
I tend to run 1 pass at 70/30 to begin with especially for the bigger time frames / limited amount of trades.
05/06/2017 at 8:05 AM #34666Hi,
very interesting strategy. Please can you indicate the latest version, with the indication of the best TF, in order to try to develope it in other instruments ?
Thanks
05/06/2017 at 12:51 PM #34695Hi Emanuele,
thank you for your interests in the strategy.
Sure, I attach the latest 2 version on the DAX. TIme frame 1hr and 30 mins.
I have added stoplosses and profit taking, that are optimized on the basis of a multiplier to the ATR.
Would be extremely good to know if the strategy could work on other instruments, I had a look to EUR/USD with nice results, FTSE100 and CAC40 too might be promising .
Regards
1 user thanked author for this post.
05/06/2017 at 3:56 PM #34715Grazie Francesco,
testero’ la strategia e provero’ su altri strumenti. Sono italiano rispondo solo questa volta in italiano e seguiranno commenti in inglese a supporto di tutti.
Grazie
05/06/2017 at 5:26 PM #34720Grazie a te! Speriamo che esca fuori qualcosa di interessante!
05/08/2017 at 1:03 PM #34817hi,
You also have a version without seasonality. I wanted to make tests with only one contract and then evaluate the introduction of seasonality or something else. If you do not have the season-free version I can change it. Thank you
05/08/2017 at 9:26 PM #34871There you go. I dont know if the optimizaiton works well also for the case with fixed sizes. Regards
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586// dax - IG MARKETS// TIME FRAME 30min// SPREAD 1.0 PIPSDEFPARAM CumulateOrders = False//DEFPARAM FLATBEFORE = 090000//DEFPARAM FLATAFTER = 210000timestart = 080000timeend = 200000timeenterbefore = time <= timeendtimeenterafter = time >= timestart//highvolume = average[30](volume)<=volume////lowvolume = average[30](volume)>=volumeadxperiod = 15atrperiod = 17indicator1 = adx[adxperiod]atr = AverageTrueRange[atrperiod]//exitafternbars = 1//// OPTIMIZED VARIABLES/////k = 8y = 5adxval = 20atrmin = 19m = 3 // high vol coefficient for mean reversionn = 2 //high vol coefficient for brekoutm1 = m-1 // low vol coefficient for mean reversionn1 = n// low vol coefficient for breakoutpr = k*atrpl = y *atr///////////////////////////////////////positionlong = 1//define sixe of long tradespositionshort = 1// define size of short trade//a=5lowvolenvironment = atr<atrmin //define lowvol environment use m1 and n1 as coefficient of movementhighvolenvironment = atr> atrmin //define highvol environment use m and n as coefficient of movementmeanrevertingenv = indicator1< adxval //define meanreverting environmenttrendenv = indicator1 > adxval// define trendy environment//////description of the possible combinationssellhighvolmeanreverting = abs(open-close) > (atr*m) and close > open and meanrevertingenv and highvolenvironmentbuyhighvolmeanreverting = abs(open-close) > (atr*m) and close < open and meanrevertingenv and highvolenvironmentbuyhighvoltrendy = abs(open-close) > (atr*n) and close > open and close> DOPEN(1) and trendenv and highvolenvironmentsellhighvoltrendy = abs(open-close) > (atr*n) and close < open and close< DOPEN(1) and trendenv and highvolenvironmentselllowvolmeanreverting = abs(open-close) > (atr*m1) and close > open and meanrevertingenv and lowvolenvironmentbuylowvolmeanreverting = abs(open-close) > (atr*m1) and close < open and meanrevertingenv and lowvolenvironmentbuylowvoltrendy = abs(open-close) > (atr*n1) and close > open and trendenv and lowvolenvironmentselllowvoltrendy = abs(open-close) > (atr*n1) and close < open and trendenv and lowvolenvironment//////////////////////////////////////////////////////////longIF (buyhighvolmeanreverting or buyhighvoltrendy or buylowvolmeanreverting or buylowvoltrendy ) and timeenterbefore and timeenterafter THENbuy positionlong CONTRACTS AT MARKETENDIFif longonmarket and time = timeend thensell at marketendif// shortIF (sellhighvolmeanreverting or sellhighvoltrendy or selllowvolmeanreverting or selllowvoltrendy) and timeenterbefore and timeenterafter THENsellshort positionshort CONTRACTS AT MARKETendifif shortonmarket and time = timeend thenexitshort at marketendifset target pprofit prset stop ploss pl05/11/2017 at 2:30 PM #35213This is such a great strategy, I have been running it for a while now and I really like the look of it.
It is really interesting because it takes one direction in the morning, and when that is in profit it somehow reverses the position the otherway and takes profit in that direction too.
Has anyone tried optimising it for other indices like FTSE or DOW? I am currently at work at the moment but when I get home I will see what results I can get on those.
Once again great work @Francesco78 !!
2 users thanked author for this post.
05/11/2017 at 2:54 PM #35220Thank you kg6450! 🙂
Out of curiosity, have you run any of the version in real account?
Best
Francesco
1 user thanked author for this post.
05/12/2017 at 8:01 PM #3535805/12/2017 at 8:10 PM #35359Thanks a lot Nicolas,that’s very kind of you.
Regards
Francesco
05/13/2017 at 1:48 PM #35412I made cleanup in the code for my understanding. Just launched a walk forward optimisation through 200k bars on the variables that should be adjusted overtime IMO. So your assumption about mean reverting, for a long order for instance, is : a low volatility (ATR) + no trend (with ADX criteria) and the actual candlestick is bearish?
05/13/2017 at 2:57 PM #35428Salut Nicolas, thanks a lot for your support.
Yes that is correct . But to be precise, I have define two vols scenarios. In both case the strategy is the same ( mean reverting or breakout depending on the adx) but in the 2 cases the condition to enter into a trade differs in the sense that the multiplier are differents. M and N in case of high vol and m1 and n1 in case of low vol.
I hope I calrified.
Regards
Francesco
-
AuthorPosts
Find exclusive trading pro-tools on