Guys can anybody tell me how to save the parameters in NT6.5
basically i have used 2 datetime and 2 timespan as properties (parameters) and wanted to save the same so that when i reopen the workspace or so i could retrieve the changed parameters.
i have tried writing and retrive the same from an XmlSerializer. but sadly results are not so encouraging. it does retrieves the values but is cropping up other issues.
Site Administrator Swing Trader Data Scientist & DevOps
Manta, Ecuador
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
Posts: 49,779 since Jun 2009
Thanks: 32,306 given,
97,566
received
bukkan,
I separated your question into its own thread. I'm sorry I can't say for sure how to do it, but I have some ideas, and when I get some time I will try to test. Hopefully others can contribute between now and then.
this post at NT support forum is of great help. now i can save and retrieve the settings but the problem is while accessing the same from a workspace (with the indicator on), the parameter values are restoring to their default values. seems the initialize part is called at the end can anybody throw some light. any workaround possible
if i remove the xmlignore() from the properties the workspace seems to behave the way i wanted. but i have date and time (TimeSpan) parameters. date seems to work fine but time doesnt. atleast i am moving somewhere.
thanks, i have not used NT7, but the problem sees a bit deeper. I want to select time from the parameters. for this i am using TimeSpan as one of the properties. the problem is xml doesnt save TimeSpan. since Ninja saves the workspace settings in xml, seems we still have some issues ahead.
I have not seen your code, so this may be off base, but to code timespans, I would use a start time, and then an int for minutes and just use an addition of the timespan minutes to the start time.