if pending order trigered close previous opened position
-
Hello everyone,
what I want to do is to close instantly the first opened position right at the moment the pending order is trigered. how can I do that?
thanks for your help. -
@nehemiah7 Some more info would be appreciated. Can you please explain how many trades are supposed to be open at the same time? How many of them are supposed to be closed? And how many pending orders are supposed to be active at the same time?
-
@l-andorrà only one. Once the condition is met, it opens a position and and a pending order a couple pips away from the baseprice at the same time. if the position doesn't go in the expected direction and end up hitting the pending order, the first position has to be closed automaticaly
-
@nehemiah7 Can you please share the link to your project?
-
@l-andorrà there you are https://fxdreema.com/shared/l8xCVEKnd
-
@nehemiah7 Blocks 1 and 27 are searching for buys and sells at the same time. Block 1 should be specified for buys only and block 27 should be renumbered as block 2 and the specifed for sells only.