PDA

View Full Version : Adding Indicator Color Lines to Strategy


duck_CA
02-21-2009, 03:18 PM
trying to set a separate color for each band...Upper,Middle, and Lower
protectedoverridevoid Initialize()
{
CalculateOnBarClose = false;
Add(SMA(18));
Add(Bollinger(2.618,2));
Bollinger(2.618,2).Plots[0].Pen.Color = Color.Purple;
Bollinger(2.618,2).Plots[0].Pen.Color = Color.White;
Bollinger(2.618,2).Plots[0].Pen.Color = Color.Purple;

NinjaTrader_Ben
02-21-2009, 08:05 PM
Hello,

Try this:

Add(SMA(18));
Add(Bollinger(2.618,2));
Bollinger(2.618,2).Plots[0].Pen.Color = Color.Purple;
Bollinger(2.618,2).Plots[1].Pen.Color = Color.White;
Bollinger(2.618,2).Plots[2].Pen.Color = Color.Purple;

This link will help:
http://www.ninjatrader-support.com/HelpGuideV6/Plots.html

duck_CA
02-21-2009, 09:14 PM
thanks for everything...