Login Page - Create Account

Support Board


Date/Time: Sat, 22 Feb 2025 17:39:28 +0000



[Programming Help] - SC Engineering: Please Confirm SC Functionality before I build this Auto-Trading Algo

View Count: 546

[2021-02-02 17:09:47]
rahul - Posts: 167
Hi SC Engineers,

I am moving away from managing trades myself to relying more on the attached order features for new trades as its getting unmanageable.

Question: If I put on a new orders, with attached stops and targets, every couple days... let's say after a few days I have a bunch of filled entry orders with open stops and targets and my server crashes or I need to update Sierra Chart Software... will my attaches orders still stay after a SC restart?

What precautions do I need to take to make sure my attaches orders are not removed from the chart?
[2021-02-02 22:30:10]
Sierra Chart Engineering - Posts: 104368
will my attaches orders still stay after a SC restart?
Yes this is automatic. Nothing special to do.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[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

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account