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 inanazsocial, Today, 01:15 AM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Jason  
                Started by rocketman7, Today, 02:12 AM
                0 responses
                6 views
                0 likes
                Last Post rocketman7  
                Started by dustydbayer, Today, 01:59 AM
                0 responses
                1 view
                0 likes
                Last Post dustydbayer  
                Started by trilliantrader, 04-18-2024, 08:16 AM
                5 responses
                23 views
                0 likes
                Last Post trilliantrader  
                Started by Davidtowleii, Today, 12:15 AM
                0 responses
                3 views
                0 likes
                Last Post Davidtowleii  
                Working...
                X