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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      64 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      149 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      99 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      286 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X