Highly adaptable Dochian Channel Strategy

Strategies are published here.

Moderator: admin

Highly adaptable Dochian Channel Strategy

Postby Apprentice » Mon Jun 04, 2012 2:11 pm

DNC_V3.png

Highly adaptable Dochian Channel Strategy.lua
(22.46 KiB) Downloaded 1897 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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly adaptable Dochian Channel Strategy

Postby 69TomD » Fri Feb 08, 2013 1:10 pm

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
69TomD
 
Posts: 7
Joined: Thu Feb 09, 2012 3:50 pm

Re: Highly adaptable Dochian Channel Strategy

Postby Apprentice » Sun Feb 10, 2013 6:07 am

Capture.PNG

By default, strategy do not do anything.
You have to choose desired action.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly adaptable Dochian Channel Strategy

Postby 69TomD » Tue Feb 12, 2013 2:41 am

Don't get any signals on top and bottom line crosses. only central line. I Don't use sub levels.
69TomD
 
Posts: 7
Joined: Thu Feb 09, 2012 3:50 pm

Re: Highly adaptable Dochian Channel Strategy

Postby Apprentice » Tue Feb 12, 2013 1:46 pm

Can you post your Strategy Parameters here, use screen capture.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly adaptable Dochian Channel Strategy

Postby 69TomD » Wed Feb 13, 2013 12:19 am

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
69TomD
 
Posts: 7
Joined: Thu Feb 09, 2012 3:50 pm

Re: Highly adaptable Dochian Channel Strategy

Postby Apprentice » Wed Feb 13, 2013 5:23 am

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly adaptable Dochian Channel Strategy

Postby 69TomD » Wed Feb 20, 2013 2:05 am

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?
69TomD
 
Posts: 7
Joined: Thu Feb 09, 2012 3:50 pm

Re: Highly adaptable Dochian Channel Strategy

Postby Apprentice » Wed Feb 20, 2013 5:54 am

In theory yes.
If i do not use last (current) period in the calculation.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly adaptable Dochian Channel Strategy

Postby LearningForex » Fri Mar 08, 2013 12:07 am

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.
LearningForex
 
Posts: 2
Joined: Mon Apr 25, 2011 7:50 pm

Next

Return to Custom Strategies

Who is online

Users browsing this forum: Google [Bot] and 23 guests