if (OrderSelect(p, SELECT_BY_POS, MODE_TRADES) && OrderType()==OP_BUY && Bid >= OrderOpenPrice()+BEI don't see that p is initialised with a value anywhere.
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
Hello,
At the outset, I apologize for my English, most of the work done by google translator. Thank you for your patience with this text :)
Problem description:
I need after the first Target profit were offset any remaining orders to break even
In this code after the first profit Target is moved only order 2, but the order is still 3 initial stop loss.
I need to get to breakeven and 3 order
Modify order 3 -2014.6.17-1:28 , together with order 2. This is missing
Check screen>
Order 1 and 2 is OK, but order 3 missing shift to BE
If you understand me, thank you for your answer :)
Mat