how to enter a pending order one time after a specific one have been triggered
-
hi everyone .
i have a question i want to know how to make a pending order to open after a specific pending order have triggered for just one time , and how to make a specific position to close after a specific pending order been activated ? thank you

-
Te second structure at the bottom should do what you want but substituting the 'order created block' by a 'position created' one instead. I do not fully understand the second question. Do you mean closing a trade when that previous pending order was programmed?
-
yes , i want to close a specific position after a previous pending order hit
-
Then you should store the ticket number of that specific position into a variable. Then use that variable to identify the position when it is closed. But I guess you will be having several open positions at the same time? Then you will need a custom array.