• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need insight on this error...

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

    Need insight on this error...

    Can anyone provide an explanation of what causes this error:

    Error on calling 'EventHandlerMarketData' method: More than 100 subsequent user events
    Thanks,
    Gary

    #2
    Hello Gary,

    Thank you for your post.

    This essentially means you need to debug the script.

    The user events message is a safeguard for NS strategies to limit the number of potential user events per bar, so before control from the event queue is given back to NT's core processing, that number could be increased, but our suggested approach would be first understanding why this high a number of custom events would be thrown for your code.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      more info needed

      Please explain what you mean 'user events'.
      Do you mean the user watching the chart?
      Or do you mean user as in programmer and therefore events generated from my script?

      If it is the later, can you give an example of what would qualify as one of these events?
      Would a call to 'ForceRefresh()' qualify?

      Gary

      Comment


        #4
        Hello GaryAlbers,

        Thank you for your patience.

        This would be the events in the script. And this could be any item including ForceRefresh().
        Patrick H.NinjaTrader Customer Service

        Comment


          #5
          This may not be what you need, but you can try adding this to Initialize,

          Code:
          // increase depth of event queue
          MaxProcessedEvents = 1000;

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by rouillard, Today, 03:34 PM
          2 responses
          21 views
          0 likes
          Last Post rouillard  
          Started by mquinteroj, Today, 02:41 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by JPPoulin, Today, 01:32 PM
          4 responses
          15 views
          0 likes
          Last Post JPPoulin  
          Started by bltdavid, Today, 01:09 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Kate  
          Started by pstrusi, Today, 12:50 PM
          2 responses
          8 views
          0 likes
          Last Post pstrusi
          by pstrusi
           
          Working...
          X