NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 02-20-2009, 12:38 PM   #1
nigeleyre
Member
 
Join Date: Mar 2008
Posts: 89
Thanks: 0
Thanked 0 times in 0 posts
Default Drawing on Chart

I can get lines to drawfine on the chart from any position in the past upto the current bar.

What I want to be able to do is to draw aline a few bars ahead of the actual price action. Is this possible, I have tried using -5 for the position to no avail?

Thanks.
nigeleyre is offline  
Reply With Quote
Old 02-20-2009, 12:59 PM   #2
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

nigeleyre,

Unfortunately you cannot draw into the future. You can however try using DrawHorizontalLine() which will draw infinitely extended lines to the left and right.
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-20-2009, 01:22 PM   #3
nigeleyre
Member
 
Join Date: Mar 2008
Posts: 89
Thanks: 0
Thanked 0 times in 0 posts
Default

Pity any chance of it in future versions?
nigeleyre is offline  
Reply With Quote
Old 02-20-2009, 01:25 PM   #4
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

It is on our list of future considerations.
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-20-2009, 01:31 PM   #5
nigeleyre
Member
 
Join Date: Mar 2008
Posts: 89
Thanks: 0
Thanked 0 times in 0 posts
Default

Super Thanks.
nigeleyre is offline  
Reply With Quote
Old 02-20-2009, 01:38 PM   #6
Ralph
Senior Member
 
Join Date: Jul 2008
Posts: 527
Thanks: 0
Thanked 9 times in 6 posts
Default

If you have the cababilities you can code it by your own. Here is an example:

http://www.ninjatrader-support2.com/...0&postcount=10

Regards
Ralph
Ralph is offline  
Reply With Quote
Old 02-20-2009, 03:29 PM   #7
nigeleyre
Member
 
Join Date: Mar 2008
Posts: 89
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Ralph
nigeleyre 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
EMA Color not drawing on the chart rnr123 General Programming 1 01-21-2009 03:41 PM
Copy drawing objects to another chart. esmet Charting 1 01-12-2009 04:21 AM
Drawing Up/Down Arrows on a Chart hcoffin Strategy Development 1 06-16-2008 04:48 PM
Drawing on Chart Indicators? ashish Historical NinjaTrader 6.5 Beta Threads 6 11-10-2007 11:59 PM
Drawing Text at the right/left of the chart window? pbastowski Indicator Development 7 06-07-2007 09:47 PM


All times are GMT -6. The time now is 03:17 AM.