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

How to print only at the last bar

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

    How to print only at the last bar

    I'm using the Print function to print some variables, but I'm really interested just at the value of those variables at the last bar.
    How can I do something like:
    if (LastBar)
    Print (etc)

    Thanks

    #2
    stefy, unfortunately you would need to custom code this with storing barnumbers to a variable and then comparing to the CurrentBar.

    BertrandNinjaTrader Customer Service

    Comment


      #3
      Is there a way to call programmatically the last day of backtest?

      Comment


        #4
        No, but you can add an input where you enter the last day of your backtest then access this in your script.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by The_Sec, Yesterday, 03:53 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by mmenigma, Yesterday, 03:25 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by kujista, Today, 05:44 AM
        0 responses
        7 views
        0 likes
        Last Post kujista
        by kujista
         
        Started by ZenCortexCLICK, Today, 04:58 AM
        0 responses
        9 views
        0 likes
        Last Post ZenCortexCLICK  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        172 responses
        2,283 views
        0 likes
        Last Post sidlercom80  
        Working...
        X