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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    57 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    78 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    39 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    101 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    61 views
    0 likes
    Last Post PaulMohn  
    Working...
    X