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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      66 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      141 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      76 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      47 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      51 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X