Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 07:45:28 +0000



ACSIL System

View Count: 651

[2018-02-09 20:37:06]
User39772 - Posts: 311
I need to maintain data between the function calls of a trading system because in a next call I need this data that has been updated in the previous call.

I know that global variables could be used for that. Is there another way, e.g. to store such data in one of the structs that contain data for an open position.
I only need this data as long as the position is open.

Another question is regarding /BEtrailing stop. The existing examples are somehow confusing for me.

Implementing simple trailing stop and profit target in ACSIL | Post: 107946
TRAILING STOP ORDER USING ACSIL

It is not clear if I have to configure something outside of the ACSIL code additionally, e.g. in the trade window.

It would be helpful to have an ACSIL example that shows how to buyentry via a MKT and use a BE and trailing stop.
It is also not cleat what to do in the buyexit section in such a case.

A full example would be very helpful !
[2018-02-12 18:47:25]
Sierra Chart Engineering - Posts: 104368
You need to use a persistent variable. Refer to:
sc.GetPersistentInt()

For move to break even stops in ACSIL, refer to:
Automated Trading From an Advanced Custom Study: [Type: integer] s_SCNewOrder::MoveToBreakEven.Type

It is also not cleat what to do in the buyexit section in such a case.
There is no buy exit needed. That is managed by the Stop Attached Order.
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
Date Time Of Last Edit: 2018-02-12 18:47:40

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

Login

Login Page - Create Account