Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TypeConverter help

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

    TypeConverter help

    I copied the TypeConverter example from the help guide and tried creating my own with just one simple checkbox that, when checked, should grey out (dim) a double control. It looks identical so I cannot figure out why mine will not work. Been banging my head against a wall all weekend. Maybe I just need a second set of eyes. I've attached it. Can someone take a look and point me in the right direction?
    Attached Files

    #2
    Hello swooke,

    Thanks for your post.

    To get more acquainted with modifying property grid behavior, I may suggest to first clone the SampleIndicatorTypeConverter example and reduce the functionality so it only applied the behavior for disabling properties. Once you have a reduced example working, it will be easy to copy that code into your own implementation or use a diff checker to compare differences.

    I have attached a reduced version that contains all of the education comments from the example.

    You may also note that you need to apply the TypeConveter to the indicator to have the property grid modifications take effect.

    Code:
    [TypeConverter("NinjaTrader.NinjaScript.Indicators.SectorJunky.MyConverter")]
    public class cs13: Indicator
    Please let us know if we can be of further assistance.
    Attached Files

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sjsj2732, Yesterday, 04:31 AM
    0 responses
    27 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    283 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    280 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    131 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X