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 02-11-2010, 02:01 PM   #1
T2020
Senior Member
 
Join Date: Jun 2008
Posts: 644
Thanks: 0
Thanked 0 times in 0 posts
Default Bollinger Region coloring Sample

I downloaded and installed this Sample indicator , but it has some annoying
problems . It prints a histogram behind price and I'd like to lighten up the
region transparency some . I'd post the zip file ,but am having an error when
I try to export it . If anyone has the time to down load it here :

http://www.ninjatrader-support2.com/...egion+coloring

I've looked through the code ,but don't see anything to comment out or parameter to change . thx in advance
Last edited by T2020; 02-11-2010 at 02:07 PM.
T2020 is offline  
Reply With Quote
Old 02-11-2010, 02:59 PM   #2
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

Hello T2020,

You can adjust the opacity setting.

Code:
 
DrawRegion("Bollinger Upper Region", CurrentBar, 0, Bollinger(NumStdDev, Period).Upper, Bollinger(NumStdDev, Period).Middle, Color.Black, Color.Blue, 2);
 
DrawRegion("Bollinger Lower Region", CurrentBar, 0, Bollinger(NumStdDev, Period).Lower, Bollinger(NumStdDev, Period).Middle, Color.Black, Color.Blue, 5);
The last number there is the opacity. Opacity setting ranges from 0-10. 0 being transparent and 10 being completely colored.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 02-11-2010, 04:23 PM   #3
T2020
Senior Member
 
Join Date: Jun 2008
Posts: 644
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_RyanM View Post
Hello T2020,

You can adjust the opacity setting.

Code:
 
DrawRegion("Bollinger Upper Region", CurrentBar, 0, Bollinger(NumStdDev, Period).Upper, Bollinger(NumStdDev, Period).Middle, Color.Black, Color.Blue, 2);
 
DrawRegion("Bollinger Lower Region", CurrentBar, 0, Bollinger(NumStdDev, Period).Lower, Bollinger(NumStdDev, Period).Middle, Color.Black, Color.Blue, 5);
The last number there is the opacity. Opacity setting ranges from 0-10. 0 being transparent and 10 being completely colored.
Thanks Ryan . That worked spot on and by following your lead there , I
was able to set the strange histogram to Transparent and eliminate that
as well . Thanks again .
T2020 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
IB Region Stainless2000 Connecting 7 09-12-2008 01:06 PM
Region coloring indicator T2020 Suggestions And Feedback 6 09-08-2008 07:58 AM
Coloring region based on time frame Huilin Indicator Development 4 09-04-2008 05:12 AM
Region coloring T2020 Indicator Development 4 07-13-2008 10:24 AM
Indicator: Coloring a region NinjaTrader_Josh Reference Samples 0 12-02-2007 12:58 PM


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