
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Need help using the following codes.
Jon this function issues unique numbers
I do not understand the Sample. Why OrderSend > 0, then perform another OrderSend? Please help!
I realized that the Sequence Number will increase with every order and that I could assign it to comment or magic number which is great. The best part is that they remain in the system even after I restart MT4.
However, how do I identify and compare them later?
How each set of orders are placed:
i.e. I trade in pair, Order 1 & 2, then Order 3 & 4, and so on....
Order 1 - Sequence #1
Order 2 - Sequence #2
Order 3 - Sequence #3
Order 4 - Sequence #4
Order 5 - Sequence #5
Order 6 - Sequence #6
Now that they have unique sequence number that increment,
How do I select them and compare?
I would like to select and compare
Order 1 & 2, then Order 3 & 4, then Order 5 & 6, and so on ...
Thanks in advance!
... Continued from above reply
Or maybe I could control when the sequence number would increase?
i.e. after each set of orders? Like after 2 orders.
So when selecting and comparing, I could just select orders with the same sequence number.
How to code that?
Thanks!