1 registered members (flink),
767
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Messing with detect/Fréchet
#436951
02/06/14 09:21
02/06/14 09:21
|
Joined: Jan 2013
Posts: 68
ibra
OP
Junior Member
|
OP
Junior Member
Joined: Jan 2013
Posts: 68
|
Hi, Trying to figure out how the detect analysis works. Code from manual:
//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: jcl]
#437172
02/11/14 12:17
02/11/14 12:17
|
Joined: Jan 2013
Posts: 68
ibra
OP
Junior Member
|
OP
Junior Member
Joined: Jan 2013
Posts: 68
|
Thank you for replying. Another concern:
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#.UvzBDPl5NVUThough 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#.UvzBpPl5NVUIf anyone could tell me what the problem seems to be. Second: Let's say I code a pattern i.e like this
var cup[10] = { 1,0,1,0,-1 };
is that different comparing to this:
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.
|
|
|
|