Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unintended consequences

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

    Unintended consequences

    Indicator #1
    Creates a list of oscillations, the list is public
    It also triggers some alerts

    Indicator #2
    I access the list from Indicator #1 to draw some lines.

    When indicator #2 is applied and running Indicator #1 generates alerts that no longer exist in the code. i.e. commented out then deleted. Indicator #2 generates no alerts so the only alerts can come from indicator #1 and they only happen when indicator #2 is running.


    I recompiled and removed both indicators and reapplied but for some reason I am still getting these old alerts. I have searched the code on the alert messages and cannot find anything that would be triggered.

    How do I debug this since I cannot find the code that is generating it. Is there a way to trap the alert if so could you supply an example.

    ~J

    #2
    Hello JerryWar,

    Thank you for your post.

    Unfortunately, I am not aware of any way to trap the alert. Do you see/hear alerts when the indicators are removed from the chart?

    May we review the code for these indicators?

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello JerryWar,

      Thank you for your post.

      Unfortunately, I am not aware of any way to trap the alert. Do you see/hear alerts when the indicators are removed from the chart?

      May we review the code for these indicators?

      Patrick

      I found it. It was hidden because I instantiated an instance of a different version so the alert was not directly searchable. Something to thing about for future versions in terms of the search criteria.

      Thanks
      J~

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      156 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      90 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      140 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      130 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      107 views
      0 likes
      Last Post CarlTrading  
      Working...
      X