Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to know whether strategy is running real time / live?

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

    How to know whether strategy is running real time / live?

    Hello,

    I have a cumulative variable that gets added with metrics as the strategy executes.

    It works, but it counts metrics that occurs before the strategy goes and executes live.

    Is there a method that can tell whether the strategy is running live?

    Many Thanks, Caesar.

    #2
    Hi Caesar, thanks for posting. When the strategy transitions from a historical to RealTime state it will go through the Transition state. See here for the documentation:



    State.Transition is where you would set a boolean variable from false to true to signal the strategy has gone into RealTime state.

    Kind regards,
    -ChrisL

    Comment


      #3
      Many Thanks Chris!

      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
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 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