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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      82 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      43 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      56 views
      0 likes
      Last Post CarlTrading  
      Working...
      X