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

Invisible Plots

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

    Invisible Plots

    Can plots be defined as ones that do not draw lines on the charts beyond the apparent solution of assigning the transparent color?
    I need to "plot" private custom Series of different types without drawing anything on the chart because I use them to store on top of each bar some other data points or information beyond the standard OHLCV data.
    Last edited by Gianpiero; 03-23-2024, 03:30 PM.

    #2
    Sounds like you don't need a 'plot' at all.

    You just want the data the 'plot' maintains, right?

    Well, just use a Series<double> (use whatever
    data type you want) to maintain your own personal
    data on a per-bar basis.

    That is, just swap out double to be your own data
    type, such as Series<bool> or Series<int>.

    (Think of a 'plot' as an specially enhanced version of
    a Series<double>, like a series on steriods, because
    the 'plot' also has drawing information attached to it.)

    ​These kinds of extra Series<> you define will have,
    by definition, no plotting duties, no color, no brush,
    no line width -- they only contain one piece of data
    you assign, and only one per bar. These private
    Series<> are rather basic, and, by definition,
    already invisible to the chart.

    Have you tried that?

    Comment


      #3
      Take a look at these Indicators,

      @Darvas.cs
      @ParabolicSAR.cs
      @ZigZag.cs


      for some examples on how private Series<> are
      being used in 'invisible' ways.

      Comment


        #4
        Hello Gianpiero,

        Thanks for your post.

        It seems like you might want to consider using a custom Series<double> as bltdavid has noted.

        Values could be saved the the custom Series for each bar on the chart and you access those values by calling the Series object and passing in a barsAgo value. Custom Series would not plot on a chart.

        See this help guide page for more information about Series objects: https://ninjatrader.com/support/help...t8/seriest.htm
        Brandon H.NinjaTrader Customer Service

        Comment


          #5
          Thank you all! That's what I thought.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Jimmyk, 01-26-2018, 05:19 AM
          6 responses
          835 views
          0 likes
          Last Post emuns
          by emuns
           
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,291 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          11 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          11 responses
          62 views
          0 likes
          Last Post halgo_boulder  
          Started by Option Whisperer, Today, 09:55 AM
          0 responses
          9 views
          0 likes
          Last Post Option Whisperer  
          Working...
          X