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,626 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

Can you help answer these questions
from other members on NexusFi?
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
White House Drops First Alien Files Today -- Market Says …
Prediction Markets & Event Contracts
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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