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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      176 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      331 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      253 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      356 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      183 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X