Trade/Order properties
-
Hello.
- Imagine that we have 2 or more pending orders at the same time. I want to access to some properties of each order separately by its ticket number(order number). properties such as open price and etc.
- I want to define some variables separately for each of N pending orders that I don't know how many they are and what the numbers are. Then I want to compare these variables.
Please help me:)
-
You can get this by using for each order, the first 1 placed is 1
-
Not exactly. Let me explain it in this way. Every order has a ticket number, that means the order number from when the robot starts, so I want to call for example open price of the third pending order and compare it with something else.
help me -
Not sure what the difference is, if trades are running when bot starts the number is the same (I believe), think this number relates to the ticket number.
-

Dear friendi am confuse with this scenario so please guide
-
Explain what you're confused about?
-
no trade on current candle as per screen shot
-
Good question, add a shared link to see how things are set up, a picture is only half the required information, words always help.
-
-
this in not working on on demo account as per screenshot , its working deferent way
-
Candle close on 0 is the current price, you need to work on 1> if you want a guaranteed result. Once per bar x2 needs to go above directly buy/sell otherwise it will activate on the candle so can't activate for opposite order.
-
i did many time practice but this is not working
-
Everything I put works perfectly.