NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 12-30-2010, 07:13 AM   #1
denhu fazu
Junior Member
 
Join Date: Dec 2010
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
Default 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.
denhu fazu is offline  
Reply With Quote
Old 12-30-2010, 08:20 AM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

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.
NinjaTrader_Brett is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serializing Indicator daven Indicator Development 28 07-08-2012 07:15 PM
Using TimeSpan to return a value cboat General Programming 5 04-09-2010 02:33 PM
XML Serializing error mtthwbrnd Strategy Development 6 02-15-2010 11:41 AM
Timespan parameters sequentur General Programming 3 11-04-2009 07:54 AM
What does SERIALIZING INDICATORS mean? simpletrades Indicator Development 5 08-24-2009 07:31 AM


All times are GMT -6. The time now is 07:32 PM.