Support Board
Date/Time: Wed, 22 Jan 2025 18:18:40 +0000
Persistent Variable for Enumerated Type Variable
View Count: 721
[2018-10-19 14:57:48] |
CarlRostron - Posts: 80 |
Does there exist at all the ability within ASCIL whereby I have my own Enumerated Type e.g. enum TradingState { IS_LONG_WITHOUT_STOP=0, IS_LONG_WITH_STOP_BUT_HAS_NO_INTERNAL_STOPID, IS_LONG_WITH_UNMATCHING_STOP_WITH_INTERNAL_STOPID, IS_LONG_WITH_MATCHING_STOP_WAITING_TO_ADD, //IS_LONG_WITH_UNATTACHED_STOP, IS_LONG_WITHOUT_STOP, //IS_SHORT_WITH_ATTACHED_STOP, IS_SHORT_WITH_UNATTACHED_STOP, IS_SHORT_WITHOUT_STOP, IS_FLAT_WITHOUT_WORKING_ORDERS, IS_FLAT_WITH_WORKING_ORDERS, IS_LONG_WAITING_TO_ADD, //IS_SHORT_WAITING_TO_ADD, WAITING_FOR_BROKER, BROKER_RESPONDED, UNHANDLED_STATE }; and I can assign a variable of this type to a Persistent Variable to keep track of my system state? |
[2018-10-19 22:40:06] |
Sierra Chart Engineering - Posts: 104368 |
Yes of course. Just set the enumeration type to be an integer and just simply cast it to an integer when using it with the persistent variable functions.
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-10-19 22:40:14
|
To post a message in this thread, you need to log in with your Sierra Chart account: