Page 1 of 3

Highly adaptable Dochian Channel Strategy

PostPosted: Mon Jun 04, 2012 2:11 pm
by Apprentice
DNC_V3.png

Highly adaptable Dochian Channel Strategy.lua
(22.46 KiB) Downloaded 1899 times


Make sure to downlaod, DNC_V3.lua indicator, You can find it here.
viewtopic.php?f=17&t=20&hilit=Dochian+Channel+Indicator

The Strategy was revised and updated on December 18, 2018.

Re: Highly adaptable Dochian Channel Strategy

PostPosted: Fri Feb 08, 2013 1:10 pm
by 69TomD
Hello everyone, can't make it working. Backtested USD CHF 4H, trading allowed, non FIFO with hedging, still have a balance and equity flat line, no signals, no nothing. Could be wrong account type? Anybody has an idea? Thanks for advice

Re: Highly adaptable Dochian Channel Strategy

PostPosted: Sun Feb 10, 2013 6:07 am
by Apprentice
Capture.PNG

By default, strategy do not do anything.
You have to choose desired action.

Re: Highly adaptable Dochian Channel Strategy

PostPosted: Tue Feb 12, 2013 2:41 am
by 69TomD
Don't get any signals on top and bottom line crosses. only central line. I Don't use sub levels.

Re: Highly adaptable Dochian Channel Strategy

PostPosted: Tue Feb 12, 2013 1:46 pm
by Apprentice
Can you post your Strategy Parameters here, use screen capture.

Re: Highly adaptable Dochian Channel Strategy

PostPosted: Wed Feb 13, 2013 12:19 am
by 69TomD
I don't know how to take print screen and insert a pic in Win7

Bid
H4
50
High/low
Buy [Top line cross over - is it the long breakout? ]
no action
no action
Sell [ Bottom line cross under - Short breakout? ]
6 x no action
direct
side Both
no multiple
1 lot
yes limit
30
yes stop order
30

Re: Highly adaptable Dochian Channel Strategy

PostPosted: Wed Feb 13, 2013 5:23 am
by Apprentice
Unfortunately this is normal.
Dochian Channel will give you a high / low value of past N periods, Including the last period.
So, for price, it is impossible, in this implementation, to cross, top / bottom line.

Re: Highly adaptable Dochian Channel Strategy

PostPosted: Wed Feb 20, 2013 2:05 am
by 69TomD
What are those first four parameters for [top/bottom line cross over/under]? Could you possibly recode this strategy so that we can use it on tick breakout?

Re: Highly adaptable Dochian Channel Strategy

PostPosted: Wed Feb 20, 2013 5:54 am
by Apprentice
In theory yes.
If i do not use last (current) period in the calculation.

Re: Highly adaptable Dochian Channel Strategy

PostPosted: Fri Mar 08, 2013 12:07 am
by LearningForex
Hi Apprentice,

Thanks for all your hard work! I think a solution to the Upper & lower bands would be to use the value of the previous time frame of the DNC bands, not the current band, while using the current price. Therefore, the time frame for valuing if Price breaks the DNC upper or lower bands is always one time frame behind the current price. That way Price could "break" the bands. I hope I have explained the concept. I believe this idea will fix the problem of Price never "breaking" the DNC bands. I look forward to your reply.