MoneyMakerFX Algo
Forums › ProRealTime English forum › ProOrder support › MoneyMakerFX Algo
- This topic has 19 replies, 6 voices, and was last updated 5 years ago by
deletedaccount100622.
-
-
01/14/2020 at 3:56 PM #116787
Based on the idea here explained https://www.prorealcode.com/prorealtime-indicators/forex-entry-point-indicator-no-repaint/
Tested it on 15min timeframe from Aug.2019 till now (that’s the maximum that IGPRT allows to me) on different forex pairs. Here’s the best results of gain/loss ratio:
AUDCAD 1.11
AUDCHF 1.16
AUDEUR 1.37
AUDNZD 1.32
EURAUD 1.43
EURCAD 1.17
EURCHF 1.43
EURUSD 1.95
GBPJPY 1.19
GBPNOK 1.29
NZDCHF 1.40
NZDUSD 1.17
USDNOK 1.19I would like to ask you if it’s possible to do major tests on previous periods, and also if you have some suggestions to optimize it.
MoneyMakerFX123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354DEFPARAM CumulateOrders = false// Strategy BasicsONCE PeriodK = 21ONCE PeriodD = 12ONCE Smoothing = 14ONCE HighZone = 76ONCE LowZone = 24StochK = Stochastic[PeriodK,Smoothing](Close)StochD = SmoothedStochastic[PeriodD,Smoothing](Close)// LongIF StochK<StochD AND StochK[1]>StochD[1] AND StochK<LowZone AND StochK[1]<LowZone THENBUY 1 CONTRACT AT MARKETENDIF// ShortIF StochK>StochD AND StochK[1]<StochD[1] AND StochK>HighZone AND StochK[1]>HighZone THENSELLSHORT 1 CONTRACT AT MARKETENDIF// Stop and targetSET STOP pLOSS 30SET TARGET pPROFIT 80StartBreakeven = 15 // How much pips/points in gain to activate the Breakeven function?PointsToKeep = 5 // How much pips/points to keep in profit above of below our entry price when the Breakeven is activated (beware of spread)// Reset the BreakevenLevel when no trade are on marketIF NOT ONMARKET THENBreakevenLevel=0ENDIF// Test if the price have moved favourably of "startBreakeven" points alreadyIF LONGONMARKET AND close-tradeprice(1)>=startBreakeven*pipsize THEN//Calculate the BreakevenLevelBreakevenLevel = tradeprice(1)+PointsToKeep*pipsizeENDIF// Place the new stop orders on market at BreakevenLevelIF BreakevenLevel>0 THENSELL AT BreakevenLevel STOPENDIFIF SHORTONMARKET AND tradeprice(1)-close>startBreakeven*pipsize THEN//Calculate the BreakevenLevelBreakevenLevel = tradeprice(1)-PointsToKeep*pipsizeENDIF//Place the new stop orders on market at BreakevenLevelIF BreakevenLevel>0 THENEXITSHORT AT BreakevenLevel STOPENDIF01/14/2020 at 5:25 PM #11679301/14/2020 at 5:37 PM #11679401/14/2020 at 5:55 PM #11679701/14/2020 at 6:19 PM #116798I didn’t try any spread on all of it, and that could bring losses on the most part of the pairs.
I only tried EURUSD (which is the most performing) with a 2 point spread and the gain/loss ratio still mantain a very good 1.41.
So probably it could be used principally for that pair; also implementing a progressive money management automated system could generate a very nice profitable strategy IMHO!
01/14/2020 at 6:24 PM #116799also if you have some suggestions to optimize it.
There you go … attached with variable settings in the optimiser.
I’ve used large steps for the variables so it optimises quickly, but it appears to work good enough to become a habit! 🙂
Needs WF now.
Also if the downtrend ends and price turns up then it would need regularly re-optimising.
1 user thanked author for this post.
01/14/2020 at 6:29 PM #11680201/14/2020 at 6:34 PM #116804@GraHal
Seems to work pretty good also on 2 year timeframe! Thank you so much for the testing and the optimization!
Could you share the final code?I think that starting from that ratios withouth spread nothing will have profits except from EURUSD that as i said before brings good results anyway.
I will start to try on Demo today, do you think could be shared also on library?
01/14/2020 at 7:00 PM #11680701/14/2020 at 7:13 PM #116808Could you share the final code?
could you provide the last code with optimized parameters ?
Apologies … I did attach the .itf in my post above but must have attached an image over the top! 🙂
Anyway here is the code (Spread = 2)
1 user thanked author for this post.
01/14/2020 at 7:32 PM #11681101/14/2020 at 7:55 PM #11681401/14/2020 at 8:22 PM #116817Not good with 200k.
I do not have 200k so please can you optimise it over 200k bars and post results here please.
All the settings are there for you set up in the optimiser so it will be real easy and quick for you.
01/14/2020 at 10:46 PM #116823I do not have 200k so please can you optimise it over 200k bars and post results here please. All the settings are there for you set up in the optimiser so it will be real easy and quick for you.
You optimised on 100k bars and got a nice equity curve and then ALZ tested those optimised values on 200k bars and that is a great 100k in sample and 100k out of sample walk backwards! ALZ says it failed which should tell us all that it is over optimised/curve fitted. Optimising it on the entire 200k bars seems pretty pointless unless you have another 200k bars of out of sample data to compare that new in sample test to?
01/14/2020 at 11:17 PM #116828Not good with 200k..
Out of interest, please can you post a screen shot of the results over 200k bars?
-
AuthorPosts
Find exclusive trading pro-tools on