fxDreema

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

    I want help with adjusting the lot

    Questions & Answers
    2
    12
    1310
    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.
    • khalids222
      khalids222 last edited by

      In this example:
      In the case of the buying trend, the expert advisor collects the short positions, and increases the buy one over the sell ,and vice versa
      I mean if buying : 0.03 Then the selling trend will change, it will open 0.04 sell
      then 0.5 buy then 0.06 sell etc.......
      But the problem is in the same direction .If the trend is buy and another buy order occurs, there will be complications .
      Meaning if there was a buy and another buy occurred
      buy: 0.5 then buy 0.10 then buy 0.20 then buy 0.40 then buy 0.80
      If I want it in the same direction, the difference is 0.10 only

      https://fxdreema.com/shared/bGOnwEdvd

      khalids222 1 Reply Last reply Reply Quote 0
      • khalids222
        khalids222 @khalids222 last edited by

        @ROAR I appreciate your time and effort, could you help me to determine the lot size please?
        I tried all possible methods but it didn't work
        https://fxdreema.com/shared/mQcRAcxoc

        khalids222 1 Reply Last reply Reply Quote 0
        • khalids222
          khalids222 @khalids222 last edited by

          @khalids222
          0_1597933635683_9999.jpg

          khalids222 1 Reply Last reply Reply Quote 0
          • khalids222
            khalids222 @khalids222 last edited by

            @khalids222

            If the trend is fixed as buy or sell, the increase will be 0.01 FOR ONE PER BAR
            When the trend moves from selling to buying or vice versa from buying to selling, the increase is (sell OR buy +0.01) THEN increase 0.01 in the same trend .
            I don't know if the explanation is clear or not? But this is what I want to do with this project0_1597934562397_8888.jpg

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

              @khalids222 you need to first calculate the total of your open lots.
              Use loop "for each trade" and sum up all the lot sizes in one variable.

              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

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

                @roar
                here https://fxdreema.com/shared/fSQf4CGO
                I deleted the additions that I added in the first example.
                Here the EA works well when switching from selling to buying and vice versa.
                In the event of a buying trend, I want him to add a lot above the selling lot for each new bar .
                So I put the plugins I deleted, but it didn't work

                khalids222 1 Reply Last reply Reply Quote 0
                • khalids222
                  khalids222 @khalids222 last edited by

                  In this example when going from sell to buy it works fine no problem.

                  khalids222 1 Reply Last reply Reply Quote 0
                  • khalids222
                    khalids222 @khalids222 last edited by

                    The problem is the addition of a fixed volume in the same direction

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

                      @khalids222 all right, let me get the strategy:

                      • when MA is up -> buy 0.01 every bar
                      • when MA is down -> sell 0.01 every bar
                      • when MA changes direction, adjust open positions so that net position is 0.01 to the correct direction

                      Right?

                      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

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

                        @roar said in I want help with adjusting the lot:

                        when MA changes direction, adjust open positions so that net position is 0.01 to the correct direction

                        Yes that's right

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

                          @khalids222 here's how I would do it: https://fxdreema.com/shared/czm4e40xb

                          I try to avoid on/off blocks and "on Trade", because they make the system a bit confusing to manage.

                          Edit: fixed the comment block for tracking https://fxdreema.com/shared/sxt8wRKgc

                          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

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

                            @roar Thank you very much it works well, thank you with all my heart.
                            Grateful to you

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

                            Online Users

                            M
                            F
                            M
                            H
                            A
                            P
                            K

                            13
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors