buy/sell pending orders
-
Hello!
I am having trouble with pending orders. After using the block for each closed trade if i use buy pending order, i doesn`t just place the 1 pending order, it just keeps placing them causing a mess. I am hoping somone can tell me why this occurs and how i can get around this.
-
I think you have missed out "No pending order" block http://prntscr.com/98yytw
New pending order will be placed only if there is no other pending orders waiting. -
__I think you have missed out "No pending order" block http://prntscr.com/98yytw
New pending order will be placed only if there is no other pending orders waiting.[/quote:33d2wnmr]Hi Nabakap,
Thanks for trying to help. And nice to meet you! So if i have orders in a grid with a take profit on each order, how can i get a pending order to replace a closed trade? Essentially i want each trade that closes to trigger the placement of a new pending order replenishing the grid so to speak..If you understand what i mean. Of course all trades to be closed and pending orders to be cancelled once the predetermined unrealised profit has been reached on the (potentially group) of trade/trades. I hope i make sense

-
Sorry, I'm no pro coder, for all BIG questions you have to wait Fxdreema to answer.
There is some simple/little questions that I can try to help. I skechuped some blocks together and tested it, and... I'm not shore, but maybe "once per trade/order" block can help. http://prntscr.com/995flt -
There is not a single answer to this question. I think it's best to work under "on Tick", check the current number of orders and do something depending on their number... if this is the idea. If the EA is restarted, it should continue as if it was not restarted. Note that "once per trade/order" uses temporary memory which is reset when the EA is restarted. Also note the option inside.
Otherwise you can work under "on Trade", but each Trade signal happens once, which can be good or bad.