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

Calculate setting "On each tick" and "Bars" Conditions and Actions

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

    Calculate setting "On each tick" and "Bars" Conditions and Actions

    Hello,

    In Strategy builder we have the option to select the Calculation method which could be On Bar close, On each tick or On price change. But in Conditions and Actions tab some of the options under the selection for the Condition of Price are Bars ago.
    So, the actions of the calculate selection of "On Bar close" is clear, but how the rest of the selections (On each tick and On price change) work with the Conditions and Actions tab "Bars ago" price setting? When does the calculation take place since there will be no bars? Does it translate to ticks for example? And what about the "On price change" option? What is the equivalent of that?

    thanks

    #2
    Hello space_trader,

    In real-time bars ago 0 is always the most recently updated bar. When calculate is OnBarClose the most recently updated bar is the previous fully closed bar and not the currently building bar. When calculate is OnPriceChange/OnEachTick the most recently updated bar is the current building bar. This currently building bar will be the unfinished close, high, low, open, volume of the bar that is currently building and has not closed.

    Below is a link to the help guide.

    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by andrewtrades, Today, 04:57 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    6 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    7 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X