Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using crossAbove,Below with first tick of bar

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

    Using crossAbove,Below with first tick of bar

    My strategy is running calculate on bar close=false.
    I am using FirstTickOfBar

    I Want to know if ema is crossabove close.

    I just found case, when first tick of bar is above ema, but when i am cheking buy/sel logic and bar is closing its not over ema, and its giving me false signal.

    This is one reason Ninja should also have LastTickOfBar,
    I can't now use crossabove or below methods. Or can I is There some way. ???

    This happen if price gaps "in this case 2 ticks" from real close, and try to use crossabove/below function same time when using firsttickofbar and calculate on bar close=false

    #2
    jokujoku, can you please post the code you're using so we can see exactly how it is functioning? If the first tick of the bar is above the EMA and you're using FirstTickOfBar, then there is indeed a crossover. It doesn't matter what the rest of the bar says if you're using FirstTickOfBar.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Austin View Post
      jokujoku, can you please post the code you're using so we can see exactly how it is functioning? If the first tick of the bar is above the EMA and you're using FirstTickOfBar, then there is indeed a crossover. It doesn't matter what the rest of the bar says if you're using FirstTickOfBar.

      You don't need my code, in case when ealier bar close below ema(20)
      but if I am testing is this closed bar above ema(20), crossabove(close,ema(20),4)
      in first tick of bar gives me true, if there is gap in price and next bars price is over ema(20)

      You need data where this kind of situation happends.

      Comment


        #4
        jokujoku, we would need to reproduce this case scenario here and take a look into - if you're willing to share your data and simple strategy snippet where you see the issue, please contact us with the needed files at support at ninjatrader dot com

        Thanks,

        Comment


          #5
          I allready made own check, and not using your crossover and crossbelow, much faster for solve this issue, because there is lot of other issue too.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          647 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          368 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          571 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X