• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars.SinceSession of yesterday session

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

    Bars.SinceSession of yesterday session

    Hi is it possible to overload ( not sure if that's the correct terminology) Bars.SinceSession to get the number of bars of yesterdays session? something like this : Bars.SinceSession[1];

    #2
    GKonheiser, there would be unfortunately no collection of prior session bar counts, however to access yesterdays count you could for example consider doring something like this to store the last count for access on FirstTickOfBar today.

    if (Bars.FirstBarOfSession == false)
    yestSessionCt = Bars.BarsSinceSession;

    if (Bars.FirstBarOfSession)
    {
    yestSessionCt = Bars.BarsSinceSession;
    }
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Emma1, Today, 04:17 PM
    0 responses
    1 view
    0 likes
    Last Post Emma1
    by Emma1
     
    Started by Johnny Santiago, Today, 12:30 PM
    7 responses
    35 views
    0 likes
    Last Post Johnny Santiago  
    Started by ttodua, Today, 12:26 PM
    3 responses
    8 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by dastaan, 06-26-2020, 04:33 AM
    6 responses
    114 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by RumHam, Today, 12:14 PM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Working...
    X