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 07-07-2012, 02:53 PM   #1
zoom zoom 126
Junior Member
 
Join Date: May 2011
Posts: 13
Thanks: 0
Thanked 1 time in 1 post
Cool Searched in vain for DrawRegion

Can anyone help?

I have attached a reference sample code that i got off of this forum, but i have spent the past 3 hours trying to find the specific post to ask this question: How do I get this to print on panel 2 -- my indicator? I do not want it on the input series (panel1). I have changed the DrawOnPricePanel = false -- i have tried overlay = false and nothing seems to work.

Thanks to anyone lending assistance.......

I simply want to be able to shade the area between the upper and lower bollinger bands without 457 lines of code (which I found elsewhere on this forum). Thanks so much.
Attached Files
File Type: zip SampleDrawRegion.zip (7.4 KB, 9 views)
zoom zoom 126 is offline  
Reply With Quote
Old 07-08-2012, 07:01 AM   #2
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,199
Thanks: 24
Thanked 1,225 times in 996 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by zoom zoom 126 View Post
Can anyone help?

I have attached a reference sample code that i got off of this forum, but i have spent the past 3 hours trying to find the specific post to ask this question: How do I get this to print on panel 2 -- my indicator? I do not want it on the input series (panel1). I have changed the DrawOnPricePanel = false -- i have tried overlay = false and nothing seems to work.

Thanks to anyone lending assistance.......

I simply want to be able to shade the area between the upper and lower bollinger bands without 457 lines of code (which I found elsewhere on this forum). Thanks so much.
I am not sure that I understand what you are describing. Are you plotting the Bollinger Bands in Panel 2?
koganam is offline  
Reply With Quote
The following user says thank you to koganam for this post:
Old 08-03-2012, 06:46 AM   #3
markus_p
Junior Member
 
Join Date: Aug 2012
Posts: 4
Thanks: 1
Thanked 0 times in 0 posts
Default

Try this, below On Bar Update()




DrawRegion("tag1", CurrentBar, 0, Bollinger(2, 14).Upper, Bollinger(2, 14).Lower, Color.Empty, Color.Lime, 2);
markus_p is offline  
Reply With Quote
Old 08-03-2012, 07:15 AM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

zoom zoom 126,

Setting Overlay = false should do it.

With most code changes you can reload NinjaScript and will see right away. However if you make any code changes in Initialize() the indicator needs to be removed and re-applied in order to see.

http://www.ninjatrader.com/support/h...t7/overlay.htm
NinjaTrader_RyanM 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
DrawRegion Romulan Indicator Development 10 12-06-2011 02:30 PM
Drawregion help safetrading Indicator Development 2 07-03-2009 02:35 PM
DrawRegion bobmike General Programming 23 10-06-2008 03:17 PM
DrawRegion jrs Indicator Development 6 04-15-2008 01:57 AM
DrawRegion rt-trader General Programming 1 12-28-2007 10:41 PM


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