Selecting an order and then using OrderSend() based on it
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?
|
|
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.