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