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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        41 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X