PDA

View Full Version : Bollinger Region coloring Sample


T2020
02-11-2010, 02:01 PM
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/vb/showthread.php?t=4331&highlight=region+coloring

I've looked through the code ,but don't see anything to comment out or parameter to change . thx in advance

NinjaTrader_RyanM
02-11-2010, 02:59 PM
Hello T2020,

You can adjust the opacity setting.


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.

T2020
02-11-2010, 04:23 PM
Hello T2020,

You can adjust the opacity setting.


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 . :)