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

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 traderqz, Today, 12:06 AM
    8 responses
    14 views
    0 likes
    Last Post traderqz  
    Started by SightCareAubetter, Today, 12:50 PM
    0 responses
    0 views
    0 likes
    Last Post SightCareAubetter  
    Started by Mongo, Today, 11:05 AM
    4 responses
    14 views
    0 likes
    Last Post Mongo
    by Mongo
     
    Started by Skifree, Today, 03:41 AM
    5 responses
    13 views
    0 likes
    Last Post Skifree
    by Skifree
     
    Started by traderqz, Yesterday, 09:06 AM
    5 responses
    35 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X