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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      54 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      25 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      17 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      23 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      24 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X