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

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?



    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 Shansen, 08-30-2019, 10:18 PM
    24 responses
    939 views
    0 likes
    Last Post spwizard  
    Started by Max238, Today, 01:28 AM
    0 responses
    7 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by rocketman7, Today, 01:00 AM
    0 responses
    4 views
    0 likes
    Last Post rocketman7  
    Started by wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    28 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    33 views
    0 likes
    Last Post wzgy0920  
    Working...
    X