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

Number of bars of a session

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

    Number of bars of a session

    Hello,

    my question is if I can get programatically the numbers of bar of a session from within a strategy. I want to program a strategy with a ATR stop loss with the period being the bars of a intraday session, and I want to backtest it to a number of instruments with different open/close hours, and timeframe, with a single click.

    Any ideas?

    Un saludo,

    Pablo

    #2
    Pablo, you could work with Bars.BarsSinceSession for this task - http://www.ninjatrader-support.com/H...ceSession.html
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by andrewtrades, Today, 04:57 PM
    1 response
    10 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
    9 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    20 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X