How to select the previous order of the same symbol/type and check profit before opening a second order
- Scaling In or Pyramiding every time Trailing Stop moves to breakeven
- ..@@ need help in select order codes @@..
- [Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2.
Hi guys, I am having a persistent problem, I am trying to select the previous order of the same symbol and type (buy/sell), check if the profit has gone up by certain value (pyramid) before opening a second order. The code below shows what I did, but its not working. UsePoint is either 0.01 or 0.0001.
Count the orders
check the time, the youngest is yours
No such select loop posted.
You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
No free help 2017.04.21
Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum 2018.05.12
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
No free help 2017.04.21
No such select loop posted.
You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
No free help 2017.04.21
Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum 2018.05.12
We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
No free help 2017.04.21
I posted the code above as shown.
I don't think a select loop is required as the EA is used across several securities with the same magic number.
My problem is I want to select the previous order (ABuyticket) of the same symbol (possibly after several hours or days after opening it), check to see if price has moved in my favour by (Pyramid * UsePoint), if it has, then I open a second order (BBuyticket) of the same type.
My problem is how to select the previous order (ABuyticket)
Pls note: ABuyticket & BBuyticket are global variables
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use