PureBytes Links
Trading Reference Links
|
Alex Matulich on 25/07/08 22:04, wrote:
[snipped]
The way you modify that to get the 2nd highest swing point is
similar to what I did in the first function above: store the current
highest in an array (in this case 'rtn' would be an array), and when
you find a higher one, bump the others down in the array.
Hi Alex,
interesting, that is in fact more or less what I need to do now to rationalize
the loop I already have, which tends to get thrown off course quite easily.
I'm finding the highest hi (for resistance), working out if the resistance line
slopes up or down, and then finding the next highest to give me the line. It
gets ugly quickly if the two bars are next to each other, so I need to factor in
some kind of rules such as yours.
Regards
Adam
|