Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Why simple indicator plots in minutes but not ticks

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

    Why simple indicator plots in minutes but not ticks

    When I create a simple NT8 indicator with an added time-based data series combined with the primary chart symbol it works on a 1 minute chart.

    AddDataSeries("DX 12-15", Data.BarsPeriodType.Minute, 1, Data.MarketDataType.Last);


    When I create another otherwise identical indicator but change the added data series to
    AddDataSeries("DX 12-15", Data.BarsPeriodType.Tick, 1, Data.MarketDataType.Last);
    the new indicator does not work on a 1 tick chart. The 1 tick indicator is set to update every tick.

    Q1) Why?

    Q2) Ultimately I'd like to create an indicator that runs on both tick, range, and time charts. Do I need to include code for that?
    Last edited by ProfitPilgrim; 12-03-2015, 02:28 PM.

    #2
    Hello ProfitPilgrim,

    Thanks for your post.

    To answer your questions we would need to see your code as well as a chart to understand what you are wanting to do, however the answer is more than likely in the helpguide here: http://ninjatrader.com/support/helpG...nstruments.htm Please review that section carefully and note that: "This section is written in sequential fashion. Example code is re-used and built upon from sub section to sub section." which means it is best to read from front to back to gain as much as possible.

    If after your review you still have questions, please either post your code, or a small version of your code that demonstrates the issue, along with a chart example of the issues. Alternatively if you would prefer please fee free to send into platformSupport[at]NinjaTrader[dot]com atten Paul and a link to this thread.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, Today, 06:46 AM
    0 responses
    9 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, Yesterday, 05:21 PM
    0 responses
    14 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    15 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    82 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    48 views
    0 likes
    Last Post PaulMohn  
    Working...
    X