Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trigger Custom Event

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

    Trigger Custom Event

    Hi
    Quick question to make sure it's best practice. If not, what's the better way to do it?
    Can I trigger multiple events in the same event processor eg
    Code:
            #region TimerEventProcessor
            
            private void TimerEventProcessor(Object myObject, EventArgs myEventArgs)
            {
              TriggerCustomEvent(Flash,0,FlashSpeed);
              TriggerCustomEvent(Play_Sound,0,FlashSpeed);
            }
            
    #endregion
    ​
    I am in the process of revising one of my EcoSystem Indicators and this solves a few issues.
    It works but I would like to know if this is the way I should be coding for NT?
    thanks

    #2
    Hello Mindset,

    Thank you for your post.

    I don't see any issue with triggering multiple events in the same processor, you're using different naming conventions to separate the events which would be the way to go.

    If everything is working as expected I don't have further suggestions.

    Please let us know if you have any further questions.

    Comment


      #3
      Thanks Gaby - I have posted a revised CrossAbove CrossBelow line indicator in the share file section.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      128 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      73 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      116 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      109 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      88 views
      0 likes
      Last Post CarlTrading  
      Working...
      X