Announcement

Collapse
No announcement yet.

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 omermirza, Today, 12:39 PM
    0 responses
    1 view
    0 likes
    Last Post omermirza  
    Started by larkmail, Today, 12:30 PM
    0 responses
    4 views
    0 likes
    Last Post larkmail  
    Started by Danila, Today, 11:08 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by dbida001, Today, 10:31 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by Brandon9821, Today, 08:27 AM
    3 responses
    27 views
    0 likes
    Last Post Brandon9821  
    Working...
    X