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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      89 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X