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

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
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by carnitron, Today, 08:42 PM
    0 responses
    5 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Today, 07:51 PM
    0 responses
    6 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,974 views
    3 likes
    Last Post jhudas88  
    Started by rbeckmann05, Today, 06:48 PM
    0 responses
    8 views
    0 likes
    Last Post rbeckmann05  
    Started by rhyminkevin, Today, 04:58 PM
    4 responses
    58 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Working...
    X