NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 05-07-2007, 08:28 AM   #1
higler
Senior Member
 
Join Date: Apr 2007
Location: Longmont, Colorado, USA
Posts: 294
Thanks: 4
Thanked 3 times in 3 posts
Default DrawLine into the future?

I've been trying to draw a line into the future using DrawLine. I want it to stop a specified number of bars into the future and not continue indefinitely as in the case of a ray or extended line. I've tried passing negative integers into DrawLine for the future ending point but to no avail. Is it possible to exend DrawLine (or any type of line or drawing object) into the future with a specified ending point? Thanks.
higler is offline  
Reply With Quote
Old 05-07-2007, 08:45 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Its is not possible to draw a line into the future use future bars as an index value.
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-07-2007, 09:01 AM   #3
higler
Senior Member
 
Join Date: Apr 2007
Location: Longmont, Colorado, USA
Posts: 294
Thanks: 4
Thanked 3 times in 3 posts
Default

Thanks. I finally thought not. I'll just use an extended line or ray and keep track of when I cross it.
higler is offline  
Reply With Quote
Old 09-10-2008, 12:21 PM   #4
rrover
Junior Member
 
Join Date: Jul 2008
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default

I was wondering if this issue has since been resolved or a workaround developed? At session open, I'd like to draw lines on the chart from there to session end.
rrover is offline  
Reply With Quote
Old 09-10-2008, 12:27 PM   #5
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

You can only draw lines in places where there are bars associated with it. You can try using DrawHorizontalLine. I think it will extend out indefinitely.
NinjaTrader_Josh is offline  
Reply With Quote
Reply

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
Future - Combine Contract Months regen Miscellaneous Support 1 05-01-2007 11:37 PM
Problem mapping to AEX (Amsterdam Index) Future nicko9 Miscellaneous Support 4 02-20-2007 12:35 AM
Euro FX Future (6E to NT, EC in Tradestation) no PATS data dynosaratoga Miscellaneous Support 7 05-11-2006 07:53 AM
Will the new indicators be included in future NT revisions? Lupus Indicator Development 1 04-06-2006 09:17 AM
Sugg's for future release charlesd Suggestions And Feedback 2 03-04-2005 05:43 AM


All times are GMT -6. The time now is 07:36 AM.