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 sjsj2732, Today, 04:31 AM
      0 responses
      20 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      280 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      279 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      130 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      90 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X