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 argusthome, Yesterday, 10:06 AM
        0 responses
        20 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        18 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        14 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        9 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        38 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X