New Features
Support for multiple simultaneous orders (limit, stop).
When there is an existing position, once an order is triggered it will automatically be treated as either adding to the position or reducing the position based on direction:
Same direction as the current position → add to position
Opposite direction to the current position → reduce position
You can now place Take Profit / Stop Loss as long as there is at least one order.
If there are multiple orders, Take Profit / Stop Loss will reference the earliest placed order.
If there is an existing position, Take Profit / Stop Loss will reference the position directly.
Adjustments
The original “close-all” style Take Profit / Stop Loss has been removed. This feature can be implemented by setting the take-profit/stop-loss percentage to 100%.
Due to some architectural changes, please make sure you have no open positions before updating. The update may cause existing positions to disappear.
