Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How are plots handled by NT?

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

    How are plots handled by NT?

    Hello,

    Let's say I have an indicator that plots a dot for a specific candlestick pattern. If I look at the chart I can see the dots going back as far as my chart allows. Are these plotted dots saved to an index somewhere?

    If so, how can I access this index?

    If not, is there a way to obtain the exact location of a plot each time it places a dot?

    Thank you.


    #2
    Hello benjamin$,

    Plots are a Series<double> object that NinjaTrader will automatically render on the chart when setting bar values.

    The Time series is a Series<DateTime> object that holds the time for each bar.

    The plot will have the price.

    To print the time and price of the SMA 5 bars ago:

    Code:
    Print(string.Format("{0} | barsAgo: {1}, SMA(7)[{5}", Time[5], 5, SMA(7)[5]));
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    670 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    379 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    582 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X