• 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 odvsndvs, Today, 03:20 AM
    0 responses
    2 views
    0 likes
    Last Post odvsndvs  
    Started by manueldecastro, Today, 12:57 AM
    0 responses
    5 views
    0 likes
    Last Post manueldecastro  
    Started by JulieG, Today, 12:40 AM
    0 responses
    5 views
    0 likes
    Last Post JulieG
    by JulieG
     
    Started by jimjoe123, Yesterday, 09:28 PM
    2 responses
    14 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by 12VMan, 08-20-2019, 09:29 AM
    2 responses
    27 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Working...
    X