fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Under 1.25 Martingale Multiplier for Looped Trades

    Questions & Answers
    4
    6
    843
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Leeds7878 last edited by

      Hi Guys,

      Does anyone know a workaround for creating a martingale EA that uses a multiplier of less than 2?

      Currently when I put 1.25 in the multiplier field the EA will only trade with 1x the lots regardless of the number of trades in the loop.

      Ideally I need a way to make the 1.25 multiplication accumulate on past trades, see below;

      How i'd like it to trade

      Initial trade; 0.01, 2nd trade 0.01, 3rd trade 0.02, 4th trade 0.02, 5th trade 0.02, 6th trade 0.03

      How it trades

      Initial trade; 0.01, 2nd trade 0.01, 3rd trade 0.01, 4th trade 0.01, 5th trade 0.01, 6th trade 0.01

      I do have some code code from a previous EA - does anyone know where this could be entered to get the desired result?

      Massive thanks to anyone that can help!

      Cheers!

      This is the code that may help - My skills are very limited so dont know where to start with it.

      Calculate_Lot = NormalizeDouble(Order_Size,LotDigits) ;
      if(NormalizeDouble(Order_Size,LotDigits)<minlot)
      {
      Calculate_Lot = minlot ;
      }
      if(Calculate_Lot>maxlot)
      {
      Calculate_Lot = maxlot ;
      }
      if(Multiplier<1.5)
      {
      if(bs<20)
      Calculate_Lot = NormalizeDouble(Calculate_Lot * MathPow(Multiplier,bs),LotDigits) ;
      else
      Calculate_Lot = NormalizeDouble(buylots * Multiplier,LotDigits) ;
      if(Calculate_Lot>maxlot)
      {
      Calculate_Lot = maxlot ;
      }
      if(Calculate_Lot<minlot)
      {
      Calculate_Lot = minlot ;
      }
      }
      else
      if(Multiplier>=1.5)
      {
      if(bs > 0)
      {
      Calculate_Lot = NormalizeDouble(buylots * Multiplier,LotDigits) ;
      }
      if(Calculate_Lot>maxlot)
      {
      Calculate_Lot = maxlot ;
      }
      if(Calculate_Lot<minlot)
      {
      Calculate_Lot = minlot ;
      }
      }
      return(Calculate_Lot);
      }

      roar 1 Reply Last reply Reply Quote 1
      • l'andorrà
        l'andorrà last edited by

        I'm not a programmer so I have no idea how to read that code. What I can suggest is that you can create a whole structure to calculate the lot size and then embed it into your launching blocks. However, it is not a trivial one. Do you have an initial project to begin with?

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        1 Reply Last reply Reply Quote 0
        • roar
          roar @Leeds7878 last edited by roar

          @leeds7878 the system rounds off the lot amount, and the more precise value is lost -> accumulation will never happen.

          You'll need 2 separate variables for the lot amount: one precise value for the calculations, and one rounded value for the actual trade

          Need small help? Tag me in your post
          Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

          L 1 Reply Last reply Reply Quote 0
          • L
            Leeds7878 @roar last edited by

            @roar Cheers for the reply mate! Hadn’t seen this.

            So how would that look on FXDreema?

            1 Reply Last reply Reply Quote 0
            • E
              ElephantJuice last edited by

              Did anyone solve this please?

              This seems to be to do with it - MQL4-Grid lot increment fail , but I can't figure out how to do this in fxdreema.

              Any help please?

              1 Reply Last reply Reply Quote 0
              • E
                ElephantJuice last edited by

                @miro1360 @roar
                I see you guys are masters on the forum I am a follower, if either of you can please help me with a solution to this problem I would be very grateful ?

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                Online Users

                S
                C
                F
                S
                R
                M
                U
                C

                20
                Online

                146.8k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors