PDA

View Full Version : Draw line segments


PepeIlegal
07-09-2007, 07:10 AM
Hi,

Is it possible to allow the draw of line segments (not only rays) in the right free space of the chart (outside price bars) ? For what I could understand, this is only possible with rays, but line segments are also very important.

This is a very important feature for me. How possible is to allow this in the software ?

Best Regards,
Pepe.

NinjaTrader_Dierk
07-09-2007, 07:25 AM
This is not supported right now, but will be supported by fall time.

PepeIlegal
07-09-2007, 07:27 AM
Ok.. thank you.

luxurious_04
01-31-2011, 07:52 PM
Hello, anyone could help on this. I have attached an image of the output what I want. I want to draw a line that will start at the current bar as illustrated in the arrow of the attached image then it will continue to draw until 8 bars next. Or anyone can tell me what font is being used in plotting the line in the attached image that is next to the label "target"? Thanks. :confused::confused:

NinjaTrader_Bertrand
02-01-2011, 06:18 AM
luxurious_04, unfortunately we would not know which font type is being used here, I suggest you try a few widespread ones and compare - for the line you could drawn into the future by supplying a future DateTime and anchor, or you keep count where you started the line and then redraw one bar longer each bar to make it extend as time progresses.

luxurious_04
02-01-2011, 07:42 PM
Give a sample code of what you said Bertran please. Just a tip or guide for me to do "or the line you could drawn into the future by supplying a future DateTime and anchor, or you keep count where you started the line and then redraw one bar longer each bar to make it extend as time progresses". :confused::confused:

NinjaTrader_Bertrand
02-02-2011, 08:19 AM
You can try for example this simple snippet - drawing to an endpoint 10 mins into the future.

DrawLine("line1", true, Time[0], High[0] + 10 * TickSize, Time[0].AddMinutes(10), Close[0], Color.Blue, DashStyle.Solid, 3);

luxurious_04
02-02-2011, 11:30 PM
Thanks Bertran, I just wanna ask if how to get the stop loss of the ATM strategy?:confused:

NinjaTrader_Bertrand
02-03-2011, 07:05 AM
Unfortunately you could only access the status of the stop and target orders - http://www.ninjatrader.com/support/helpGuides/nt7/atm_strategy_methods.htm

You can keep track of the current value though, as you know the entry, know the stop / target parameters of the template applied and you know also when you moved the stop / target programmatically.

luxurious_04
09-27-2011, 11:22 PM
Anyone could help me on how to draw a tangent line? I have a slope value and I want to draw a tangent line out from it.