Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Segwin, 05-07-2018, 02:15 PM
            10 responses
            1,767 views
            0 likes
            Last Post Leafcutter  
            Started by Rapine Heihei, 04-23-2024, 07:51 PM
            2 responses
            30 views
            0 likes
            Last Post Max238
            by Max238
             
            Started by Shansen, 08-30-2019, 10:18 PM
            24 responses
            943 views
            0 likes
            Last Post spwizard  
            Started by Max238, Today, 01:28 AM
            0 responses
            9 views
            0 likes
            Last Post Max238
            by Max238
             
            Started by rocketman7, Today, 01:00 AM
            0 responses
            7 views
            0 likes
            Last Post rocketman7  
            Working...
            X