Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Do not work if CalculateOnBarClose = false;

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

    Do not work if CalculateOnBarClose = false;

    Hi I have a simple breakout strategy that whenever I set CalculateOnBarClose = false do not show any trades. If I set CalculateOnBarClose = true, is working ok.

    The chart I am usun is a 150 last tick chart.

    Can anybody give a clue about wha´s happening.

    Thanls a lot.

    #2
    Do you reference a bar more back in your conditions if CalculateOnBarClose is false?

    What indicators are you referencing in this strategy?

    Comment


      #3
      Well, this problenm is solved.

      I have e new question.

      Even though I am using CalculateOnBarClose = false, the market orders are being triggeredin the next open.

      Is this normal?
      I thought that on a tick's chart every tick was taken into account for the calculations.

      Thanks

      Comment


        #4
        Great you got it working - are you talking about backtesting or realtime running with your last question? CalculateOnBarClose is defaulted to 'true' in all historical testing, as the intrabar formation is not know, only the OHLCV values of the series being used.

        Comment


          #5
          Thanks for your very quick replies. You help is so helpful.

          Is historical testing, but is a 50 ticks bar chart. I thougth the intrabar formation was known in this type of charts.

          Comment


            #6
            You're welcome, no, those charts are build on a tick interval rather than a time one, however the formation inside those 50 tick bars is still not known and as such the outcome is the same as backtesting time bars: the OnBarUpdate() of your strategy is called on each bar close here.

            Comment


              #7
              My last question,

              It could be posible to create bar with known intrabar formation with custom coding?.

              Is there any axample around?

              Thanks

              Comment


                #8
                You can simulate getting filled intrabar with this sample here - http://www.ninjatrader.com/support/f...ead.php?t=6652

                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