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 Barry Milan, Today, 10:35 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by WeyldFalcon, 12-10-2020, 06:48 PM
            14 responses
            1,428 views
            0 likes
            Last Post Handclap0241  
            Started by DJ888, Yesterday, 06:09 PM
            2 responses
            9 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by jeronymite, 04-12-2024, 04:26 PM
            3 responses
            40 views
            0 likes
            Last Post jeronymite  
            Started by bill2023, Today, 08:51 AM
            2 responses
            16 views
            0 likes
            Last Post bill2023  
            Working...
            X