Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using a TypeConverter to Customize Property Grid Behavior

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

    Using a TypeConverter to Customize Property Grid Behavior

    Hi, please refer to this sample indicator:


    Can I find out why the indicator stops working when I move it to a folder?

    #2
    Hello Rainmakersg,

    Thank you for your post.

    Can you please provide more specific information about how the indicator stops working?

    Are you getting compile errors, or errors in the Log?

    What specific unexpected behavior are you encountering?

    I look forward to your response.

    Comment


      #3
      Hi, the indicator allows the user to customize the properties of the indicator (5 use cases). When it is installed as it is, the properties will act accordingly. But when the indicator is moved to a folder, the properties of the indicator will not behave like they were supposed to. Example, the toggle no longer works and locked text is no longer locked.

      If you repeat the above steps described, you should be able too see what I mean.

      Comment


        #4
        Hello Rainmakersg,

        Thank you for your response.

        Did you edit the namespace the TypeConverter is pointing to to match the folder?

        [TypeConverter("NinjaTrader.NinjaScript.Indicators. MyConverter")]

        At the top of the Indicator class, this needs to be edited so it points to the folder you moved the indicator to.

        [TypeConverter("NinjaTrader.NinjaScript.Indicators.YourFolderName.MyConverter")]

        Comment


          #5
          Thanks. It works.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          150 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          303 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          243 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          345 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          174 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X