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 rbeckmann05, Yesterday, 06:48 PM
    1 response
    12 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    15 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Working...
    X