![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jan 2007
Location: , ,
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
|
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); |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Specifying anchor points in the right margin is not permitted programatically at this time although it can be done manually.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2007
Location: , ,
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
|
OK, Thanks.
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jan 2008
Posts: 108
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#5 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
We will put it on the list of considerations. Thanks for the suggestion.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |