Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to create stepline

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

    How to create stepline

    let's say a simple example for 3 bars.
    What is the correct route to create such "step-line" plots in NT8?


    (the first one)

    because if we choose to make plotstyle "line", then it just connects the points, the "hash" then it doesnt have connection in the start/end.

    #2
    Hi ttouda, thanks for your question.

    The only way of doing a stepping function would be to use a line plot and make the PlotBrush transparent when you do not want a connection between the values. When the plot has a value you want to display, change the plot brush back to a visible color.

    Please let me know if I can assist any further.

    Comment


      #3
      Chris, I don't think we talk about same thing.
      I want to as the first one was in my example screenshot, so it is like "hash" plotstyle, but they are connected vertically too in the end/begin of the horizontal lines.
      so, it seems not possible with NT plots

      Comment


        #4
        Hello ttodua,

        This would be possible with custom rendering/custom plotting, but would not be provided out of box. In order to create a step, we would need to have two data points on the same bar for the low of the step and the high of the step.

        For example, you could have two Series<doubles> hold data points, where one holds higher values and the other has lower values. When these values match, you can draw a line connecting the current bar to the last bar. When these do not match, you can connect the low point to the high point.

        For the thread's reference, you may see the Help Guide article below, and also the SampleCustomRender indicator that comes with NinjaTrader to get more acquainted with custom rendering with SharpDX.



        We look forward to assiting.

        Comment

        Latest Posts

        Collapse

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