static int sellticket=-1; if(sellticket<0 && OrderSelect(ticketnumber1,SELECT_BY_TICKET)) { }
You will need to reset sellticket when it is closed
GumRai:
Thanks for the response. May I inquire as to how I go about resetting it?
You will need to reset sellticket when it is closed
DeanDeV: May I inquire as to how I go about resetting it?
|
|
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
Hi,
I seem to be having a problem. I want to select an order and then when that order is in a certain amount of profit I want to send another order. Below is my code. When it reaches the certain amount in profit it places continuously as it oscillates around the profit point at which I want it to send the order. I just want it to send one order.
If I create a for() it places 999 orders at that point.