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

Noncontiguous data points in a plot

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

    Noncontiguous data points in a plot

    is there a way to have interupted points in a plot i.e. add a point on bar 1, and another at bar 5, at bar 7, etc, and have these point values appear in the databox?

    #2
    Hello love2code2trade,

    Thanks for your notes.

    To clarify, are you referring to only assigning values to a plot during certain conditions, otherwise a value is not assigned to the plot?

    If so, the Plot value will be visible in the Data Box window when a value is added to the plot. On bars where no value is added to the plot, the plot will show as "n/a" in the Data Box window.

    For example, say you assign a value to the plot of bar 1 so the plot displays on the chart on bar 1. Say on bar 2 no value is assigned to the plot and the plot does not display on the chart on bar 2.

    When you hover your mouse over bar 1, the plot value in the Data Box will display as the assigned value. When you hover your mouse over bar 2, the plot value in the Data Box will display as "n/a" since no value was assigned to the plot on that bar.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Brandon, thankyou for your reply. Is there a way to make the plot values connect to the next plot value if there are gaps where plots were not added in between?

      Comment


        #4
        Hello love2code2trade,

        Thanks for your notes.

        You would need to assign the value to the plot on each bar update if you want the plot value to appear in the Data Box window for each bar.

        Otherwise, the plot will return 'n/a' in the Data Box window.

        AddPlot(): https://ninjatrader.com/support/help...t8/addplot.htm
        Value: https://ninjatrader.com/support/help.../nt8/value.htm
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          is there a way to get the points to connect across the gaps when the type of plot is a line? so far it has not worked.

          Comment


            #6
            Hello love2code2trade,

            Thanks for your notes.

            If you were to assign a value to the plot on each bar update then the plot line would be shown on all bars and the plot value would appear in the Data Box window.

            So I may accurately assist, please share an screenshot of what exactly you are referring to and a screenshot showing what you are trying to accomplish.
            • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
            • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
            ​I look forward to assisting further.
            Brandon H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by jxs_xrj, 01-12-2020, 09:49 AM
            6 responses
            3,290 views
            1 like
            Last Post jgualdronc  
            Started by Touch-Ups, Today, 10:36 AM
            0 responses
            8 views
            0 likes
            Last Post Touch-Ups  
            Started by geddyisodin, 04-25-2024, 05:20 AM
            8 responses
            61 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by Option Whisperer, Today, 09:55 AM
            0 responses
            8 views
            0 likes
            Last Post Option Whisperer  
            Started by halgo_boulder, 04-20-2024, 08:44 AM
            2 responses
            24 views
            0 likes
            Last Post halgo_boulder  
            Working...
            X