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 > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 03-27-2008, 06:42 AM   #1
chantj
Junior Member
 
Join Date: Jan 2007
Location: , ,
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default Drawing in right margin

I see that 6.5 allows drawing objects in/into the right margin.

Can this be done programatically? I've tried something like the following, but with a negative endBarsAgo (it is an int) - it will compile, but errors on execution.

DrawRectangle("StopBoxH", CurrentBar, Close[0] + StopDistance, 0, Close[0] + StopDistance - 0.2, Color.Transparent, Color.Red, 2);
chantj is offline  
Reply With Quote
Old 03-27-2008, 07:05 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

Specifying anchor points in the right margin is not permitted programatically at this time although it can be done manually.
NinjaTrader_Ray is offline  
Reply With Quote
Old 03-27-2008, 07:24 AM   #3
chantj
Junior Member
 
Join Date: Jan 2007
Location: , ,
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default

OK, Thanks.
chantj is offline  
Reply With Quote
Old 05-17-2008, 07:42 PM   #4
SteveB
Senior Member
 
Join Date: Jan 2008
Posts: 108
Thanks: 0
Thanked 0 times in 0 posts
Default

Suggestion: Could you please consider allowing negative endBarsAgo.

I would like to draw a rectangle to extend to market close.

Also, candlestick appears half in/half out of rectangle drawn to 0.
SteveB is offline  
Reply With Quote
Old 05-17-2008, 11:14 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

We will put it on the list of considerations. Thanks for the suggestion.
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
sim margin settings ninjauser Miscellaneous Support 12 04-24-2009 06:13 AM
Instrument Margin Available? TraderGuy Strategy Development 1 03-08-2008 07:55 PM
Exception when drawing into right margin zoltran Historical NinjaTrader 6.5 Beta Threads 1 11-21-2007 06:55 AM
Right side margin blaporte Charting 2 11-08-2007 01:42 PM
Simulator margin Gar Miscellaneous Support 3 02-02-2005 08:42 AM


All times are GMT -6. The time now is 11:02 PM.