Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PrintWithTimeStamp

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

    PrintWithTimeStamp

    I have started the laborious task to migrate all my NT7 Strategies to NT8.
    NT8 NinjaScript does recognize the PrintWithTimeStamp command?
    Why is this not upward compatible and what is equivalent in NT8?

    #2
    Originally posted by PaulZ View Post
    I have started the laborious task to migrate all my NT7 Strategies to NT8.
    NT8 NinjaScript does recognize the PrintWithTimeStamp command?
    Why is this not upward compatible and what is equivalent in NT8?
    I can't find it searching NT7 documentation, and I don't see it related to .NET.

    Are you missing a custom #include?

    I can only find 2 posts on futuresio in nonmembers section.

    Comment


      #3
      Hello PaulZ,

      The PrintWithTimeStamp was undocumented for NinjaTrader 7.

      There isn't an equivalent method for this in NinjaTrader 8, however, I am happy to submit a feature request on your behalf for this.
      Please let me know if you would like to submit a feature request for a PrintWithTimeStamp method in NinjaTrader 8.

      In the meantime you can add the time shown by NinjaTrader to the string.

      For example:

      Print(NinjaTrader.Core. Globals.Now.ToString() + " My message");
      Print(string.Format("{0} My message", NinjaTrader.Core. Globals.Now));
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        PrintWithTimeStamp is very valuable for bugfixing during backtesting.
        Yes, I would like to submit a feature request for this method in NinjaTrader 8.

        Comment


          #5
          Hello PaulZ,

          Thank you for the suggestion.

          Our development has provided me with a tracking ID for your request. Your request to add a PrintWithTimestamp method to NinjaScript is being tracked with ID #SFT-1876.

          It is up to the NinjaTrader Development to decide if and when a feature request will be implemented.

          Please let me know if you have any other suggestions or requests for the NinjaTrader Platform.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            I am new to programming so I am guessing that you are looking for something more advanced but I use this with NT8 to print to the output window and it helps me find problems. Maybe it will help other newbies. Example Print(Time[0] + " myVariable is " + myVariable);

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            56 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            133 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            73 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            45 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            49 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X