Half a position (0.5) on DAX 10 minutes – MTF strategy
Forums › ProRealTime English forum › ProOrder support › Half a position (0.5) on DAX 10 minutes – MTF strategy
- This topic has 19 replies, 8 voices, and was last updated 3 years ago by eckaw.
-
-
01/15/2021 at 10:09 AM #157657
Import K1 and O1 into your indicators, and then run OKMoon. I hope you like it. Half a position (0.5) on DAX 10 minutes
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657DEFPARAM CumulateOrders = FalseDEFPARAM PreLoadBars = 2000DEFPARAM FLATBEFORE = 000000one = 1if intradaybarindex=0 thentwo = 0endifif onmarket and three<>tradeindex thentwo=two+1three=tradeindexendifTIMEFRAME (default)four = CALL "O1"TIMEFRAME (1 hour, updateonclose)IF Not OnMarket THENfive = 0ELSEfive = five + 1ENDIFsix = CALL "K1"TIMEFRAME (default)ONCE seven = 1IF IntraDayBarIndex = 0 THENseven = 1ENDIFeight = fiveIF Not OnMarket AND eight <> eight[1] THENseven = 1ENDIFIF six AND seven ANd two<one and four THENBUY 0.5 CONTRACT AT MARKETseven = 0ENDIFSET TARGET pPROFIT 400SET STOP pLOSS 170nine = 300ten = 240IF NOT ONMARKET THENeleven=0ENDIFIF LONGONMARKET AND close-tradeprice(1)>=nine*pipsize THENeleven = tradeprice(1)+ten*pipsizeENDIFIF eleven>0 THENSELL AT eleven STOPENDIFtwelve = 12fourteen = 2IF NOT ONMARKET THENfifteen=0ENDIFIF LONGONMARKET AND close-tradeprice(1)>=twelve*pipsize THENfifteen = tradeprice(1)+fourteen*pipsizeENDIFIF fifteen>0 THENSELL AT fifteen STOPENDIF01/15/2021 at 10:28 AM #157927You have attached protected files that can only be imported once and cannot be imported again.
Will you please attach unprotected files or post their code.
01/15/2021 at 10:37 AM #157931If, instead, you are posting it because you think it’s too good not to be sold, then please send a request to be registered on the upcoming Market Place at market@prorealcode.com.
This forum is made to learn, improve code and use it, if of some interest.
01/15/2021 at 10:53 AM #157934It´s not possible to include that indicators.
01/15/2021 at 11:23 AM #15793901/15/2021 at 1:43 PM #157947I can tell just from a glance it’s 200% curve fitted.
Ahh if only we could make these kinda results work, I’d quit my job and move to Bali 😂
01/15/2021 at 2:31 PM #15794801/15/2021 at 2:33 PM #157949I can tell just from a glance it’s 200% curve fitted.
Im trying to learn more about curve fitting and how to avoid it…… any tips/clues you can give to the less educated on this?
cheers
01/15/2021 at 5:58 PM #157961any tips/clues you can give to the less educated on this?
Im still a beginner. Avoiding curvefitting is an art I have yet to master. Generally more trades, less variables and more out of sample testing.
I try to understand the concept of what im trying to do and avoid optimisation as much as possible. Only using it to find ranges. I seem to be doing much better this way.
01/15/2021 at 6:08 PM #157964Avoiding curvefitting is an art I have yet to master
ok thanks.
was your “200%” comment just a figure of speech or something specific you had in mind?
I agree on less indicators/variables (I myself use 4 very standard ones) and also look for a good unanchored 70/30 walkthru and a …. “solid” VRT test. My “working” algos all do well in them. but its very early days.
01/15/2021 at 6:18 PM #157966was your “200%” comment just a figure of speech or something specific you had in mind?
i just looked at
- Number of trades – 120 is very low
- Average gain per trade – also very low. Along with low trades on a 10min TF history its very easy to find winning trades- on a backtest.
- variables – nine,ten,twelve,fourteen and worst of all pprofit and stoploss optimisation. Not including whatever variables he had in the two called indicators
- Extreme results – usually just picking the top optimised result
Im not saying its not possible to get these kinda of results in live (anything is possible). Its just very highly improbable.
1 user thanked author for this post.
01/15/2021 at 6:19 PM #157967I´m not able to include the indicators into my system. I get the error massage, that this file is already exist. But thats not true, i can´t find it in my list. Ann when i try to start the above setup i get the syntax error “function “O” does not exist“.
I´m a little bit confused now….. Can anybody help?
01/15/2021 at 10:27 PM #157995I hope you like it.
We’d all love to find out and give it a go, but we can’t! 🙂
01/16/2021 at 4:51 PM #158082why publish an incomplete file? strange and frustrating.
Since there are no indicators I have changed lines 13 and 20.
… can anyone help?123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657DEFPARAM CumulateOrders = FalseDEFPARAM PreLoadBars = 2000DEFPARAM FLATBEFORE = 000000one = 1if intradaybarindex=0 thentwo = 0endifif onmarket and three<>tradeindex thentwo=two+1three=tradeindexendifTIMEFRAME (default)four = 1 // CALL “O”TIMEFRAME (1 hour, updateonclose)IF Not OnMarket THENfive = 0ELSEfive = five + 1ENDIFsix = 1 //CALL “K”TIMEFRAME (default)ONCE seven = 1IF IntraDayBarIndex = 0 THENseven = 1ENDIFeight = fiveIF Not OnMarket AND eight <> eight[1] THENseven = 1ENDIFIF six AND seven ANd two<one and four THENBUY 0.5 CONTRACT AT MARKETseven = 0ENDIFSET TARGET pPROFIT 400SET STOP pLOSS 170nine = 300ten = 240IF NOT ONMARKET THENeleven=0ENDIFIF LONGONMARKET AND close-tradeprice(1)>=nine*pipsize THENeleven = tradeprice(1)+ten*pipsizeENDIFIF eleven>0 THENSELL AT eleven STOPENDIFtwelve = 12fourteen = 2IF NOT ONMARKET THENfifteen=0ENDIFIF LONGONMARKET AND close-tradeprice(1)>=twelve*pipsize THENfifteen = tradeprice(1)+fourteen*pipsizeENDIFIF fifteen>0 THENSELL AT fifteen STOPENDIF1 user thanked author for this post.
01/16/2021 at 4:59 PM #158084Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.The only one who could help is @XRPboss. But he seems not to be interested in this topic.
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on