Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 sightcareclickhere, Today, 01:55 PM
      0 responses
      1 view
      0 likes
      Last Post sightcareclickhere  
      Started by Mindset, 05-06-2023, 09:03 PM
      9 responses
      258 views
      0 likes
      Last Post ender_wiggum  
      Started by Mizzouman1, Today, 07:35 AM
      4 responses
      18 views
      0 likes
      Last Post Mizzouman1  
      Started by philmg, Today, 01:17 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by cre8able, Today, 01:01 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X