fxDreema

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

    How can I create trades in a row with diffrent Magic Number

    Questions & Answers
    3
    6
    1943
    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.
    • E
      eranger last edited by

      Hi,
      I want to create an EA which opens a few trades one after the other.
      The thing is I want each trade to have a different magic number, so I created a new variable by the name "BuyGroupNum" and tried to do the following but it didn't work.
      What do you think I should do about it?

      0_1519219461298_Capture.PNG

      Thanks,
      Eran

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        Before Buy now block place Modify variables block, as this:

        0_1519241411953_b43a7bca-7b78-4308-b768-e73c2043ffe7-image.png

        Between trading and gambling is a very small gap, be careful.

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

          Thanks Miro I see what you mean but I was wondering if it's possible without adding a new block...

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

            You can also try to write this:

            BuyGroupNum++

            Not tested, but there is a chance for this to work.

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

              Didn't work...

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

                I think this works: http://prntscr.com/ikmyls

                Note that the input field is actually a string and that's why the ++ method doesn't work. And it is a string, because I use the same input parameter in other blocks where you can write values such as 1,2,3,4,5. But I tried solution above and I think it works.

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

                Online Users

                X
                J
                A
                N
                S
                E
                A
                M
                T
                M

                34
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors