Login Page - Create Account

Support Board


Date/Time: Sun, 03 May 2026 22:00:17 +0000



ACSIL - read state of trading lock triggered by Global Profit/Loss Management

View Count: 290

[2026-03-19 13:44:14]
curious16 - Posts: 46
The global profit/loss management panel offers to lock trading after a set daily loss is reached and positions have been flattened.
There is a lock option and a further "lock for the day" option. I assume these locks set a flag in one of the SC config files so
that the lock state is maintained when SC is restarted.

This is all fine but it interferes with automated trading code. It would be very helpful to get an ACSIL function for reading the
state of this hidden trade lock. The sc.TradingIsLocked variable reads only the lock that can be manually set via Trade > Trading Locked.

Could you perhaps add a variable such as sc.TradingLockedByLossManagement? Alternatively, could you let me know where I can find this
lock state in the SC configuration files?
Date Time Of Last Edit: 2026-03-19 13:44:44
[2026-03-20 15:03:13]
Sierra_Chart Engineering - Posts: 23671
We are checking on this.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-03-20 15:36:40]
Sierra_Chart Engineering - Posts: 23671
This new ACSIL function will be added to the next release:

int32_t (SCDLLCALL* GetIsTradingLocked)(const SCString& TradeAccount);

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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-03-20 17:11:13]
curious16 - Posts: 46
Thanks for adding this function, much appreciated.
[2026-04-03 16:05:45]
curious16 - Posts: 46
I tried to use the new function sc.GetIsTradingLocked(account) after updating to the latest version v2895 and compiling the test code with the latest sierrachart.h headers that contain this function reference:

//2893
int32_t (SCDLLCALL* GetIsTradingLocked)(const SCString& TradeAccount);

This threw an access violation error. I tried with both sim and real accounts. It looks like either the function has not yet been implemented (but why is the reference in sierrachart.h) or it does not work as intended.

Could you please clarify the situation.
[2026-04-03 22:04:34]
Sierra_Chart Engineering - Posts: 23671
We are checking on this.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-04-03 22:05:43]
Sierra_Chart Engineering - Posts: 23671
This will be resolved in the next release.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account