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

Print() don`t work

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

    Print() don`t work

    I`m trying to print a message to output window through bactesting using Print:

    protected override void OnBarUpdate()
    {
    Print("soobshenie");
    ...


    Output window is blank (

    #2
    Hello Vitaleg,

    One thing to check here is that you open the output window before running the backtest.

    If you're doing this and not seeing output, check log tab for any error messages related to this strategy.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      I`ve had output window opened all the time. In Log I see a couple of entries "Message" appearing through backtesting. But output window is still blank. Please advise.

      Comment


        #4
        Your snippet and decription indicate it is not processing OnBarUpdate(). Please post the strategy file and outline the steps needed to see this. Thanks.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Oh my god, I cannot understand what`s wrong with it. I have putted in the strategy function to post a message to Log "Test". Backtested and saw this message. Then I`ve unloched the code of this strategy and manually changed stringg "Test" to "Test1" and saved. And you know what? It still displays "Test". I`m frustrated.

          Comment


            #6
            It sounds like you are not running the latest version of the strategy. After making any changes to your strategy, be sure to right click and select backtest again.

            Let us know if you're still having issues, and post the files you're working with.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Oh...oh. I figured it out. I had to push Compile button, not save. Thank you.

              Comment


                #8
                Glad to hear it's sorted and was something simple. Thanks for the update.
                Ryan M.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by DJ888, 04-16-2024, 06:09 PM
                4 responses
                12 views
                0 likes
                Last Post DJ888
                by DJ888
                 
                Started by terofs, Today, 04:18 PM
                0 responses
                11 views
                0 likes
                Last Post terofs
                by terofs
                 
                Started by nandhumca, Today, 03:41 PM
                0 responses
                7 views
                0 likes
                Last Post nandhumca  
                Started by The_Sec, Today, 03:37 PM
                0 responses
                3 views
                0 likes
                Last Post The_Sec
                by The_Sec
                 
                Started by GwFutures1988, Today, 02:48 PM
                1 response
                9 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Working...
                X