How can I create trades in a row with diffrent Magic Number
-
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?
Thanks,
Eran -
Before Buy now block place Modify variables block, as this:

-
Thanks Miro I see what you mean but I was wondering if it's possible without adding a new block...
-
You can also try to write this:
BuyGroupNum++
Not tested, but there is a chance for this to work.
-
Didn't work...
-
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.