New series of orders affects old series!!!
-
Hi Everyone...
The EA I'm creating should do this.
-
A sell order is opened and a pending buy order is placed.
-
When the pending buy order is triggered, a pending sell order is placed. When this is triggered a other pending buy order is placed.
The final triggered pending order is closed by a set take profit and all the other orders in the series is closed by group numbers.
The PROBLEM I'm facing here is that when a new series starts again (let's say initial sell order starts every hour) the old series gets affected because of the group numbers

Can anyone please advise as to how I can close this series without being affected by a new series (because of duplicate group numbers now in play)
Thanks!!!

-
-
-
Can you please share the link to your project?
-
@l-andorrĂ I will post later on as I'm at work thanks. It must be so simple...
So basically I need to close a series of opened orders without affecting the new series when it starts (say at 1hr intervals)
The issue is that I'm closing the series according to the group numbers and the new series of trades affects the old existing series (as trades are closed by the group numbers)
-
There can be many reasons why your structure doesn't work. Just guessing what's the issue is very difficult. In general, using groups would be enough if they are properly identified.
-
@l-andorrĂ I've managed to sort the issue...
Instead of identifying opened pending orders by group numbers, I've set a variable and defined that particular trade by a variable
(So instead of using a number to define the group, the trade is now defined by the variable)
Works like a charm now. Thanks for your help!

-
You're welcome, man.
