PureBytes Links
Trading Reference Links
|
Eugene,
you may have less than 6 cascade pattern bars.
When the pattern [or the 6 bars] is over, the highest high is
ValueWhen(Cond1==0 AND Ref(Cond1,-1),Ref(HHV(H,6),-1))
See the
Cond=C>Ref(C,-4);
Cond1=Cond AND BarsSince(NOT(Cond))<=6;
Plot(C,"",4*Cond1+1,64);
Plot(ValueWhen(Cond1==0 AND Ref(Cond1,-1),Ref(HHV(H,6),-1)),"",4,1);
if it gives what you want.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Eugene" <johngalt1234@xxxx> wrote:
> Basic pattern
> C>ref(c,-4)
>
> I want to be able to caluculate the highest high in the first 6
> periods of the occurrence of this pattern?
>
> TIA
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy No Snore & Get a Good Night's Sleep. Natural Oral Spray -- $24.95
(1 bottle, 1 month supply, with sweet almond oil, eucalyptus oil & more).
http://www.challengerone.com/t/l.asp?cid=2881&lp=h515.html
http://us.click.yahoo.com/2oMABA/nuYGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|