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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          61 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          148 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          98 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          286 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X