Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Kaledus, Today, 01:29 PM
              0 responses
              3 views
              0 likes
              Last Post Kaledus
              by Kaledus
               
              Started by PaulMohn, Today, 12:36 PM
              1 response
              16 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by yertle, Yesterday, 08:38 AM
              8 responses
              36 views
              0 likes
              Last Post ryjoga
              by ryjoga
               
              Started by rdtdale, Today, 01:02 PM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Started by alifarahani, Today, 09:40 AM
              3 responses
              18 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X