Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot indicator signals at several price levels on a bar

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

    Plot indicator signals at several price levels on a bar

    Is it possible to plot indicator signals on several price levels in a bar? The attached image shows an example of what I mean (see the blue and pink squares). I thought about AddPlot() but depending on the chart time frame, there could be a large number of price levels in the bar, so this would be inefficient.
    Also, is it possible to plot signals to the left and right of the bar, as in the example, rather than centrally?

    Thanks in advance for any help.


    Click image for larger version

Name:	PriceSignals.JPG
Views:	431
Size:	29.5 KB
ID:	1127030

    #2
    Hello Scotty33,

    Thanks for your post.

    Is exposing those signals a requirement? I.E. If we use a plot, the plot can be accessed from a strategy if the strategy adds that indicator.

    If so the task would be more difficult, and you will want to consider a way to expose that information. I have attached an example that demonstrates how you can create a Series<List>. A Series will hold a variable/object for each bar in the data series. If we make that a List, then you can have multiple values saved in each bar. The example shows tracking each price level of each bar in the data series.

    For exposing indicator values that are not plots, please see below.

    Exposing indicator values that are not plots (SampleBoolSeries) - https://ninjatrader.com/support/help...alues_that.htm

    If your means is to simply draw on the bars, I suggest using Drawing methods.

    Drawing - https://ninjatrader.com/support/help...8/?drawing.htm

    Drawing tools will place objects in the center of a bar. If you want to customize the drawings further, SharpDX custom rendering can be used. To get more acquainted with SharpDX rendering, please see the Help Guide article below, and please see the SampleCustomRender indicator that comes with NinjaTrader.

    https://ninjatrader.com/support/help..._rendering.htm

    We look forward to assisting.
    Attached Files

    Comment


      #3
      Thanks Jim, for your comprehensive answer. Despite the added complexity, exposing the indicator values is important, so I'll work through the example you included and study the SharpDX features so that I can plot the signals correctly.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      571 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      331 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      549 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      549 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X