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

Conflicting Indicators?

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

    Conflicting Indicators?

    HI,

    One of my beta users is experiencing the below when running another 3rd party indicator. He tells me that this error is only being thrown in the other indicaor (not related to me) when my indicator is installed on his system. It doesnt need to be running, only installed.

    Generally i would think that there would be no interaction with other installed indicators, especially when they are not in use, However, i did notice recently that some print statements that I had in my OnState Changes where firing off into the output window even when my indicator was not on any chart. Is this normal? It certainly lends to speculation that there could then be some sort of conflict between to unlinked indicators....

    Any thoughts?




    2017-02-10 08:01:38:387 Multiple properties with same name were found: Type(NinjaTrader.NinjaScript.MarketAnalyzerColumns .IndicatorMarketAnalyzerColumn) Property name(PDEX_InputUI)
    2017-02-10 08:01:38:719 ERROR: Indicator '(null)': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
    2017-02-10 08:01:38:721 *************** unhandled exception trapped ***************
    2017-02-10 08:01:38:721 Value cannot be null.
    2017-02-10 08:01:38:721 System.ArgumentNullException: Value cannot be null.
    at System.Threading.Monitor.Enter(Object obj)
    at NinjaTrader.NinjaScript.NinjaScriptBase.SetState(S tate state)
    at NinjaTrader.Gui.NinjaScript.IndicatorRenderBase.Se tState(State state)
    at NinjaTrader.NinjaScript.NinjaScriptBase.SetState(S tate state)
    at NinjaTrader.Gui.NinjaScript.IndicatorRenderBase.Se tState(State state)
    at NinjaTrader.NinjaScript.NinjaScriptBase.Finalize()

    #2
    Hello marty087,

    Thank you for your post.

    The error suggests a conflict of the same named item in two scripts. Are any of your items static classes or enumerations?

    I look forward to your response.

    Comment


      #3
      Hi Patrick,

      No enums or static's of any kind....

      Any other suggestions?

      Comment


        #4
        Could it be Dashstyle names?

        Comment


          #5
          Hello marty087,

          Thank you for your response.

          I don't suspect the DashStyles as it appears the error generates from the Market Analyzer Columns. Are you creating any custom Market Analyzer Columns?

          I look forward to your response.

          Comment


            #6
            Hello,

            I am running into a similar problem with my custom indicator. I see you mentioned "static" items as a source of problems, so I did a search through my indicators.

            I do have some static strings as well as a few static graphics-related functions (rotating text, etc) within my public class.

            I changed my static functions to no longer be static, which prevents that "Market Analyzer Alert error" from happening! (I left my static strings, as that did not seem to cause an issue.)

            I just wanted to thank you and hopefully help anyone who stumbled on this in the future (like myself, when I do a google search on this problem again!)

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by rtwave, 04-12-2024, 09:30 AM
            4 responses
            31 views
            0 likes
            Last Post rtwave
            by rtwave
             
            Started by yertle, Yesterday, 08:38 AM
            7 responses
            29 views
            0 likes
            Last Post yertle
            by yertle
             
            Started by bmartz, 03-12-2024, 06:12 AM
            2 responses
            22 views
            0 likes
            Last Post bmartz
            by bmartz
             
            Started by funk10101, Today, 12:02 AM
            0 responses
            7 views
            0 likes
            Last Post funk10101  
            Started by gravdigaz6, Yesterday, 11:40 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Working...
            X