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 maybeimnotrader, Today, 05:46 PM
    0 responses
    6 views
    0 likes
    Last Post maybeimnotrader  
    Started by quantismo, Today, 05:13 PM
    0 responses
    6 views
    0 likes
    Last Post quantismo  
    Started by AttiM, 02-14-2024, 05:20 PM
    8 responses
    166 views
    0 likes
    Last Post jeronymite  
    Started by cre8able, Today, 04:22 PM
    0 responses
    8 views
    0 likes
    Last Post cre8able  
    Started by RichStudent, Today, 04:21 PM
    0 responses
    5 views
    0 likes
    Last Post RichStudent  
    Working...
    X