Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 390 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 4 1 2 3 4
Re: Donchian Channel Indicator [Re: TankWolf] #410264
10/31/12 11:16
10/31/12 11:16
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
You're absolutely right: The 0..100 range contradicts the website that says DX = (+DI - -DI)/(+DI + -DI). This would not generate a 0..100 range, but a -1..+1 range. So one of them is obviously wrong.

Although I don't think that DX, +DI, or -DI can generate very useful trade signals, that issue has to be solved. I'll check the source and will find out which algorithm is really used.

Re: Donchian Channel Indicator [Re: jcl] #410268
10/31/12 12:17
10/31/12 12:17
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Ok, TA-Lib indeed uses a different formula:

DX = 100*abs(+DI - -DI)/(+DI + -DI)

With this formula it's not possible to determine which crosses which. You're encouraged to write your own version of the +DI and -DI indicators if you need them. If you encounter any problems, post in the script forum and I'll help.

Re: Donchian Channel Indicator [Re: jcl] #410311
11/01/12 01:26
11/01/12 01:26
Joined: Sep 2012
Posts: 99
T
TankWolf Offline
Junior Member
TankWolf  Offline
Junior Member
T

Joined: Sep 2012
Posts: 99
Hmmm okies I see, by the way I did notice these other indicators just now maybe they can be used?

Quote:

MinusDI(int TimePeriod): var
Minus Directional Indicator.

MinusDM(int TimePeriod): var
Minus Directional Movement.

PlusDI(int TimePeriod): var
Plus Directional Indicator.

PlusDM(int TimePeriod): var
Plus Directional Movement.


There is no real description on what they return or do though but looking at the TALib for these indicators it seems maybe these are to be used instead?

Re: Donchian Channel Indicator [Re: TankWolf] #410323
11/01/12 09:42
11/01/12 09:42
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Yes, that's it. The TA-Lib calculates them as separate indicators.

Re: Donchian Channel Indicator [Re: jcl] #410580
11/05/12 20:23
11/05/12 20:23
Joined: Nov 2012
Posts: 4
Colombia
M
maudur Offline
Guest
maudur  Offline
Guest
M

Joined: Nov 2012
Posts: 4
Colombia
Originally Posted By: jcl
Not only that, you also used "numLong" instead of "numLong(0)". Both are valid C expressions, but numLong is the pointer of the numLong() function.

We have removed numLong() from the documentation because it is not needed. The number of trades and all other trade statistics are directly available as variables:

http://manual.zorro-trader.com/winloss.htm


I've used NumOpenLong but I got the following message:

'NumOpenLong' undeclared identifier.

I need to include some specific line at start?

Thanks.

Re: Donchian Channel Indicator [Re: hughbriss] #416756
02/04/13 09:58
02/04/13 09:58
Joined: Nov 2012
Posts: 209
S
SFF Offline
Member
SFF  Offline
Member
S

Joined: Nov 2012
Posts: 209
I tested that script below URL with another parameter and It said this error.
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=410020#Post410020

BADFREE2: SYS

What is this?

Re: Donchian Channel Indicator [Re: SFF] #416757
02/04/13 10:04
02/04/13 10:04
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
That script had wrong variable names. It's "NumOpenLong" and "NumOpenShort", not "numShort".

Page 4 of 4 1 2 3 4

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1