PureBytes Links
Trading Reference Links
|
Try
Price_PriorPeak1 = <font color=blue
face="Courier New">ValueWhen<span
lang=EN-AU >(<font
face=Arial>Peak1_Bars<font
color=black face="Courier New">, <span
lang=EN-AU >HHV<font
color=black face="Courier New">(<span
lang=EN-AU >H<font
color=black face="Courier New">,period) ); //assumes Peak1_bars is binary, if not the Peak1_bars==StochasticValue
<span
lang=EN-AU >
<span
lang=EN-AU >I
have used similar to find HHV at a condition point, here is part of that code
<span
lang=EN-AU >
<span
lang=EN-AU >SupTurn
= <span lang=EN-AU
>Cross<font
color=black face="Courier New">(myMACD,mySignal);
<font size=2 color=red
face="Courier New">for<span
lang=EN-AU >( i = <font
color=fuchsia face="Courier New">1<span
lang=EN-AU >; i <= numline; i++
)
<font size=2 color=black
face="Courier New">{
<span
lang=EN-AU >SupLevel
= <span lang=EN-AU
>LastValue<font
color=black face="Courier New">(<span
lang=EN-AU >ValueWhen<font
color=black face="Courier New">(SupTurn,<span
lang=EN-AU >LLV<font
color=black face="Courier New">(<span
lang=EN-AU >L<font
color=black face="Courier New">,period),i));
<font size=3 color=teal
face="Times New Roman">Cheers,
Graham
<font size=2
color="#339966" face="Times New Roman"><font
color="#339966">http://groups.msn.com/ASXShareTrading
<font size=2
color="#339966" face="Times New Roman"><font
color="#339966">http://groups.msn.com/FMSAustralia
<span
>-----Original Message-----
From: Ara Kaloustian
[mailto:ara1@xxxxxxxxxx]
Sent: Thursday, 8 May 2003 2:35 PM
To: Amibroker
Subject: [amibroker] HHV
<font size=2
face="Times New Roman">
<span
>Using
Price_PriorPeak1 = <span
>HHV(Ref(<span
>High,-Peak1_Bars+<span
>2),<span
>5);<font size=1
face="Courier New">
Peak1_Bars is derived from the stochastic peak and
I'm trying to correlate that with price peak.
I am trying to find the highest value of High
starting at bar (Peak1_Bars - 2) to (Peak1_Bars + 3).
The above code is returning the value at the starting
point of the range (Peak1_Bars - 2).
Anyone see a problem with this code?
Thanks
Ara
<span
>
<font size=2
face="Times New Roman">
Send
BUG REPORTS to bugs@xxxxxxxxxxxxx<span
>
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
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 the Yahoo! Terms of Service.
|