Closing by order sequence.
How to create a loop to check?
if
i.e.
order 1 + order 2 has profited - close
order 3 + order 4 has profited - close
5 + 6
7 + 8
9 + 10
and so on ...
Order 1 being having the smallest order number and was opened at the earliest time.
How to create a loop to check?
if
i.e.
order 1 + order 2 has profited - close
order 3 + order 4 has profited - close
5 + 6
7 + 8
9 + 10
and so on ...
Order 1 being having the smallest order number and was opened at the earliest time.