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 zstheorist, Today, 07:52 PM
          0 responses
          7 views
          0 likes
          Last Post zstheorist  
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          150 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          6 views
          0 likes
          Last Post mattbsea  
          Started by RideMe, 04-07-2024, 04:54 PM
          6 responses
          33 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          6 views
          0 likes
          Last Post tkaboris  
          Working...
          X