NexusFi: Find Your Edge


Home Menu

 





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


Discussion in NinjaTrader

Updated
    1. trending_up 1,543 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
skiguy
sydney + nsw australia
 
Posts: 16 since Jul 2013
Thanks Given: 8
Thanks Received: 6

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.


Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks




Last Updated on November 17, 2013


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts