![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Dec 2010
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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.
Brett
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |