PDA

View Full Version : Donchian


MrBaffalo
09-03-2007, 04:02 AM
Hi Guys
I'm looking to plot on the current bar the previous upper/lower value of the donchian channel.
It seems to be stupid but I'm unable to do!
In fact I'm trying to plot the trigger between the actual close and upper/lower channel.

It should be something like donchian channel displaced by 1.

I've read the post on donchian BO but i really did not understand

Thanks for your help
Marce

NinjaTrader_Ray
09-03-2007, 10:57 AM
Does this not work?

double upperValue = DonchianChannel(20).Upper[1];

MrBaffalo
09-03-2007, 11:11 AM
Hi Ray, it simply doesn't plot anything.
I'm really confused!

This plots
double upperValue = DonchianChannel(length).Upper[0];
Plot0.Set(upperValue);

This doesn't plot
double upperValue = DonchianChannel(length).Upper[1];
Plot0.Set(upperValue);


Marce

NinjaTrader_Ray
09-03-2007, 11:16 AM
You are going to kick youself for this...

http://www.ninjatrader-support.com/vb/showthread.php?t=3170

MrBaffalo
09-03-2007, 11:35 AM
Done with if(CurrentBar>1)

uhm
Marce