Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stepped Line vs Line

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

    Stepped Line vs Line

    Dear Support

    I'm trying to identify both an indicator example and script that will help me create a stepped-line versus and basic line plot.

    Attached is a simple channel that presents what I'd like to achieve i.e., a "stepped-plot" versus a "line-plot."

    Any help appreciated.

    Many thanks.
    Attached Files

    #2
    Hello SIERRA_HOTEL,

    To do that you need to have a value that remains the same for that number of bars to create a step. Using a indicator that is referencing a secondary series is one way to do that, for example using a 1 minute primary series and adding a 5 minute secondary series, then plot the secondary series value.

    Comment


      #3
      Hi Jesse (That was quick)

      This is a basic Donchian Channel on a single timeframe. NT seems to only offer a line plot as can be seen on the right whereas I'd like to retain a stepped line that does not change until the condition is met.

      1) Must I code the study to retain the prior value until a change occurs?
      2) Will the line or plot study plot vertical lines to create the step?
      3) I'm not wanting to use multiple timeframes, another timeframe or an indicator on indicator. Just simply present the plot style as shown.

      Is there an example of either a MA or Channel Indicator Study that uses a "Stepped line" that you can point me to as an example?

      Many thanks.
      Last edited by SIERRA_HOTEL; 04-07-2025, 03:25 PM.

      Comment


        #4
        Hello SIERRA_HOTEL,

        Plots relate to the primary series they are applied to. most indicators will not be stepped indicators, you would need a secondary series to have a constant value so you can plot a flat line on multiple bars.

        If you want an indicator to do something custom then yes you need to make a copy of it and reprogram it to do that.

        Plots are connected so it will create a diagonal line to connect each level.

        If you don't want to use multiple timeframes you would have to use variables to store a value that remains constant for the number of bars you want the flat plot.

        Comment


          #5
          What you want is square plot type:
          Click image for larger version

Name:	image.png
Views:	87
Size:	4.0 KB
ID:	1340182

          Comment

          Latest Posts

          Collapse

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