Login Page - Create Account

Support Board


Date/Time: Sun, 23 Feb 2025 02:42:05 +0000



Post From: SC Engineering: Please Confirm SC Functionality before I build this Auto-Trading Algo

[2021-02-03 02:04:43]
rahul - Posts: 167
Thank you.

Can you please direct me to the ASCIL functions to use to perform the following:
Suppose I have 5 orders filled at different fill prices:
Order 1: Entry Price 100
Order 2: Entry Price 110
Order 3: Entry Price 120
Order 4: Entry Price 130
Order 5: Entry Price 140

Firstly, how do I track all open order prices?
Now suppose the current price = 125.
Since this price is greater than Order 1 and 2, I would like to close Orders 1 and 2 and have that reflected in the Trade Activity Log.

After this, the open orders should be:
Order 4: Entry Price 130
Order 5: Entry Price 140

The Closing (Exit) Price in the Trade Activity Log should reflect 125 for Order 1, 2 and 3.

How can do this?
Date Time Of Last Edit: 2021-02-03 02:05:41