fxDreema

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

    Making a grid....

    Questions & Answers
    7
    15
    8167
    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.
    • J
      jims last edited by

      Hello all..... im trying to create a grid.... with 30pip and 40pip steps...
      This is how i use the "pips away"-block... and it creates a grid with 30pip distance....
      0_1533283452467_32dc57a7-962f-4e68-b10d-76882de933b8-image.png

      my question is, i want the grid to be like this.... first a step of 30pips, after that a step of 40pips.. next step 30pips, next 40pips... and so on.....
      is there a way i can loop or make the ea to enter with a 30/40pip grid ?

      thanks

      1 Reply Last reply Reply Quote 0
      • J
        jims last edited by

        No one ?

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

          Hello!
          Here's how I would do it. It's a bit tricky for a beginner, but hope you will get the hang of it 🙂
          Sorry I can't help you any further, as I got tons of work to do today.

          https://fxdreema.com/shared/BvfDoXpX
          0_1533320994226_c46d1868-36a9-4c90-98e9-f1a2f94cbfaa-image.png

          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

          1 Reply Last reply Reply Quote -1
          • fxDreema
            fxDreema last edited by

            I don't know if this is what is wanted, but: https://fxdreema.com/shared/wUkmrbYVd
            This is my result:
            0_1533676048083_d395cf7a-0a2a-4052-854b-8ee972dfde99-image.png
            I don't know what stops to use, so I don't use any stops.

            B A 2 Replies Last reply Reply Quote 0
            • B
              Bigape @fxDreema last edited by

              @fxdreema
              Very interesting answer; it works perfectly.
              And if the next step, instead of starting from 30, was 50 pip and so on?

              Type: 1 step = 30 pips, 2 steps = 40 pips, 3 steps = 50 pips, 4 steps = 60 pips and ... so on?

              Can you give me an indication of the code you have already done?

              Many thanks

              B 1 Reply Last reply Reply Quote 0
              • B
                Bigape @Bigape last edited by

                @bigape
                Hi, could help me, please?

                1 Reply Last reply Reply Quote 0
                • fxDreema
                  fxDreema last edited by

                  https://fxdreema.com/shared/UJeap4JMd

                  Note that this works when you have 1 trade at a time, because the variable is one

                  B F 2 Replies Last reply Reply Quote 0
                  • B
                    Bigape @fxDreema last edited by Bigape

                    @fxdreema
                    Many thanks, I will try it.

                    Very good! It's work perfectly.
                    Thanks, again.

                    1 Reply Last reply Reply Quote 0
                    • F
                      fmark86 @fxDreema last edited by fmark86

                      @fxdreema
                      Hello! I'm new to this platform and coding as well. I have a very simple "EA" that detects simple price movement and opens a buy or sell trade. I'd like to add averaging function to save the loosing trades.

                      Example for BUY trades:

                      1. EA opens a BUY trade
                      2. Price falls with 50 pips -> new BUY trade opens
                      3. Price falls with 50 pips again -> another BUY trade opens
                      4. this continues...until I have enough balance 🙂
                      5. Finally when the sum of ALL OPEN TRADES go plus by 5 pips it would close ALL trades.

                      I tried your code and tried to connect with my EA but it didn't work as I wanted. It added a new trade everytime the price changed X pips. Of course I only wish to add a new position after the: last trade +/- X pips (depending on sell or buy).

                      Can you help me out? 🙂

                      https://fxdreema.com/shared/pGvzwLQpd

                      1 Reply Last reply Reply Quote 0
                      • F
                        fmark86 last edited by

                        Hello!

                        I modified my script and found a way to be able to achive what I originally wanted.

                        Now it works almost perfect. What I would like to know if it is possible to:

                        • use the "pending orders in grid" without actually placing them. They would get activated once price reaches their prices. Hidden orders..
                        • I don't want to use martingale. I'd like to use the original lot size for the first 3 trades (original+2 grid level). Then the 4th trade should be a greater volume let's say 2x the original lot size.

                        Here's my EA so far:
                        https://fxdreema.com/shared/RAV3ZHr2e

                        Thanks!

                        1 Reply Last reply Reply Quote 0
                        • F
                          fmark86 last edited by

                          Anyone ?

                          1 Reply Last reply Reply Quote 0
                          • F
                            fmark86 last edited by

                            Anyone ?

                            1 Reply Last reply Reply Quote 0
                            • fxDreema
                              fxDreema last edited by fxDreema

                              I think the first example will work if you use negative value for Averaging:

                              0_1538133541482_4ed528e0-6483-468e-9147-69eb2991dc85-image.png

                              Instead of "add to volume" you can use the original Buy and Sell blocks, so you can use their money management settings. There is a "Betting: Custom Sequence" option as well. If you want to separate the money management rules between Buy and Sell trades, then you should use different Group number for the Buy part and for the Sell part

                              1 Reply Last reply Reply Quote 1
                              • A
                                athanasia @fxDreema last edited by

                                @fxDreema It couldnt work.

                                1 Reply Last reply Reply Quote -1
                                • B
                                  Bhajanlal last edited by

                                  simple 100 pips GRID for buy only every order with TP

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

                                  Online Users

                                  A
                                  J
                                  D
                                  E

                                  24
                                  Online

                                  146.7k
                                  Users

                                  22.4k
                                  Topics

                                  122.6k
                                  Posts

                                  Powered by NodeBB Forums | Contributors