• 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

TriggerCustomEvent() question

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

    TriggerCustomEvent() question

    Hi there,

    I am currently writing error-handling code for my strategy. One of the thing I have done (& it works ok) is to register my own PowerModeChangeEventHandler() to deal with PC going 'Suspended' on UPS signaled power failures.

    Since I didn't use TriggerCustomEvent() in doing this, and my code works OK, I am wondering what is the real purpose of this TriggerCustomeEvent() - is it just limited to mapping CurrentBar/High/Low/etc. dataseries to a particular timeframe/bar series (which isn't really required as long as one is using the multi-timeframe CurrentBars[]/Highs[]/Lows[]/etc), or does it do more than this, and if so what ?

    Thanks in advance
    Dominique

    #2
    Dom,

    Good morning.

    Biggest thing this is here for is to make sure you do not trigger a custom event while you are in the middle or processing a bar and wait for bar processing to complete and queue the event until it is ready to be handled and all DataSeries calculations or complete.
    BrettNinjaTrader Product Management

    Comment


      #3
      Brett,

      Can you explain in more details, what this means "NinjaTrader will synchronize all internal pointers"..

      http://ninjatrader.com/support/helpG...ustomevent.htm

      Also what this means in regards to the 'barsIndex' parameter.

      If not, can you put in a request that the documentation be expanded to clarify.

      Thanks

      Comment


        #4
        I will put in your request for the documentation to be expanded in this area.
        BrettNinjaTrader Product Management

        Comment


          #5
          OK, now I get it ... good thing I asked the question!

          Thanks much
          Dominique

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by itrader46, 10-03-2019, 06:18 AM
          35 responses
          185 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by aslane, Today, 03:09 PM
          1 response
          6 views
          0 likes
          Last Post rickyblah12  
          Started by stoner, Today, 02:36 PM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_Melissa  
          Started by meandthetrio, Today, 03:03 PM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_Heath  
          Started by rickyblah12, Today, 03:07 PM
          0 responses
          4 views
          0 likes
          Last Post rickyblah12  
          Working...
          X