Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (flink), 767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19057 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Messing with detect/Fréchet #436951
02/06/14 09:21
02/06/14 09:21
Joined: Jan 2013
Posts: 68
I
ibra Offline OP
Junior Member
ibra  Offline OP
Junior Member
I

Joined: Jan 2013
Posts: 68
Hi,

Trying to figure out how the detect analysis works.

Code from manual:

Code:
//detect 10-pip 10-bar cup formations in the price curve
function run()
{
  vars Price = series(price());
  [b]var cup[10] = { 6,3,1,0,0,0,1,3,6,-1 };[/b]
  plot("Cup Similarity",detect(Price,0,10*PIP,cup),NEW,RED);
}



My cocern is the numbers in the line I've bolded. Here's my theory about them:

http://sv.tinypic.com/view.php?pic=15gcjf4&s=8#.UvNTCvl5NVU
(mad paint skills, I know)

Have I got things right here?
But what do the numbers(especially the 0(zeros) actually mean? Is it the size(in pips) of the bars?
And is "one" number equivalent to "one" bar?


EDIT: And the scale-part aswell - the example is a cup of 10 PIPS. This, to me, seems sort of a very small cup?

Thanks in advance



Last edited by ibra; 02/06/14 09:24.
Re: Messing with detect/Fréchet [Re: ibra] #436988
02/07/14 08:02
02/07/14 08:02
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, the cup looks like you painted it. The scale, 10*PIP, determines its vertical size - indeed a small cup. 0 is the bottom of the pattern, the highest number, 6, is the top.

Re: Messing with detect/Fréchet [Re: jcl] #437172
02/11/14 12:17
02/11/14 12:17
Joined: Jan 2013
Posts: 68
I
ibra Offline OP
Junior Member
ibra  Offline OP
Junior Member
I

Joined: Jan 2013
Posts: 68
Thank you for replying.

Another concern:

Code:
StartDate = 20070501;
  EndDate = 20071001;
  BarPeriod = 240;
   vars Price = series(price());
  var cup[10] = { 1,0,1,0,-1 };
  plot("Cup Similarity",detect(Price,0,40*PIP,cup),NEW,RED);



When I run this, it looks like the following picture:

http://sv.tinypic.com/view.php?pic=rrs8hw&s=8#.UvzBDPl5NVU

Though a strange thing happens when i close Zorro and open it again. Because then, the same operation looks like this:

http://sv.tinypic.com/view.php?pic=2ql93s1&s=8#.UvzBpPl5NVU

If anyone could tell me what the problem seems to be.

Second:
Let's say I code a pattern i.e like this
Code:
var cup[10] = { 1,0,1,0,-1 };



is that different comparing to this:
Code:
var cup[10] = { 10,0,10,0,-1 };



(by looking at the chart, it seems to be a difference, but I dont know what)

What I think I'm asking is, what difference does the number value make? (as above, 10 comparing to 1).


Thanks in advance!

Ibra

Last edited by ibra; 02/13/14 13:04.
Re: Messing with detect/Fréchet [Re: ibra] #437480
02/18/14 11:37
02/18/14 11:37
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Scripts remember static variables, so recompiling the script can produce different results in certain situations, but not in your script. I'm always getting your second curve, not your first one. Maybe it's in fact two different scripts, due to some UAC problem?

But in the second case, there is indeed a difference between the patterns - I'll forward this to the developer. Maybe the documentation was wrong about the scale factor.

Re: Messing with detect/Fréchet [Re: jcl] #437555
02/19/14 12:18
02/19/14 12:18
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I was now informed that the documentation was right, but the scale was wrong due to a bug in the detect function. This will be fixed in the next update.

Re: Messing with detect/Fréchet [Re: jcl] #437562
02/19/14 15:37
02/19/14 15:37
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline
User
GPEngine  Offline
User
G

Joined: Sep 2013
Posts: 504
California
Can you please characterize the bug laugh

Re: Messing with detect/Fréchet [Re: GPEngine] #437567
02/19/14 17:23
02/19/14 17:23
Joined: Jan 2013
Posts: 68
I
ibra Offline OP
Junior Member
ibra  Offline OP
Junior Member
I

Joined: Jan 2013
Posts: 68
Thanks JCL!

Looking forward to see what the problem was.

Regards


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1