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.
-
-
11/16/2020 at 11:24 AM #15063611/16/2020 at 4:59 PM #150670
nice work Nonetheless! It’s very difficult to find good oos results. Also I like the size of the stoploss in comparison to the ts atr values used and the way you used the breakeven. It’s rewarding to see in the first day with a positive result!
v3 is not as refined but the intend was to swap indicators in/out and compare the two methods. I will work on it a bit more.
1 user thanked author for this post.
11/16/2020 at 5:55 PM #150672@nonetheless I included your setup in a clean v3 and results are interesting!
Didn’t optimise, it’s also setup for short & long
long & short together have improvement and doesn’t break the strategy which is often the case when optimised for long only!
long only & close on short signal improve equitycurve shape, drawdawn and average losses.
Now I will review how to speed up the code in calculation.
Sharing works because without sharing I doubt very much if I would ‘ve got such results!
4 users thanked author for this post.
11/16/2020 at 6:57 PM #150683Well yes, it is interesting, partly because in 6 months there is precisely 0 short trades … which can’t be right. (kind of explains why the 2 histograms you posted are almost identical!)
I think it might be the vectorial ??
11/16/2020 at 6:57 PM #15068511/16/2020 at 7:27 PM #150689when i change positionsize to 0.2
seems ok to me. which version are you running?
11/16/2020 at 7:39 PM #150690nonetheless, tradetype is set to 2 for long only?
closeonreversal is to close a long position if a short signal for entry appears, to close only but not to enter short.
There are a few other things, forgot to include mm, change the name to 1m etc.
0.2 seems fine with me too, on a 1m chart.
1 user thanked author for this post.
11/16/2020 at 7:55 PM #150691tradetype is set to 2 for long only?
Yes – sorry! my bad, didn’t notice you had added a long/short selector 🙄
11/16/2020 at 11:25 PM #15071411/16/2020 at 11:29 PM #150715here’s a refurb of the v3 Long/Short – looking good, at least for those 6 months! (2 oos)
Thanks for your great work on this, Paul.
One problem though is that it doesn’t seem to work with MM – not with my code or with another that I tried – completely peculiar results with either. Obviously some conflict but I can’t see what it is. Any idea?
2 users thanked author for this post.
11/16/2020 at 11:30 PM #150718changes from 70% hitrate and 3 G/L to 30% hitrate and 0.3 G/L ratio
check the CTime setting, you’re prob running on UK time
11/16/2020 at 11:35 PM #15071911/17/2020 at 12:11 AM #15072111/17/2020 at 12:20 AM #150725same with your latest version as well
ok, now I’m getting that as well, only just noticed. Probably connected to why the MM won’t work. I’ll have another look at it tomorrow…
1 user thanked author for this post.
11/17/2020 at 12:50 AM #150726Obviously some conflict but I can’t see what it is. Any idea?
Yes, countpos is not compatible with mm. Delete the part what defines the stoploss & profittarget and the row countpos=..
then replace the entrylines with this. (it only adds the set orders after each buy/sellshort command)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263// entryif ctime thenif tradetype=1 or tradetype=2 thenif condbuy and (not longonmarket or shortonmarket) thenbuy positionsize contract at marketset stop %loss sllset target %profit ptlendifif condbuy and longonmarket thenif reenter=1 thenpositionperformance=0elsif reenter=2 thenpositionperformance=1elsif reenter=3 thenpositionperformance=positionperf(0)<0elsif reenter=4 thenpositionperformance=positionperf(0)>0endifif positionperformance thenbuy positionsize contract at marketset stop %loss sllset target %profit ptlendifendifendifif closeonreversal and tradetype=2 and condsell thensell at marketendifif tradetype=1 or tradetype=3 thenif condsell and (not shortonmarket or longonmarket) thensellshort positionsize contract at marketset stop %loss slsset target %profit ptsendifif condsell and shortonmarket thenif reenter=1 thenpositionperformance=0elsif reenter=2 thenpositionperformance=1elsif reenter=3 thenpositionperformance=positionperf(0)<0elsif reenter=4 thenpositionperformance=positionperf(0)>0endifif positionperformance thensellshort positionsize contract at marketset stop %loss slsset target %profit ptsendifendifif closeonreversal and tradetype=3 and condbuy thenexitshort at marketendifendifelseif condbuy then//exitshort at marketendifif condsell then//sell at marketendifendif -
AuthorPosts
Find exclusive trading pro-tools on