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

CurrentBar on Tick Charts with Session begin

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

    CurrentBar on Tick Charts with Session begin

    From my observation CurrentBar Property is not always starting from 0.

    Example:

    - TimeFrame 89 Ticks
    - "Session begins" is set to 6:00

    The first time OnBarUpdate Method is executed the CurrentBar Property is 20 (in my example).

    Is that observation correct or did I get it wrong?

    Is there a NinjaTrader Property to get the first bar / first call?

    #2
    Solved

    OK, understand now


    From Documentation (BarRequired Property for Strategy):


    The OnBarUpdate() method is not triggered until CurrentBar >= BarsRequired.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by 1001111, Today, 01:35 AM
    0 responses
    1 view
    0 likes
    Last Post 1001111
    by 1001111
     
    Started by ETFVoyageur, Yesterday, 07:05 PM
    1 response
    15 views
    0 likes
    Last Post ETFVoyageur  
    Started by MarianApalaghiei, Today, 12:35 AM
    1 response
    7 views
    0 likes
    Last Post MarianApalaghiei  
    Started by Rogers101, 05-05-2024, 11:30 AM
    17 responses
    56 views
    0 likes
    Last Post Rogers101  
    Started by haas88, 03-21-2024, 02:22 AM
    13 responses
    153 views
    0 likes
    Last Post haas88
    by haas88
     
    Working...
    X