Go Back   NinjaTrader Support Forum > Application Technical Support > Charting

Charting Support for NinjaTrader Advanced Charting.

Thread Tools Display Modes
Old 04-22-2013, 11:52 AM   #1
Join Date: Jul 2008
Location: Denver
Posts: 87
Thanks: 1
Thanked 4 times in 3 posts
Default Horizontal & Vertical Line Drawing Objects

1. Looks like the max line width for a hor or vert line is 10. Is there a way to increase that?
2. If i draw a hor. ref line at a specific price, is there a way to attach a label to that line that signifies the price? Is there a way to attach a label to the line that says what it represents - "swing high" for example?
3. If I have 3 charts open at different durations, is there a way to draw a ref line on one chart and have that line, at the price show up on all 3 charts at the right location?
4, Is there a way to move the re line to the back to sow up behind other objects or the price chart?
5. Is there a way to change the opacity of the ref line?

Thanks in advance for any help

dmking is offline  
Reply With Quote
Old 04-22-2013, 01:09 PM   #2
NinjaTrader Customer Service
NinjaTrader_ChelseaB's Avatar
Join Date: Dec 2012
Location: Denver, CO
Posts: 3,042
Thanks: 50
Thanked 615 times in 599 posts

Hello dmking,

Thanks for writing in.

1) The maximum width for a line is 10. This cannot be increased. However, if you are wanting to color a wide area I recommend you use DrawRectangle.

Below is a link to the help guide on DrawRectangle.

2) A horizontal or vertical line does not have the ability to show a price marker.

To add a label to this line you could draw a text box below the line that has the line price. Drawing text a few ticks below or above the line I think would accomplish your goal.

Below is a link to the help guide on DrawText.

3) Yes, you can make a line that extends across all charts that are using that same instrument.

To do this:
  • Double click the line you have drawn
  • In the "Attach to:" drop-down, select the instrument that is followed by (All Charts). For example: ES 06-13 (All Charts)
  • Click OK

4) Yes, you can change the order that objects are on top of each other. This is called the z-order.

To change this:
  • Select an object by clicking on it -> hold the Shift key and then scroll the mouse wheel

Below is a link to the help guide on Navigating a Chart. Please refer to the section 'How to change the z-order (paint order) of a chart object'.

5) Yes, you can change the opacity of a line when declaring the color.
For example:
DrawHorizontalLine("myLine", true, Close[0], Color.FromArgb(50, Color.Blue), DashStyle.Solid, 10);

Please let me know if I can be of any further assistance.
NinjaTrader_ChelseaB is offline  
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labels for Horizontal & Vertical Lines Indtrader Charting 1 01-18-2011 10:20 AM
Beta 23: Remove Drawing Objects and horizontal lines MikeInMA Version 7 Beta General Questions & Bug Reports 7 11-08-2010 08:00 AM
Drawing a vertical line NOT using DrawVerticalLine() fxRichard Charting 4 01-18-2009 11:50 PM
Drawing Tools - Vertical Line zeller4 Charting 2 10-04-2008 06:40 AM
Vertical Line drawing tool ? T2020 Charting 3 07-03-2008 10:35 AM

All times are GMT -6. The time now is 12:03 PM.

FULL RISK DISCLOSURE: Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.