Mother of Dragons trading strategy…
Forums › ProRealTime English forum › ProOrder support › Mother of Dragons trading strategy…
- This topic has 522 replies, 50 voices, and was last updated 3 years ago by LaurentBZH35.
-
-
10/29/2020 at 7:07 AM #148851
Thank you very much @nonetheless!
10/29/2020 at 10:10 PM #148939Revised NAS long
5 users thanked author for this post.
10/30/2020 at 4:45 AM #148954Thank you all. I have included my favorite MM model in the latest version. Thank you
Hello @volpiemanuele,
I have been testing your MM strategy and I really like it.
Can you explain a little more about what each variable does?1234567prof = 0ddpp = 212// max dd per pointddm = 2 // multiples of max drawdowns to factor into positionsizecapital = 5000 //starting bankdpct = 5 //% margin for depositdeposit = (open/100)*dpct //margin per pointpri = 1 // percent to reinvest as a decimalAlso I was wondering how you arrived at the “212” number for Max DD per point.
It would be great to know a little more about how it’s calculating the increments.
Thanks so much in advance.
10/30/2020 at 8:19 AM #148972@StingRe Below I explain the code:
ddpp = 212// max dd per point I RUN THE BACK TEST WITH MIN SIZE OF INSTRUMENT AND I INSERT THE DD SHOWN BY BACK TESTddm = 2 // multiples of max drawdowns to factor into positionsize IN THIS SECTION YOU MUST CONTROL THE RISK; I SUPPOSE THAT THE FUTURE DD IS DOUBLE OF THE CURRENT BACK. YOU MAST INSERT OTHER FACTOR. IF YOU INSERT 1 MEANS THAT YOU SUPPOSE THE SAME DD FOR THE FUTUREcapital = 350 //starting bankdpct = 5 //% margin for depositdeposit = (open/100)*dpct //margin per pointpri = 1 // percent to reinvest as a decimal IN THIS SECTION YOU MAST INSERT THE % OF THE PROFIT THAT YOU WANT TO REINVEST.. FOR EXAMPLE 1 ALL PROFIT REINVESTED AND 0.5 IF YOU WANT TO REINVEST 50% OF PROFIT (ADMITTED VALUE 0.1 TO 1)positionsize = (capital +((strategyprofit + prof)*pri))/((ddm*ddpp)+deposit) THIS FORMULA CALCULATE THE SIZE. YOU CAN REBUILD THIS FORMULA IN EXCEL WITH OTHER VARIABLES IN ORDER TO UNDERSTAND HOW THE LOTS VARY ACCORDING TO THE VARIATION OF THE OTHER VARIBLESif positionsize < 0.25 then CHECK THE MINIMUN LOT (0.2 FOR EXAMPLE FOR DJ) OR YOU MUST DECIDE THE SIZE BEYOND WHICH THE MM START (IN THIS CASE THE MM START AFTER 0.25)positionsize = 0.210/30/2020 at 2:34 PM #149011and the NAS short. They all got a small bump in performance with the new TS but the main thing is that it should work. Let me know if there’s any further problems.
1 user thanked author for this post.
10/30/2020 at 4:02 PM #149019I created a basic version to start optimisation from.
It’s like this.
12345678910111213141516171819202122232425262728293031323334if check=1 thencondbuy=c1condsell=c2elsif check=2 thencondbuy=c1 and c3condsell=c2 and c4elsif check=3 thencondbuy=c1 and c3 and c5condsell=c2 and c4 and c6elsif check=4 thencondbuy=c1 and c3 and c5 and c7condsell= c2 and c4 and c6 and c8elsif check=5 thencondbuy=c1 and c3 and c5 and c7 and c9condsell=c2 and c4 and c6 and c8 and c10elsif check=6 thencondbuy=c1 and c3 and c5 and c7 and c9 and c11condsell=c2 and c4 and c6 and c8 and c10 and c12elsif check=7 thencondbuy=c1 and c3 and c5 and c7 and c9 and c11 and c13condsell=c2 and c4 and c6 and c8 and c10 and c12 and c14elsif check=8 thencondbuy=c1 and c3 and c5 and c7 and c9 and c11 and c13 and c15condsell=c2 and c4 and c6 and c8 and c10 and c12 and c14 and c16elsif check=9 thencondbuy=c1 and c3 and c5 and c7 and c9 and c11 and c13 and c15 and c19condsell=c2 and c4 and c6 and c8 and c10 and c12 and c14 and c16 and c20elsif check=10 thencondbuy=c1 and c3 and c5 and c7 and c9 and c11 and c13 and c15 and c19 and c21condsell=c2 and c4 and c6 and c8 and c10 and c12 and c14 and c16 and c20 and c22elsif check=11 thencondbuy=c1 and c3 and c5 and c7 and c9 and c11 and c13 and c15 and c19 and c21 and c23condsell=c2 and c4 and c6 and c8 and c10 and c12 and c14 and c16 and c20 and c22 and c24endifBecause if what’s not checked, in part the indicators are not activated and optimisation goes quick. And build it up. Maybe the order is not right or it will fail all together. Just a try.
10/30/2020 at 4:27 PM #149022Hey,
I’m running DJ 5m MOD v5.1 live with a startposition of 0.2 instead of 1. It went short today (October 30th) at 3:30 (European Time) and exited at 6:55 with a 49.94pts gain.
However, it doesn’t show on the backtest with the same algorithm as on live.
I have to say though that I changed the time indications in Nonetheless’s original code to fit European Time (as opposed to UK time) by adding one hour on lines 231 and 241.
Has it also happened to you or is it only me?
10/30/2020 at 4:35 PM #149023@BobOgden No trade today. I have change the time in the same lane. (I insert Italian time…1530 – 22.00….1540)
10/30/2020 at 4:49 PM #14902410/30/2020 at 4:58 PM #149026Yes, in autotrading you can click the version number of the strategy you want to retrieve, then use Copy & Paste.
10/30/2020 at 5:20 PM #149032I created a basic version to start optimisation from.
@Paul, this looks really interesting but you have to explain it to me like I’m 4 years old – what do I do with it?10/30/2020 at 5:38 PM #14903810/30/2020 at 7:05 PM #149049@nonetheless Where to start optimising on this strategy? I thought why not add layer on layer and see what happens. It’s important to have many trades in the beginning, not necessary with the highest payout. Uses same sl & pt & ts and no other exit criteria.
10/30/2020 at 7:25 PM #149052So I enter a range for each variable and it automatically optimizes them one at a time?
10/30/2020 at 8:44 PM #149056Not sure if I read that right, but I think not.
Since check3 uses a change in curve to go to true condition, I would say go up from there.
In other words, you make a choice for the check number and you can optimise the last condition or up to every condition the check number covers.
All conditions related to a higher check number are ignored.
So you take check3, optimise parameters for c1/2 c3/4 c5/6
Having found them, put them in, and go to check 4
then take parameters for c7/8 to optimise and/or you can take some parameters from above and optimise together. Found the best mix, go to check5 and now the focus is c9/c10 and it’s parameter.
The early results with a low check number will be bad and you need lots of trades which will be filtered out on a higher check number
Well that’s the rough idea and I hope it’s coded right, but it will be very tough to find something similar to your result if starting from scratch!
edit; I don’t think it was needed to reset conditions to 1.
-
AuthorPosts
Find exclusive trading pro-tools on