how to create a hedging order. simple hedge
-
how to create a hedging order. simple hedge. have a project but doesn't matter how I twist and turn it will open hundreds of orders. any advice would be greatly appreciated. https://fxdreema.com/shared/bu49ftBPc
-
@akallai86 The for each blocks are not needed as inside the pending block you have no loop, only a few blocks will work under the buy/sell and pending is not one, if you line up the place/trade/order blocks and tee off the condition blocks it should work.
-
@jstap thanks for the response.. changed it but still having the same error that hundreds of positions are opened

-
@akallai86 That never happens to me, put your latest shared link here and I'll have a look.
-
thanks a lot for looking trough it https://fxdreema.com/shared/pucW3x7wc
-
@akallai86 You still have pending connected under the buy/sell block, tee off the condition block above the buy/sell and see what happens.
-
if i remove any pending or other buy or sell block how could I get another order as an hedge, for example 20 pips away from the buy after the buy to get a sell order out. with removal of the pending it would be just a buy or sell ea.
-
@akallai86 I didn't say remove I said move so it's teed off the same condition block as the buy.
-
hahah.. such a simple solution thank you worked like a charm
-
@jstap btw last questions after testing i saw that pending orders kept open after for example buy order was closed in profit. how could I cancel pending order if previous order was closed in profit?
-
@akallai86 Easiest way is to use a purple trade closed on the on trade tab with a flag beneath, check the flag above buy/sell, you will need another condition to reset the flag when needed, if the trade happens on the same bar you could use a once per bar block.
-
@jstap im sorry new to fxdreema . could you point some in the right direction ? cant seem to get the hedge order right.
-
@akallai86 Put your latest shared link here and ask how to fix what you can't get working.
-
@jstap thank you i cant get the pending deleted. i mean its just a simple hedge ea https://fxdreema.com/shared/1rxJQxzme
-
@akallai86 The flag should be set on trade and checked on tick, you have no block to delete pending orders.
-
@jstap i have in the ontrade tab the delete pending order.. I'm sorry I don't exactly understand what you mean. on tick in the ontick tab and on trade in the ontrade tab?
-
@akallai86 Didn't notice delete block, the flag needs to set as deleting orders, check this on the ontick tab brfore nuy/sell, set a condition to reset when needed.
-
@jstap could you check again if its right now ?
-
@jstap if i try like this it will open hundred of orders https://fxdreema.com/shared/Ek4B4Y7bc
-
@akallai86 Delete and set flag (not check) ontrade, check ontick.