fxDreema

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

    GridTest

    Questions & Answers
    2
    7
    977
    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.
    • N
      NonciAzzecco last edited by

      In the gridtest ea I am trying to open a grid of buy orfers with the same sL and same TP calculated as a multiple of the grid levels (+1) and grid size.
      I have tried to optain it in several ways but with no luck. What I am missing?

      Thank you

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

        For all orders to have the same SL (or TP), try this option "Dynamic level (same for all orders)". The difference is that this is a price level.
        This is my example: https://fxdreema.com/shared/kd2DBUeP
        And this is the result from it: http://prntscr.com/42vhg8

        1 Reply Last reply Reply Quote 0
        • N
          NonciAzzecco last edited by

          __For all orders to have the same SL (or TP), try this option "Dynamic level (same for all orders)". The difference is that this is a price level.
          This is my example: https://fxdreema.com/shared/kd2DBUeP
          And this is the result from it: http://prntscr.com/42vhg8[/quote:lhyix5zh]

          Ok something is changed, but now 6 buy order are opened instead of 3 (rounding issues?) calculation seems correct...

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

            Ummm... I got 3, it can be seen on the picture 😕

            1 Reply Last reply Reply Quote 0
            • N
              NonciAzzecco last edited by

              __Ummm... I got 3, it can be seen on the picture 😕[/quote:3pj51hwf]

              yes the issue start when you calculate the stop loss and take profit level. look at my EA named TheGrid. Just an idea maybe the calculation imvolve to many decimals, but I have not idea how to tund or truncate the result in the formula

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

                Ahaa, the problem is in the way blocks 20 and 24 are connected. This cause block 23 to run 2 times, once because of blocks 20 and again because of block 24

                1 Reply Last reply Reply Quote 0
                • N
                  NonciAzzecco last edited by

                  __Ahaa, the problem is in the way blocks 20 and 24 are connected. This cause block 23 to run 2 times, once because of blocks 20 and again because of block 24[/quote:1wbqnl4k]

                  Gotch thx

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

                  Online Users

                  Z
                  O
                  R
                  A

                  8
                  Online

                  146.8k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors