• 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

TypeCast and [GridCategory("Files")] error

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

    TypeCast and [GridCategory("Files")] error

    There is a weird error with typecasting and GridCategory i spent all day yesterday and this morning to try to figure out why my indicator keeps on crashing if I have more than 1 typecast

    SCENARIO 1 WORKS



    [GridCategory("Files")]
    [TypeConverter(typeof(FileNameList))]
    public string TradeFiles
    {get;set;}


    private string sResFiles = "";

    [TypeConverter(typeof(SoundManagerConverter))]
    public string myFiles
    {get;set;}

    //private string sTradeFiles = "";

    [TypeConverter(typeof(ResNameList))]
    public string ResTradeFiles
    {get;set;}


    SCENARIO 2 WORKS WITH NO GRIDCATEGORY


    [TypeConverter(typeof(FileNameList))]
    public string TradeFiles
    {get;set;}


    private string sResFiles = "";

    [TypeConverter(typeof(SoundManagerConverter))]
    public string myFiles
    {get;set;}

    //private string sTradeFiles = "";

    [TypeConverter(typeof(ResNameList))]
    public string ResTradeFiles
    {get;set;}


    SCENARIO 3 FAILS MOVING GRID CATEGORY TO THE SECOND TYPCONVERTER OR THIRD WILL FAIL ONLY THE FIRST ONE IF I ADD A DIFFERENT NAME AS WELL IT WILL FAIL I CAN'T FIGURE THIS ONE OUT EVEN IF I HAVE THE GRIDCATEGORY ON ALL 3 WITH THE SAME NAME IT WILL FAIL AS WELL IF NO GRIDCATEGORY IT WILL WORK AND GOTO MISC IN THE PARAMETER FIELDS


    [TypeConverter(typeof(FileNameList))]
    public string TradeFiles
    {get;set;}


    private string sResFiles = "";
    [GridCategory("Files")]
    [TypeConverter(typeof(SoundManagerConverter))]
    public string myFiles
    {get;set;}

    //private string sTradeFiles = "";

    [TypeConverter(typeof(ResNameList))]
    public string ResTradeFiles
    {get;set;}

    #2
    Hello ballboy11,

    Is this a completely different and separate issue than your other post which seems similar?

    https://ninjatrader.com/support/foru...699#post525699

    I am currently looking into your previous post.. Please confirm this is a new thread because this is a different issue.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by sohailashraf, Yesterday, 10:18 PM
    0 responses
    4 views
    0 likes
    Last Post sohailashraf  
    Started by jjnc2006, Yesterday, 07:36 PM
    0 responses
    10 views
    0 likes
    Last Post jjnc2006  
    Started by futurenick, Yesterday, 06:26 AM
    1 response
    12 views
    0 likes
    Last Post nkhoi
    by nkhoi
     
    Started by NinjaCustomer, Yesterday, 12:29 PM
    2 responses
    10 views
    0 likes
    Last Post NinjaCustomer  
    Started by Steve L, Yesterday, 11:32 AM
    0 responses
    8 views
    0 likes
    Last Post Steve L
    by Steve L
     
    Working...
    X