Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why does my indicator change bars on tick chart

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

    Why does my indicator change bars on tick chart

    Hi,

    I have indicator, that does extensive calculations with CalculateOnBarClose = false;
    It seems to change bars on the chart!?

    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.

    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


    I tested this using market replay for today's ES ETH session. Left chart is 2000 tick chart without indicator, right chart with indicator.

    After hitting F5 both charts look the same again.

    I included tick counter in chart to show, that no ticks were dropped.

    There is also a very odd thing I observed, during the 1st bar I marked on right chart, price made a new intra-bar high (no tail on top), pulled back a tick and had no tail on top as well !!!

    Thanks for any help

    Thomas
    Last edited by td_910; 05-29-2013, 04:14 PM.

    #2
    think I found error

    never experienced this before, forgot to check for barsAgo to be greater than 0

    This was one of the conditions causing this
    Code:
                        if (EBDBO_barsback<5 && Low[EBDBO_barsback]>SB_Low) EBDBO_barsback = -1;
    changed to:
    Code:
                        if (EBDBO_barsback>0 &&  EBDBO_barsback<5 && Low[EBDBO_barsback]>SB_Low)  EBDBO_barsback = -1;
    I do a lot of programming, but never experienced this odd behavior before, is there a explanation for it? Is it only happening with tick charts? I programmed indicators for time based charts before only.

    Working perfect now. http://screencast.com/t/ATXmqUtHj

    Thanks for your answers

    Thomas

    Comment


      #3
      Thanks for sharing the update here Thomas, glad to hear that seemed to have cleared it up. I'm not aware of a similar report, so would be great if you could contact with a scenario to review at support at ninjatrader dot com.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      579 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X