Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Serializing with TimeSpan

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

    Serializing with TimeSpan

    Hello,
    (1) I can only search the serializing for custom Color.
    (2) I'm non programmer. How could I serialize the TimeSpan in order to save it in template and workspace?


    [Description("My defined time1")]
    [Category("Settings")]
    [Gui.Design.DisplayName("\t\t\t\t\t\tStart Time")]
    public TimeSpan StartTime
    {
    get { return startTime; }
    set { startTime = value; }
    }

    Thanks and Happy New Year to all.

    #2
    Hello,

    Thanks you for your forum post and welcome to the NinjaTrader support forums.

    Unfortunately colors are the only NinjaTrader supported serialization as c# could not serialize timestamps directly. However you may want to take a look at some user code here:http://www.ninjatrader.com/support/f...24&postcount=3

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    176 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    331 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    254 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    356 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    184 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X