Donchian Channel Break Out strategy

Strategies are published here.

Moderator: admin

Re: Donchian Channel Break Out strategy

Postby ancient-school » Sun Jun 19, 2011 8:49 am

Hi,

Please review the code for Long Only, Short Only, Long & Short ... These options are not being respected...

Much Obliged
Going for it is more important than winning or losing!
User avatar
ancient-school
 
Posts: 20
Joined: Tue Apr 13, 2010 1:56 pm

Re: Donchian Channel Break Out strategy

Postby vstrelnikov » Thu Jun 23, 2011 7:10 pm

There is a version with fixed Buy/Sell/Both issue attached.
Top post will be updated after some testing.

Donchian Strategy.lua
(18.81 KiB) Downloaded 1531 times
vstrelnikov
 
Posts: 59
Joined: Tue Jul 06, 2010 8:31 pm

Re: Donchian Channel Break Out strategy

Postby ancient-school » Thu Jun 23, 2011 10:17 pm

Hi,

Thank you for the effort ... Currently testing Long, Short, Both options, however one other issue I have noticed is that the Strategy interferes with other open positions of the instrument it is attached too, irrespective of whether the positions belong to the Strategy or not.

Would be good if the Strategy would strictly track and trade its own positions ... i.e. not to interfere with other open positions not initiated by the Strategy itself.
Going for it is more important than winning or losing!
User avatar
ancient-school
 
Posts: 20
Joined: Tue Apr 13, 2010 1:56 pm

Re: Donchian Channel Break Out strategy

Postby ancient-school » Fri Jun 24, 2011 6:47 am

vstrelnikov wrote:There is a version with fixed Buy/Sell/Both issue attached.
Top post will be updated after some testing.

Test Results

Now that the options for specific direction to trade are working, "Use Stop Exit" is not working ...

i.e.: If "Stop Donchian Channel Period" has been breached by Price, Open Positions are not Closed using "Use Stop Exit: YES," even if parameter for "Use Stop Exit" is set to Yes

Re-Cap: If "Allow Side" is set to either "Long Only" or "Short Only"... Parameter "Use Stop Exit: YES," is not repected.
Going for it is more important than winning or losing!
User avatar
ancient-school
 
Posts: 20
Joined: Tue Apr 13, 2010 1:56 pm

Re: Donchian Channel Break Out strategy

Postby vstrelnikov » Tue Jul 05, 2011 3:35 pm

Would you please, try the attached version. "Exit stop" problem should be fixed here.
Donchian Strategy.lua
(18.66 KiB) Downloaded 1713 times
vstrelnikov
 
Posts: 59
Joined: Tue Jul 06, 2010 8:31 pm

Re: Donchian Channel Break Out strategy

Postby ancient-school » Tue Jul 05, 2011 6:30 pm

vstrelnikov wrote:Would you please, try the attached version. "Exit stop" problem should be fixed here.

Use Stop Exit on Central Line Crossover Does not work ...
Exit Works on High and Low Lines ONLY, and according to setting of "Stop Donchian Channel Period" Parameter ...

Re-Cap - If Parameter: "Exit on Central Line Cross Over" is set to "Yes"; All Open Trades should be Exited if the Central Line of "Stop Donchian Channel Period" is Breached by Price

Thank you for fixing Stop Exit on High and Low Lines!
Going for it is more important than winning or losing!
User avatar
ancient-school
 
Posts: 20
Joined: Tue Apr 13, 2010 1:56 pm

Re: Donchian Channel Break Out strategy

Postby BlueBloodedTrader » Fri Jul 29, 2011 5:08 pm

can you introduce a directional bias so that trades are only taken in the direction of the trend? For example, long trades should be taken on breakouts of higher highs (not lower highs) and similarly short trades should be taken on breakouts of lower lows (not higher lows). This will improve the win trade ratio...."the trend is your friend". What needs to be done is to look at the plateaus (horizontal parts of the donchian channels): if the breakout is of a horizontal upper channel that is higher than the last horizontal upper channel, then we have a higher high and a long trade should be entered....but if the breakout is of the horizontal upper channel that is lower than the last horizontal upper channel then the market is trending down and a long trade would not be desirable so none is entered. The same applies in reverse for the lower donchian channel and entries of short trades. Could you modify this please or publish a new version of this strategy with this improvement? Thanks
BlueBloodedTrader
 
Posts: 11
Joined: Tue Feb 15, 2011 6:02 pm

Re: Donchian Channel Break Out strategy

Postby deetrader999 » Fri Jul 06, 2012 9:56 pm

Thanks. Can you make a strategy that enters on the big channel high or low? And only exits on the same big channel, high or low? Instead of the 2 channels. Everything else is fine. I thought of editing it myself but it looks complicated. Thank-You.
deetrader999
 
Posts: 8
Joined: Fri Nov 11, 2011 7:04 pm

Re: Donchian Channel Break Out strategy

Postby Apprentice » Mon Jul 09, 2012 6:49 am

Your request is already added to the list of development
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Donchian Channel Break Out strategy

Postby automan » Wed Oct 10, 2012 3:15 pm

I see that the Donchian indicator is popular, downloaded more than 9000 times

Would it be possible to add an option to this strategy (or if there is a similar one) that to enter the trade on first tick that cross the channel? (High or low)

Now it enter the trade on close of the bar

Even if using 1 minute it can take multiple bars before close if the bar doesent close on high/low
automan
 
Posts: 19
Joined: Wed Mar 09, 2011 1:32 pm

PreviousNext

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 3 guests