Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Close[0] renko bar

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

    Close[0] renko bar

    Hi

    COBC= true

    Close[0] > close[1] seems to not wait for the close of close[0] but rather execute the command if the incoming tick data is larger that close[1]

    How can I wait to execute my command at the closing of close[0]

    Keep in mind COBC is already true

    #2
    Hello calhawk01,

    With COBC = true, NinjaTrader will only run OnBarUpdate() at the close of each bar. Are you calling an enter method outside of OnBarUpdate() or are you using a multi-time series approach?
    JCNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_JC View Post
      Hello calhawk01,

      With COBC = true, NinjaTrader will only run OnBarUpdate() at the close of each bar. Are you calling an enter method outside of OnBarUpdate() or are you using a multi-time series approach?
      no entry and exit are both in OBU

      here is my exit:

      if market = long & close[0] < close[1] exit.

      i want it to wait for close[0] to actually close. but it seems to exit as soon as close[0] tick data is less than close[1]... even though minutes after close[0] closes above close[1]

      Comment


        #4
        Hello calhawk01,

        What interval are you using for your Renko?
        JCNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_JC View Post
          Hello calhawk01,

          What interval are you using for your Renko?
          brick size 2

          even tried it on brick size 4

          Comment


            #6
            Hello calhawk01,

            Could you send a screenshot of the results that you are getting?
            JCNinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_JC View Post
              Hello calhawk01,

              Could you send a screenshot of the results that you are getting?



              Sure


              Since my exit is close[0] less than close[1] I shouldn't have had exited my position..
              Attached Files

              Comment


                #8
                Hello calhawk01,

                It looks like a Short entry was triggered which caused it to sell.

                Can share a sample of your code so that we maybe of further assistance?
                JCNinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by NinjaTrader_JC View Post
                  Hello calhawk01,

                  It looks like a Short entry was triggered which caused it to sell.

                  Can share a sample of your code so that we maybe of further assistance?
                  not possible

                  its a long only strat

                  no other signal could had triggered as the entry condition contains "if market is flat.. && XYZ happens.. go long"

                  then exit is .. if barssinceexit >0 .. if close0 < close1.. then exit

                  same results with and without barsssinceexit condition.

                  seems like an issue with NT dealing w/ renko bars?

                  Comment


                    #10
                    Hello calhawk01,

                    Backtesting or Historical processing of Strategies on Renko bars do have some limitations that are more deeply discussed in the following thread.

                    Support for the development of custom automated trading strategies using NinjaScript.


                    With that said, though it is hard to say what exactly is going on without more information. If you would like us to assist further a sample of your code that demonstrates this maybe the best next step.
                    JCNinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    649 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    370 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    109 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    574 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    576 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X