Strategy MAEX – experiment with MFE & MAE
Forums › ProRealTime English forum › ProOrder support › Strategy MAEX – experiment with MFE & MAE
- This topic has 82 replies, 14 voices, and was last updated 1 year ago by Meta Signals Pro.
-
-
10/26/2020 at 7:13 PM #148568
This strategy Maex (Maximum Excursion) tries to find a good opportunity to buy the lows.
So I experimented with MFE & MAE. I ‘ve some doubt if it’s programmed right, but it gives interesting results.
The algo is based on the dow 1 minute, no position overnight and a stoploss of 0.5%.
As basis, I wanted to minimise the optimisation of parameters sl/pt/ts/be and all are based in a rough ratio on the stoploss (except the atr trailingstop).
The goal is to improve on this preferably without changing the ratio’s but through new methods which could replace the current one or add to it.
8 users thanked author for this post.
10/27/2020 at 2:47 PM #148660Intersting! Maybe im wrong but i would write it :
12345678910111213141516171819202122232425maerec=0mferec=0maerec2=0mferec2=0for i=1 to nmaerec=maerec+(high[i]-open[i])mferec=mferec+(open[i]-low[i])nextfor j=1 to nnmaerec2=maerec2+(open[j]-low[j])mferec2=mferec2+(high[j]-open[j])nextaverecentmael=close-(maerec2/nn)averecentmfel=close+(mferec2/nn)avgl=(averecentmael+averecentmfel)/2averecentmaes=close+(maerec/n)averecentmfes=close-(mferec/n)avgs=(averecentmaes+averecentmfes)/2avgmfemaes=average[25](avgs)/2avgmfemael=average[25](avgl)/210/27/2020 at 3:07 PM #148664Yes your right and that’s the part I had doubts about! I did write it like above but then there too many signals and the strategy breaks. But looking where the signals come, it’s in general very good but needs more work.
I prefer it the way you wrote it, but how to make it better and outperform the way I wrote it?
10/27/2020 at 5:51 PM #14870511/12/2020 at 2:42 PM #150293Hi, just looking at this part of your breakeven code
1234567891011121314151617181920if besensitivity=1 thenbesensitivity=closebesensitivity=closeelsif besensitivity=2 thenbesensitivity=highbesensitivity=lowelsif besensitivity=3 thenbesensitivity=lowbesensitivity=highendifif longonmarket thenif besensitivity-positionprice>=((positionprice/100)*besg)*pointsize thenbenewsl=positionprice+((positionprice/100)*besl)*pointsizeendifendifif shortonmarket thenif positionprice-besensitivity>=((positionprice/100)*besg)*pointsize thenbenewsl=positionprice-((positionprice/100)*besl)*pointsizeendifendifshouldn’t it be ?
1234567891011121314151617181920if besensitivity=1 thenbesensitivitylong=closebesensitivityshort=closeelsif besensitivity=2 thenbesensitivitylong=highbesensitivityshort=lowelsif besensitivity=3 thenbesensitivitylong=lowbesensitivityshort=highendifif longonmarket thenif besensitivitylong-positionprice>=((positionprice/100)*besg)*pointsize thenbenewsl=positionprice+((positionprice/100)*besl)*pointsizeendifendifif shortonmarket thenif positionprice-besensitivityshort>=((positionprice/100)*besg)*pointsize thenbenewsl=positionprice-((positionprice/100)*besl)*pointsizeendifendif11/12/2020 at 3:09 PM #15030211/12/2020 at 3:24 PM #15030411/13/2020 at 10:04 AM #150358Your sensitivity options are such a great innovation for TS if you get it right.
2 seems to work best for scalping algos where you want to lock it up as quick as poss. 3 (or typicalprice) works better if you’re playing a longer game.
I want to have another look at this MAEX algo – could have potential. I know you wanted to keep everything related to the sl but I’m not entirely convinced. Freeing that up made an immediate improvement, but I’m sure you looked at that already.
Also think it could be suited to a longer TF – will try that over the weekend.
1 user thanked author for this post.
11/14/2020 at 10:57 AM #15046411/14/2020 at 2:15 PM #150475Looking foward to your tests nonetheless. I can’t find good ways to improve on this. Maybe define a bigger trend with hull average, i.e. weekly, and use that to buy in the trend the lows? It maybe works for selling the highs too. I will give it a try later.
11/14/2020 at 5:38 PM #15049811/14/2020 at 9:38 PM #15052111/14/2020 at 10:09 PM #15052511/14/2020 at 11:15 PM #150531Yeah the equitycurve is indeed better. I included it in the new version but removed vectorial for now, focussed on the 2 methods and added short.
For testing probably it’s best to use reenter=1 as that’s normally used.
If optimising for long or short, you can exit on opposite signal but not reversing.
The parameters aren’t optimised for any timeframe so it looks bad.
2 users thanked author for this post.
11/16/2020 at 1:23 AM #150585Here’s a version of the 1m long. My additions are optimized at 70/30
I also tried to rework your v3 on a 5m TF, it sort of worked but not so profitable
5 users thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on