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.
-
-
05/02/2020 at 1:24 PM #129405
Never add to a losing position
I agree, but something I do is if I have a loser and I judge that price is going back up (vice versa for shorts) then I would buy same lot size so I get back to breakeven or very small loss in half the price distance it took to lose (and hopefully before I go to bed! 🙂 )
Works surprisingly often!
05/02/2020 at 1:48 PM #129409Yes, I confess I sometimes do that too, in manual trading. Hard to resist the temptation of maybe getting out of a stinker at breakeven. I think the question you have to ask is, ‘if I didn’t have an open position, would I buy here?’ If the answer is a confident Yes, then averaging down can be a good tactic. At least manually you have full control over the extra risk. But it would take some v clever coding to get it right in an algo.
1 user thanked author for this post.
05/02/2020 at 7:44 PM #129503Here a Dax version with BreakEven fonction, no modifications with the main MTF values
It’s far from the original version in terms of performances i just adapted it to my needs…
Thanks @nonetheless
8 users thanked author for this post.
05/03/2020 at 1:15 AM #12951205/03/2020 at 1:16 AM #12951405/03/2020 at 9:08 AM #129520Hi eckaw,
Im new and trying to learn to program in prc. What do I need to remove to get it working because I dont know what to remove from backtest code to make it work.
05/03/2020 at 10:51 AM #129541Here’s my adaptation
I can’t wait until tomorrow to try these last 2 versions … even if they are only half as good as the backtest … they should be winners!!?? 🙂
Thank You @Moda and @eckaw for being magnanimous and sharing with us all!
Thanks also to JuanJ, Paul and Vonasi and Nonetheless for the original MoD strategy, and Jan and Laurenzo for the original 69 MA definitions.
1 user thanked author for this post.
05/03/2020 at 10:56 AM #12954305/03/2020 at 12:47 PM #12954805/03/2020 at 1:05 PM #129550just me that thinks this is not ready to live?
We all check out Systems on Demo Live / Forward Test for a certain number of trades / ups and downs period in price levels etc.
Unless there are other folk like me, who like the excitement of putting a System Real Live following good backtests / walk forward etc?
BUT I would always then watch each and every trade like a hawk and would only do above if I was sitting at my desk doing other tasks on one monitor whilst the trade develops on No 2 monitor in my peripheral vision.
I might then exit a trade / close the System down within a few seconds or when it reaches a logical exit point which may not be catered for by the coded strategy.
I don’t see above as any more risky than manual trading? But if you are not comfortable manual trading then don’t do above! 🙂
EDIT / PS
There’s an even bigger drawdown on 13 March … see attached.
05/03/2020 at 1:45 PM #129564my point was that it wasnt even a point in putting it on demo whit this huge drawdowns with no protection at all..
the point of automatic systems is to not have to look at the monitor all the time.
if u want to trade manual then just have the system as an alert?
05/03/2020 at 2:08 PM #129568with no protection at all..
Are you able to do anything to improve the System to get it more to what you would like?
05/03/2020 at 2:09 PM #129569Hi @eckaw, I think there’s an error at line 421 – should be HeuristicsAlgo4, no?
Also, testing should be really done with MM switched off, so line 43 needs to be MM2ndType = 0
Nice work with the ML application, are you sure there’s no crosstalk between them?
1 user thanked author for this post.
05/03/2020 at 2:10 PM #129570backtest results for the above.
I do not get the same results as you with the original ML code, did you optimize more? Spread?
05/03/2020 at 2:16 PM #129576Also, @vonasi produced a more sophisticated version of that MM code, if you’re interested – includes a fuse to quit the algo if x% DD:
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354Capital = 10000MinSize = 1 //The minimum position size allowed for the instrument.MM1stType = 0 //Starting type of moneymanagement. Set to 0 for level stakes. Set to 1 for increasing stake size as profits increase and decreasing stake size as profits decrease. Set to 2 for increasing stake size as profits increase with stake size never being decreased.MM2ndType = 1 //Type of money management to switch to after TradesQtyForSwitch number of trades and ProfitNeededForSwitch profit has occurredTradesQtyForSwitch = 50 //Quantity of trades required before switching to second money management choice.ProfitNeededForSwitch = 3 //% profit needed before allowing a money management type change to MM2ndType.DrawdownNeededToSwitch = 3 //% draw down from max equity needed before money management type is changed back to MM1stType.DrawdownNeededToQuit = 35 //% draw down from max equity needed to stop strategyOnce MoneyManagement = MM1stTypeEquity = Capital + StrategyProfitmaxequity = max(equity,maxequity)if equity < maxequity * (1 - (DrawdownNeededToSwitch/100)) thenenoughtrades = 0tradecount = 0moneymanagement = MM1stTypeendifif equity < maxequity * (1 - (DrawdownNeededToQuit/100)) thenquitendifif not EnoughTrades thenif abs(countofposition) > abs(countofposition[1]) thentradecount = tradecount + 1endifif tradecount > TradesQtyForSwitch and maxequity >= Capital * (1 + (ProfitNeededForSwitch/100)) thenEnoughTrades = 1MoneyManagement = MM2ndTypeendifendifIF MoneyManagement = 1 THENPositionSize = Max(MinSize, Equity * (MinSize/Capital))ENDIFIF MoneyManagement = 2 THENPositionSize = Max(LastSize, Equity * (MinSize/Capital))LastSize = PositionSizeENDIFIF MoneyManagement <> 1 and MoneyManagement <> 2 THENPositionSize = MinSizeENDIFPositionSize = Round(PositionSize*100)PositionSize = PositionSize/100// Size of POSITIONSPositionSizeLong = 1 * positionsizePositionSizeShort = 1 * positionsize1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on