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 dmking, 11-12-2019, 12:31 PM
      4 responses
      4,140 views
      0 likes
      Last Post jasonw
      by jasonw
       
      Started by roblogic, Today, 04:31 PM
      0 responses
      5 views
      0 likes
      Last Post roblogic  
      Started by morrnel, 05-12-2024, 06:07 PM
      4 responses
      53 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by xepher101, 05-10-2024, 12:19 PM
      6 responses
      71 views
      0 likes
      Last Post xepher101  
      Started by gbourque, Today, 04:11 PM
      0 responses
      3 views
      0 likes
      Last Post gbourque  
      Working...
      X