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 MacDad, 02-25-2024, 11:48 PM
    7 responses
    158 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    7 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Working...
    X