![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2007
Location: Longmont, Colorado, USA
Posts: 294
Thanks: 4
Thanked 3 times in 3 posts
|
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.
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Its is not possible to draw a line into the future use future bars as an index value.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Apr 2007
Location: Longmont, Colorado, USA
Posts: 294
Thanks: 4
Thanked 3 times in 3 posts
|
Thanks. I finally thought not. I'll just use an extended line or ray and keep track of when I cross it.
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jul 2008
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#5 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |