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 usazencort, Today, 01:16 AM
    0 responses
    1 view
    0 likes
    Last Post usazencort  
    Started by kaywai, 09-01-2023, 08:44 PM
    5 responses
    603 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    6 responses
    22 views
    0 likes
    Last Post xiinteractive  
    Started by Pattontje, Yesterday, 02:10 PM
    2 responses
    21 views
    0 likes
    Last Post Pattontje  
    Started by flybuzz, 04-21-2024, 04:07 PM
    17 responses
    230 views
    0 likes
    Last Post TradingLoss  
    Working...
    X