Support Board
Date/Time: Wed, 22 Jan 2025 20:47:33 +0000
Post From: Persistent Variable for Enumerated Type Variable
[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? |