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 twitch251, Today, 05:14 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by robforee2, Today, 05:07 PM
    0 responses
    1 view
    0 likes
    Last Post robforee2  
    Started by blar58, Today, 03:16 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Melissa  
    Started by alcorr247, Today, 02:52 PM
    2 responses
    7 views
    0 likes
    Last Post robforee2  
    Started by Radano, Today, 02:30 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X