Mother of Dragons trading strategy…

Viewing 15 posts - 496 through 510 (of 523 total)
  • Author
    Posts
  • #156081 quote
    nonetheless
    Participant
    Master

    I’ve never used spreadbetting but I dont think there’s any difference for autotrading. Others may be able to confirm this.

    It runs on the DJI for which there are different position size and currency options: $10 $2 or €1. The results I have posted are for 1 contract = €1

    If you’re trading in $ then the min / max positionsize will be different

    If you have a UK IG account, the MM should look like this:

    //Money Management DJ
    MM = 1 // = 0 for optimization
    if MM = 0 then
    positionsize=.4
    ENDIF
    if MM = 1 then
    ONCE startpositionsize = .4
    ONCE factor = f // factor of 10 means margin will increase/decrease @ 10% of strategy profit; factor 20 = 5% etc
    ONCE margin = (close*.05) // tier 1 margin value of 1 contract in instrument currency; change decimal according to available leverage
    ONCE margin2 = (close*.05)// tier 2 margin value of 1 contract in instrument currency; change decimal according to available leverage
    ONCE tier1 = 55 // IG first tier margin limit
    ONCE maxpositionsize = 550 //  IG tier 2 margin limit
    ONCE minpositionsize = .2 // enter minimum position allowed
    IF StrategyProfit <> StrategyProfit[1] THEN
    positionsize = startpositionsize + Strategyprofit/(factor*margin)
    ENDIF
    IF StrategyProfit <> StrategyProfit[1] THEN
    IF startpositionsize + Strategyprofit/(factor*margin) > tier1 then
    positionsize = (((startpositionsize + (Strategyprofit/(factor*margin))-tier1)*(factor*margin))/(factor*margin2)) + tier1 //incorporating tier 2 margin
    ENDIF
    IF StrategyProfit <> StrategyProfit[1] THEN
    if startpositionsize + Strategyprofit/(factor*margin) < minpositionsize THEN
    positionsize = minpositionsize //keeps positionsize from going below allowed minimum
    ENDIF
    IF (((startpositionsize + (Strategyprofit/(factor*margin))-tier1)*(factor*margin))/(factor*margin2)) + tier1 > maxpositionsize then
    positionsize = maxpositionsize// keeps positionsize from going above IG tier 2 margin limit
    ENDIF
    ENDIF
    ENDIF
    ENDIF

    The tiers are actually redundant in this case as the tier 1 and tier 2 margin requirements are the same (in some countries they differ).

    I have used .4 as a default starting position as it is roughly equivalent to €1 on the DAX or NAS, but you can put anything you like for startpositionsize =

    Factor is what controls how quickly/slowly the positionsize increases/decreases with strategyprofit.

    f = 10 means that if you have a €100 win/loss, the margin of the next trade will increase/decrease by €10

    f = 20 means the margin of the next trade would increase/decrease by €5

    I would not recommend going below f = 8

    Hope this helps!

    Monobrow thanked this post
    #156083 quote
    Monobrow
    Participant
    Senior

    I have used .4 as a default starting position as it is roughly equivalent to €1 on the DAX or NAS

    It helps, thank you.

    Last thing I cannot grasp though is how .4 correlates to £1?  Lets say I want to run this at a starting level of £2 per contract

    I assume I put in .8? But i have no idea why 😬

    #156084 quote
    nonetheless
    Participant
    Master

    .4 is 40 euro cents. £2 per point would be around €2.2

    Monobrow thanked this post
    #156087 quote
    Monobrow
    Participant
    Senior

    Ah ha! I think the penny has dropped…. you just mean that because of the size of the DOW (30k) you are just using a smaller starting size for margin requirements? Thats the correlation – your “normal” size on the DAX is just twice as big because its half the size, more or less.

    I get it now, thanks!

    #156091 quote
    nonetheless
    Participant
    Master

    because of the size of the DOW (30k) you are just using a smaller starting size for margin requirements?

    yes, exactly.

    #156998 quote
    Munshun
    Participant
    Junior

    DJ 5m MoD 5.1 has not taken a trade for me since January 4th. Since then we have seen a huge run-up after democrats Georgia win and Biden confirmation. Is it the same for everyone?

    #157045 quote
    Vonasi
    Moderator
    Master

    Since then we have seen a huge run-up after democrats Georgia win and Biden confirmation. Is it the same for everyone?

    Yes Biden won and the democrats took Georgia in my world too. 🙂

    (sorry couldn’t resist!)

    #157069 quote
    VinzentVega
    Participant
    Veteran

    DJ 5m MoD 5.1 has not taken a trade for me since January 4th. Since then we have seen a huge run-up after democrats Georgia win and Biden confirmation. Is it the same for everyone?

    You´re right. But the winnigrate in the last quarter 2020 annyway was negativ. To many full SL and many little winning trades. And no winnig series bigger than 7 winning trades in a row. Maybe the time of the dragon is over.

    #157074 quote
    GraHal
    Participant
    Master

    Maybe the time of the dragon is over

    Probably just needs re-optimising?

    Price action has changed in the last 2 months or so?

    #157078 quote
    Nobody
    Participant
    Veteran

    Probably just needs re-optimising?

      Thats what happens with curve fitting Sometimes ( probably always ) its just pays to see where its going wrong price action wise , but even figuring out the logic of this is more than im going to try and do .  Data mining is great in hindsite but the OOS /walk forward is always going to be a struggle .  You learn more from where it doesnt work but just reoptomizing you learn nothing  . Just my opinion  .
    Monochrome and Edmond thanked this post
    #157084 quote
    Monochrome
    Participant
    Senior
    I agree. It took me a long time to realise that blindly optimising, even with walk forward was always failing. Manually looking at where trades are going wrong and how to best overcome without overfitting was the best way. Now with v11 , 2d and 3d charts really help in giving the best Ranges and makes optimisation more useful.
    #157116 quote
    Vonasi
    Moderator
    Master
    Brisvegas – Please be more careful when quoting as you keep typing your own comments within the quote which makes it very confusing to read and requires moderators to spend time tidying it all up.
    #158862 quote
    Munshun
    Participant
    Junior
    @nonetheless: DJ 5m MoD 5.1 has not taken a trade for three weeks. Before that it was quite active.  I have been trying to figure out why this is the case by going through the code, to try to learn more about how algos in general works. But I don’t understand. Could you explain why you think it has not taken any trades even though the market has had quite big swings during this time?
    #158863 quote
    GraHal
    Participant
    Master
    has not taken a trade for three weeks
    Has it not taken any trades on backtest also? Post the .itf on here and I’ll backtest it see if I can offer anything? There hasn’t been much movement on the DJI over the last 3 weeks that is probably why no trades?
    #158865 quote
    Munshun
    Participant
    Junior
    Nope, no trades in backtest either. Many thanks for any help, very appreciated! My version attached.
    DJ-5m-MoD-v5.1_JO4.itf
Viewing 15 posts - 496 through 510 (of 523 total)
  • You must be logged in to reply to this topic.

Mother of Dragons trading strategy…


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 522 replies,
has 50 voices, and was last updated by LaurentBZH35
4 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/21/2020
Status: Active
Attachments: 195 files
Logo Logo
Loading...