Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TriggerCustomEvent

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

    TriggerCustomEvent

    Is it possible to have multiple "TriggerCustomEvents()" in your code? Or should you consider it a one-time, sort of, wrapper around some custom logic?

    #2
    Originally posted by funk101 View Post
    Is it possible to have multiple "TriggerCustomEvents()" in your code? Or should you consider it a one-time, sort of, wrapper around some custom logic?
    I believe you can have multiple calls

    Comment


      #3
      I use it twice in an indicator. What do you doubt about? Compilation? Scheduling conflict?

      Regards
      Ralph

      Comment


        #4
        I know nothing 'bout it, that's all.
        Last edited by funk101; 04-12-2009, 03:50 AM.

        Comment


          #5
          TriggerCustomEvent()

          What does this method *actually* do? Is some form of threading method?

          Comment


            #6
            If you define your own events then they could conflict with the NT threads, i.e. in case they access the same data structures of your code. TriggerCustomEvents() schedules your events.

            Regards
            Ralph

            Comment


              #7


              Definition
              This method provides a way to use your own custom events (such as a Timer object) so that internal NinjaScript indexes and pointers are correctly set prior to processing user code triggered by your custom event. When calling this event, NinjaTrader will synchronize all internal pointers and then call your custom event handler where your user code is located.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              571 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              330 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              548 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              549 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X