Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DataLoaded state

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

    DataLoaded state

    I have a very simple test function in OnStateChange() to understand when data is loaded:

    Code:
    if (State == State.DataLoaded)
    {
      Print("Data has been loaded");
    }
    However, this never gets printed after I add my strategy to my chart, how do I get my strategy to load the data?

    #2
    Hello amaltais,

    Thanks for your post.

    In order to see that message:

    1) Open a new>ninjascript output window before running the strategy
    2) When you apply the strategy to the chart, click the "enabled' check box.

    If you have done these and do not see the message, please post your strategy code.



    Comment


      #3
      Well there you go strategy was not enabled I see it now thank you.

      Comment

      Latest Posts

      Collapse

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