DNC strategy

Strategies are published here.

Moderator: admin

DNC strategy

Postby Alexander.Gettinger » Tue Nov 30, 2010 4:27 am

Strategy based on DNC channel indicator (viewtopic.php?f=17&t=20&p=21&hilit=DNC#p21).
Strategy open/close orders when price touch channel.

DNC_Strategy.png


Download:
DNC_Strategy.lua
(10.73 KiB) Downloaded 2052 times


For this strategy must be installed DNC indicator (viewtopic.php?f=17&t=20&p=21&hilit=DNC#p21).

The Strategy was revised and updated on November 21, 2018.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: DNC strategy

Postby DS0167 » Tue Nov 30, 2010 5:41 am

thanks a lot ;)
DS0167
 
Posts: 86
Joined: Mon Aug 09, 2010 2:22 pm

Re: DNC strategy

Postby coldrecs » Thu Dec 02, 2010 10:00 am

Hello,

Thank you for this code. I managed to modify it a little to fit my actual trading strategy.
Still, I have a question: why none of the strategies posted here work on tick time frame ?


Thanks again,
Coldrecs
coldrecs
 
Posts: 5
Joined: Tue Aug 31, 2010 6:17 am

Re: DNC strategy

Postby Alexander.Gettinger » Thu Dec 02, 2010 10:17 pm

DNC indicator use high and low prices which are absent for ticks.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: DNC strategy

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

May I request an improvement to this strategy? There needs to be a directional bias. Trades should open in the direction of the trend only. Consequently, long trades will open on higher highs: short trades will open on lower lows. The way to hard code this into the strategy appears simple. At the moment the trade is opened when the specified DNC channel is breached , i.e. a "breakout" in either direction. This may be achieved by comparing plateaus (horizontal parts of the DNC channels) such that a long trade should only open if the "breakout" is of an upper DNC channel that is ascending i.e. the breakout is of a plateau that is higher than the last upper channel plateau; and similarly, a short trade should only be opened if the breakout is of a lower DNC channel that is decending, i.e. the breakout plateau is lower than the last lower channel plateau. Are you able to code this please?
BlueBloodedTrader
 
Posts: 11
Joined: Tue Feb 15, 2011 6:02 pm

Re: DNC strategy

Postby BlueBloodedTrader » Tue Aug 09, 2011 3:39 pm

I am actually having problems with this strategy. I tried to use the funciton "exit on centre line crossover" but it didn't seem to exit. I obviously misunderstand what this function does.

Can you explain each of the parameters on this very complex strategy please?
BlueBloodedTrader
 
Posts: 11
Joined: Tue Feb 15, 2011 6:02 pm

Re: DNC strategy

Postby BlueBloodedTrader » Wed Aug 10, 2011 5:18 am

There is a latency problem with this strategy. Please see the attachment (3 screen shots) and the comments on that image.
Attachments
marketscope-strategy-issues.jpg
screen shots of the problems
BlueBloodedTrader
 
Posts: 11
Joined: Tue Feb 15, 2011 6:02 pm

Re: DNC strategy

Postby fxcruiser » Fri Aug 12, 2011 3:39 pm

BlueBloodedTrader, Hi,
It seems to me that the strategy waits for the candle to close and if the conditions met at the close of the candle then the exit or entry follows in the subsequent candle. That makes sense since it could be false breakout.
fxcruiser
 
Posts: 1
Joined: Fri Aug 12, 2011 12:23 pm

Re: DNC strategy

Postby laners303 » Mon Sep 05, 2011 9:15 am

Would it be possible to change it so that the strategy enters a trade the moment it touches or passes the Donchian Channel, instead of waiting for the candle to close?

Thanks
Laners303
laners303
 
Posts: 10
Joined: Tue Oct 12, 2010 10:03 am

Re: DNC strategy

Postby Apprentice » Mon Sep 05, 2011 12:27 pm

Such a thing is possible.
We can use the High / Low values ​​instead Closing Price.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 11 guests