Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ResourceType = typeof(Custom.Resource)

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

    ResourceType = typeof(Custom.Resource)

    I got this from SampleUniversalMovingAverage
    Code:
    [Display(GroupName = "Parameters", Description="Choose a Moving Average Type.")]
    public UniversalMovingAverage MAType
    {
    get { return maType; }
    set { maType = value; }
    }
    should I include ResourceType = typeof(Custom.Resource)​

    #2
    Hello fingers,

    Thank you for your post.

    From the Help Guide:

    "You may have noticed the default NinjaTrader types such as indicators or strategies use a "ResourceType = typeof(Custom.Resource)" property in the DisplayAttribute. This is done for localization purposes, so the default NinjaTrader UI translates to other supported international languages, but is not required for your custom NinjaScript types. The ResourceType property can be safely ignored and left out in your custom development."



    Please let us know if you have any further questions.

    Comment


      #3
      ok thanks.

      can you tell me what these mean in the trace file

      2024-01-10 08:37:55:303 Required resource key 'brushOrderWorking' is missing.
      2024-01-10 08:37:55:303 Required resource key 'brushOrderAccepted' is missing.
      2024-01-10 08:37:55:303 Required resource key 'brushOrderPartFilled' is missing.
      2024-01-10 08:37:55:303 Required resource key 'brushOrderInitialized' is missing.​

      Comment


        #4
        Hello fingers,

        This may be an error from a skin you are using, could you please let me know what skin you are currently using? You can check by going to Tools > Options > General > Skin.

        Please send me your log and trace files so that I may look into this.

        You can do this by going to the Control Center-> Help-> Email Support

        Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

        Please reference the following ticket number in the body of the email: Case Number: 04200332 ATTN Gaby​

        Comment


          #5
          re. skin see also https://forum.ninjatrader.com/forum/...or-compilation

          Comment


            #6
            Hello fingers,

            Could you please let me know what skin you are using? Is this a custom skin, or one of the default skins? Have you tried changing the skin and seeing if you still see the same?

            If this is a default skin, try 'Skins' folder in NinjaTrader 8 > templates folder and then run the repair from the installer.

            To complete a repair, do the following:
            • Shut down NinjaTrader 8
            • Go to your computer's Control Panel > Programs & Features (Note: search for 'Control Panel' to find it within the Windows Start Menu. This will be a different window than the Settings page)
            • Left-click once on NinjaTrader 8 > select 'Repair' above the list of available programs
            • Restart the platform after it finishes repairing, and test for this behavior again.

            Please me know the results of this test. I look forward to your response.​

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            633 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            567 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X