Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Indicator to plot a line x bars forward above and below the closing price

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

    Indicator to plot a line x bars forward above and below the closing price

    Hi,

    Does anyone know of an indicator that will plot a horizontal line "x" bars forward of a price e.g. close (ideally would be able to input open, high low, close to be used).

    I want to plot lines above and below the input price e.g. close using +/- another input value e.g. 20

    x is an input e.g. 5 - in this case the line would be extend from the bar that was used in the calculation forward 5 bars. Ideally the lines would start at the next bar as they are not relevant to the bar that they are calculated on.

    So for example:

    If close was input as the price to be used.
    20 points was input
    number of bars of 5 was input

    Current close is 100

    Result:

    Horizontal lines above and below the bar going forward 5 bars (ideally the lines would start at the next bar).

    One line at the 120 level
    One line at the 80 level

    Alternatively would someone mind coding one or point me in the direction of one I can clone and change.

    #2
    Hello skiguy,

    There is not an indicator that I know of that does this but there quite a few indicators that draw horizontal lines on the chart that you may take a look at. For example:



    Let me know if you have any questions.
    JCNinjaTrader Customer Service

    Comment


      #3
      This's an old topic, but I am coming across your topic and it's pretty surprised that I have exactly the indicator you need, namely Tick Bound: ninza.co/product/tick-bound

      It's FREE to download!
      Last edited by ninZa; 10-26-2014, 07:17 AM.
      ninZa
      NinjaTrader Ecosystem Vendor - ninZa.co

      Comment


        #4
        Thank you. I will have a look at it.

        Very much appreciate your response.

        Chris

        Comment


          #5
          Originally posted by skiguy View Post
          Thank you. I will have a look at it.

          Very much appreciate your response.

          Chris
          It was my pleasure
          ninZa
          NinjaTrader Ecosystem Vendor - ninZa.co

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Aviram Y, Today, 05:29 AM
          0 responses
          1 view
          0 likes
          Last Post Aviram Y  
          Started by quantismo, 04-17-2024, 05:13 PM
          3 responses
          25 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          34 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          6 views
          0 likes
          Last Post cls71
          by cls71
           
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          216 views
          1 like
          Last Post PaulMohn  
          Working...
          X