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

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 techgetgame, Today, 11:42 PM
    0 responses
    5 views
    0 likes
    Last Post techgetgame  
    Started by sephichapdson, Today, 11:36 PM
    0 responses
    1 view
    0 likes
    Last Post sephichapdson  
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,612 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    9 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    19 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Working...
    X