Page 5 of 8

Re: Dochian Channel Indicator

PostPosted: Sun Nov 24, 2013 6:00 am
by Coondawg71
Can we please request Alert Functions added to DNC V3 of this indicator upon breach of High Line, Low Line and Midline.

Thanks,

sjc

Re: Dochian Channel Indicator

PostPosted: Sun Nov 24, 2013 2:47 pm
by Apprentice
Donchian Channel with Alert.lua Added (See Topmost post)

Re: Dochian Channel Indicator

PostPosted: Wed Jan 29, 2014 5:02 pm
by mulligan
I'm using the DNC_V2. Would it be possible to add the style option to the center line of color up and color down?

Thanks

Re: Dochian Channel Indicator

PostPosted: Thu Jan 30, 2014 4:18 am
by Apprentice
Style Option Added.

Re: Dochian Channel Indicator

PostPosted: Thu Jan 30, 2014 11:00 am
by mulligan
Apologies for not being clear on the request. I was looking for color up as the indicator rises and color down as it goes down. Example, green as the center line goes up and red as it goes down.

Thanks.

Re: Dochian Channel Indicator

PostPosted: Sun Feb 02, 2014 4:03 am
by Apprentice
Try This Version.
DNC_V2.lua
(4.42 KiB) Downloaded 1617 times

Re: Dochian Channel Indicator

PostPosted: Sun Feb 16, 2014 6:51 pm
by mulligan
Thanks for the DNC_V2 with the up and down center line color option. With the additional neutral color, the line is predominantly neutral by the nature of the indicator. Is it possible to get a version with only the up and down without the neutral? It would be much clearer to read and follow with only up and down.

Re: Dochian Channel Indicator

PostPosted: Mon Feb 17, 2014 2:36 am
by Apprentice
Try This Version.
DNC_V2.lua
(4.65 KiB) Downloaded 1990 times

Re: Dochian Channel Indicator

PostPosted: Wed Jan 21, 2015 4:34 am
by STS Trading
Since yersterday I use Donchian Channel Indicator Version 3 (filename: DNC_V3.lua; post of Feb 09, 2011), cause I like the feature of the 25%- and 75%-lines. The middle-line is useless in my trading, so I deactivated it in the indicator setup, but this causes an error. In the update-function the dm-variable is used in case 25%- and 75%-lines are activated, but assigned with 0 in case the middle-line is deactivated.

So I added an else-part in the prepare-function as shown below:
Code: Select all
if (sm) then
    dm = instance:addStream("DM", core.Line, name .. ".DM", "M", instance.parameters.clrDM,  first)
    dm:setWidth(instance.parameters.widthDM);
    dm:setStyle(instance.parameters.styleDM);
else
    dm = instance:addInternalStream(0);
end


According to that change I revised the update-function as well and removed the if-statement:
Code: Select all
dm[period] = (du[period] + dn[period]) / 2;


Hopefuly it helps.

The revised version can be downloaded here:
DochianChannel.lua
(5.52 KiB) Downloaded 1539 times



Chris

Re: Dochian Channel Indicator

PostPosted: Mon May 04, 2015 9:25 am
by Apprentice
DNC.png

Projection option added to DNC.lua