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 bill2023, Yesterday, 08:51 AM
    8 responses
    43 views
    0 likes
    Last Post bill2023  
    Started by yertle, Today, 08:38 AM
    6 responses
    25 views
    0 likes
    Last Post ryjoga
    by ryjoga
     
    Started by algospoke, Yesterday, 06:40 PM
    2 responses
    24 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    46 views
    0 likes
    Last Post jeronymite  
    Working...
    X