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 frankthearm, Today, 09:08 AM
    6 responses
    24 views
    0 likes
    Last Post frankthearm  
    Started by maybeimnotrader, Yesterday, 05:46 PM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by adeelshahzad, Today, 03:54 AM
    5 responses
    32 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    7 responses
    32 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by merzo, 06-25-2023, 02:19 AM
    10 responses
    823 views
    1 like
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X