Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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!?

    Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.

    Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.


    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.
      BertrandNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by benmarkal, Yesterday, 12:52 PM
      3 responses
      22 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by helpwanted, Today, 03:06 AM
      1 response
      17 views
      0 likes
      Last Post sarafuenonly123  
      Started by Brevo, Today, 01:45 AM
      0 responses
      11 views
      0 likes
      Last Post Brevo
      by Brevo
       
      Started by aussugardefender, Today, 01:07 AM
      0 responses
      6 views
      0 likes
      Last Post aussugardefender  
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      244 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Working...
      X