Support Board
Date/Time: Thu, 16 Jan 2025 07:04:26 +0000
sc.TradingLocked
View Count: 778
[2017-10-11 16:38:12] |
jizzary - Posts: 177 |
how can the study know if trading is locked? i could not find such a global variable. is there a way to solve it? 10x |
[2017-10-11 17:32:15] |
Sierra Chart Engineering - Posts: 104368 |
Update to the latest version of Sierra Chart and use sc.TradingIsLocked.
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 |
[2017-10-11 18:04:36] |
jizzary - Posts: 177 |
is this a read-only variable? can I set it in order to disable/enable trading from within the study? tnx, |
[2017-10-11 18:27:33] |
Sierra Chart Engineering - Posts: 104368 |
Yes it is read-only.
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 |
[2017-10-11 19:09:59] |
jizzary - Posts: 177 |
if the following doesn't become a problem I'll be glad if you can support it to be read/write variable. explanation: in case trading becomes disabled and there is an active position then the study will detect it, will turn trading to be temporarily active, terminate/exit the position and then will turn trading back to be disabled. It looks important ... otherwise, I wouldn't ask for it. what do u think? Date Time Of Last Edit: 2017-10-11 19:11:07
|
[2017-10-12 14:05:56] |
jizzary - Posts: 177 |
the event of trading-locking can be mapped into a call to the study with sc.TradingLocked or sc.TradingUnlocked and let the study handle the event BEFORE the trading-locked is implemented and AFTER trading-unlocked is implemented (the very same as with LastCallToFunction) please advise what u think. 10x. Date Time Of Last Edit: 2017-10-12 15:14:14
|
[2017-10-12 18:16:26] |
Sierra Chart Engineering - Posts: 104368 |
We cannot help you with either of these. If trading is locked through the user interface, it remains locked and cannot be changed.
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: 2017-10-12 18:16:35
|
To post a message in this thread, you need to log in with your Sierra Chart account: