Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Notified when AddOn when state of Global Sim Mode changes?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Notified when AddOn when state of Global Sim Mode changes?

    I know how to check Core.Globals.TradingOptions.IsGlobalSimulationMode for its state, but it would be helpful to know when it has changed for updating parts of my UI.

    I can't seem to find any callbacks/events for this. How do I do this?

    #2
    Hello carnitron,

    I am not aware of any callback event for that, it would be suggested to add some kind of polling logic to your script if you need to detect the state more frequently than when your script is opened.

    Comment


      #3
      I have figured out a way around this in my UI. (Polling could work, but it's not a super elegant or even correct solution in my situation.) Can we log a feature request for a notification event?

      Comment


        #4
        Hello carnitron,

        I will put in a note to development about that. For now you will need to use your workaround or polling.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        41 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        28 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        45 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        37 views
        0 likes
        Last Post CarlTrading  
        Working...
        X