hedge without condition
-

-
hi,
want to create a hedge ea that hedges the opposite trade by the same lot size, so if sell (lot : 0.13), and buy tp is hit, then asap a buy opens with the same lot size as the sell (lot : 0.13), but here the catch... i want to manually trade, there is no conditions in this EA to open or close trades, i just want to to hedge the opposite position just incase i am busy with daily life... above blocks i put in the "on trade" section, but it doesnt seem to work... help please.... https://fxdreema.com/demo/simple -
on chart tab, purple trade closed - pink for each trade - buy/sell with the just closed values in a loop. Set the group to all and will work from manual trades.
-
@jstap
the above advice has worked, but created another issue,
once i close a position partially, it ea considers this as a trade close aswell and opens another position with the same lotsize as i partially closed by... is there a way around this... -
In the pink blocks, you have settings for parent/child trade, a new trade would be a parent, and modifying the existing one would be a child trade.
-
@jstap hi, thanks for reply...
im not familiar with parent/child trades, can you explain further please... -
Inside you will see this, test and you can see the difference. When you place a trade with a buy/sell block it is a parent trade, when you modify (change lot size etc) it is a child trade. Every time you modify a new trade is created.
-
yes, but im using close partially block to modify lotsize, because it closes the trade and opens a new trade (with the new lot size), it opens another position with same lotsize as i partially closed by...
-
So that is your child's trade what is happening when you only look for parent?