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.