Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

New compilation error for FirstTickOfBar

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

    New compilation error for FirstTickOfBar

    Hi there, I'm getting a new compilation error on this piece of code:

    if (FirstTickOfBar && (Position.MarketPosition == MarketPosition.Flat)) {

    The compilation error is, "The name 'IsFirstTickOfBar' does not exist in the current context". This is odd, because I've successfully compiled this same code for at least week. Also, the usage is consistent with the reference code at https://ninjatrader.com/support/help...ttickofbar.htm

    The only thing I can think of, there's some cross-contamination with NT8? I'm in the process of porting this strategy over to NT8. During the process, I changed FirstTickOfBar in my NT7 strategy to IsFirstTickOfBar in my NT8 strategy. Ever since this, I'm now getting this new compilation error on my NT7 strategy code.

    Thanks,
    Attached Files

    #2
    Please ignore. I've now fixed this issue. Thanks

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    574 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    333 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X