• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom MarketAnalyzer no resource found

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

    Custom MarketAnalyzer no resource found

    I have a custom MarketAnalyzer class which inherits from the NinjaTrader.Gui.MarketAnalyzer. There is nothing overly special about my class except that I needed some additional properties and methods on top of the built in MarketAnalyzer.

    I am developing in a what will be a custom DLL. All other controls that I have extended are working fine, except this pesky CustomMarketAnalyzer. If I comment out creating my custom market analyzer, everything run fine (it's an AddOn which spawns this window, among others).

    Here is the error I get when I call my constructor:
    CustomMarketAnalyzer does not have a resource identified by the URI '/NinjaTrader.Gui;component/marketanalyzer/marketanalyzer.xaml'.'

    This error happens regardless of whether I have a 0 parameter constructor or > 0 parameters.

    Last edited by jasonnator; 07-08-2018, 05:12 PM. Reason: attach image

    #2
    I am familiar with designing custom controls and have used this post below to create them in the past.

    https://ninjatrader.com/support/foru...4&postcount=13

    Comment


      #3
      Hello jasonnator,

      To confirm, your script is a custom addon using undocumented code and extending the 'NinjaTrader.Gui.MarketAnalyzer' class instead of a Market Analyzer column script using the 'MarketAnalyzerColumn' class, is this correct?

      This may be outside of what NinjaTrader Support is able to assist with.
      This thread will remain open for any community members that would like to assist.

      You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Hi ChelseaB,

        I tested many different ways in an effort to ensure I wasn't well outside of the documented usage. However, I have even gone as simple as newing up a vanilla MarketAnalyzer in the AddOn OnClick handler and get the same result. I would hope that this would be within the pervue of support. Please let me know what, if anything, you need from me to assist in troubleshooting.

        In hopes of helping, I was able to do this without issues 2 or 3 NT8 versions ago. I am now on 8.0.13.1 64-bit.

        Thanks,

        Jason

        Comment


          #5
          Hello Jason,

          I'm not quite certain that I understand. There isn't a supported way of recreating the Market Analyzer window in an Addon..


          Are you actually trying to make a MarketAnalyzerColumn script and not an Addon in a separate window?

          If so, you might be extending the wrong class name.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            I have included the appropriate using statements and my code is literally as simply as below.

            Code:
            var ma = new MarketAnalyzer();
            ma.Show();

            Comment


              #7
              Hello jasonnator,

              Creating a new instance of a Market Analyzer window is not documented in the NinjaTrader help guide and would be outside of what is supported by NinjaTrader Support.

              Our development has not created a way to create new Charts, Market Analyzer windows, SuperDOMs, Strategy Analyzer windows or any other native window type programmatically. These windows must be opened manually from the New menu.

              You can open a custom coded Addon window this way, but not a chart or market analyzer.

              This thread will remain open for any community members that would like to assist with unsupported code.
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by ntbone, Today, 09:54 PM
              0 responses
              1 view
              0 likes
              Last Post ntbone
              by ntbone
               
              Started by rwilliam, Today, 03:14 PM
              0 responses
              5 views
              0 likes
              Last Post rwilliam  
              Started by rwilliam, Today, 03:10 PM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by rontronimous, Today, 03:04 PM
              2 responses
              8 views
              0 likes
              Last Post rontronimous  
              Started by zacharydw00, Today, 03:14 PM
              0 responses
              5 views
              0 likes
              Last Post zacharydw00  
              Working...
              X