Hi,
I would like the function to identify an open trade/order from several opened trades/orders.
After the open trade is identified it should be possible to for example: cancel/delete it or to hedge it.
To do this, it makes sense to identify the sum of the open orders/trades, identify the oldest and/or the most recent trade/order as a basis and use the shift function (+/- 1 or +/- 4) to take a trade from this basis to choose which one can then handle.
See here feature request from 2018:
https://roadmap.strategyquant.com/tasks/algw_0115
Regards,
Diwi
There is an option too to implement it in this way:
https://roadmap.strategyquant.com/tasks/sq4_2803