NinjaTrader Support Forum  

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

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 03-31-2009, 01:46 AM   #1
Winnie
Member
 
Join Date: Mar 2009
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
Default Draw a rectangle to group 3 bars

Is it possible to write a program to draw a rectangle groping the highest high and lowest low for every 3 bars in the chart ?

Thanks
Winnie is offline  
Reply With Quote
Old 03-31-2009, 05:57 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,017 times in 998 posts
Default

Yes Wnnie, you can use DrawRectangle for that - http://www.ninjatrader-support.com/H...Rectangle.html

Also you want to use a unique draw object tag id then so you see the history.
NinjaTrader_Bertrand 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
Fancy Rectangle pdavidow Charting 9 03-16-2009 09:04 AM
Remove draw object (diamond) after so many bars duck_CA Indicator Development 3 11-07-2008 11:40 AM
Rectangle disappears SteveB Charting 2 07-15-2008 08:51 AM
Draw Line #Bars Back RickB Indicator Development 5 07-13-2008 08:38 PM
How can I draw lines behide the candlestick bars? clearpicks General Programming 4 04-22-2008 06:26 PM


All times are GMT -6. The time now is 12:18 PM.