Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TimeSpan indicator parameter settings lost

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

    TimeSpan indicator parameter settings lost

    Hello in the process of converting some of my indicators from NT7 to NT8 one of them includes some TimeSpan inputs which have 00:00:00 as default.

    On compiling and running yesterday all worked fine and the time calculations based on new TradingHours replacing the Bars.Session seems to work as i desire for the purposes of the indicator.

    When i saved the workspace and opened today the settings which were changed in some instances on some charts to other times have all reverted back to 00:00:00
    Does this need to be serialised or something else in the way Colors were in NT7.

    There was no issue in NT7 for these inputs being saved between closing and launching NT7.

    I am using TickReplay on the dataseries set to true ... and noticed this morning that when trying to change the parameters back and closing indicator panel NT8 just suspended and did not come back and needed to kill the process via the task manager.

    thanks

    #2
    Hello, please disregard i had 2 versions of this indicator one which used (00:00:00) and the other was actually coded to handle the TimeSpan serialisation i now recall has to be provided as was written a while ago. Now i will convert this version.


    [Browsable(false)]
    public string StartTimeSerialize
    {
    get { return startTime.ToString(); }
    set { startTime = TimeSpan.Parse(value); }
    }

    Comment


      #3
      Hello,

      Thank you for the reply that you had found the answer on this.

      You are correct, TimeSpan's and most other more complex Types would need to be put into a string to be serialized and that is able to be re-parsed by that types Parse method.

      Please let me know if I may be of further assistance.
      JesseNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by GussJ, 03-04-2020, 03:11 PM
      16 responses
      3,279 views
      0 likes
      Last Post Leafcutter  
      Started by WHICKED, Today, 12:45 PM
      2 responses
      19 views
      0 likes
      Last Post WHICKED
      by WHICKED
       
      Started by Tim-c, Today, 02:10 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Taddypole, Today, 02:47 PM
      0 responses
      5 views
      0 likes
      Last Post Taddypole  
      Started by chbruno, 04-24-2024, 04:10 PM
      4 responses
      51 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Working...
      X