[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] HHV - TJ



PureBytes Links

Trading Reference Links










Price_PriorPeak1 =ref( <span
>HHV(High,5),-Peak1_Bars+<font
color=fuchsia>2);

 



<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: <font
 face=Tahoma>Graham<font
face=Tahoma> [mailto:<font
 face=Tahoma>gkavanagh@xxxxxxxxxxxxx<font
face=Tahoma>] 
Sent: Friday, 9 May 2003<font
face=Tahoma> <font
 face=Tahoma>6:33 AM<font
face=Tahoma>
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] HHV - TJ

<font size=2
face="Times New Roman"> 

<span
>Sorry, I misread what your peak_bars
was. Realise it barssince now, so my formula would not work.

<span
>I will try to look at it today if
possible.

<span
> 



<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: Friday, 9 May 2003<font
face=Tahoma> <font
 face=Tahoma>1:20 AM<font
face=Tahoma>
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] HHV - TJ

<font size=2
face="Times New Roman"> 



<span
>Graham,





<font size=3
face="Times New Roman"> 







<span
>I don't understand why either my
original formula or your suggestion work the way they do.





<font size=3
face="Times New Roman"> 





<span
>The intent is to get the HHV of the
range starting at (-peak1_bars +2) and scanning a range  of  5
bars....





<font size=3
face="Times New Roman"> 







<span
>I tried your suggestion... 





<span
>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) );





<span
>it returns the value of the last
peak ( not prior) ...





<font size=3
face="Times New Roman"> 





<span
>My formula 





<span
>Price_PriorPeak1 = <span
>HHV(Ref(<span
>High,-Peak1_Bars+<span
>2),<span
>5);<font size=1
face="Courier New"> 





<span
>returns the value 2 bars after my
signal (because of the offset of 2 I have placed)





<font size=3
face="Times New Roman"> 





<span
>Hope someone else jumps in 





<font size=3
face="Times New Roman"> 





<span
>Ara





<font size=3
face="Times New Roman"> 





<font size=3
face="Times New Roman"> 





<font size=3
face="Times New Roman"> 





<font size=3
face="Times New Roman"> 





<font size=3
face="Times New Roman"> 







<span
>----- Original Message ----- 





<font
size=2 face=Arial>From: <a
href="" title="gkavanagh@xxxxxxxxxxxxx">Graham






<span
>To:<font
face=Arial> <a
href="" title="amibroker@xxxxxxxxxxxxxxx">amibroker@xxxxxxxxxxxxxxx






<span
>Sent:<font
face=Arial> <font
 face=Arial>Thursday, May 08, 2003<font
face=Arial> <font
 face=Arial>12:09 AM





<span
>Subject:<font
face=Arial> RE: [amibroker] HHV





<font size=3
face="Times New Roman"> 



<span
>Try

<font size=2
face="Times New Roman"> 

<span
>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

<font size=2
face="Times New Roman"> 

<font size=2 color=black
face="Courier New">I have used similar to find HHV at a condition point, here is part
of that code

<font size=2
face="Times New Roman"> 

<font size=2 color=black
face="Courier New">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">{

<font size=2 color=black
face="Courier New">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=2
face="Times New Roman"> 



<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<font
face=Tahoma> <font
 face=Tahoma>2:35 PM<font
face=Tahoma>
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).

<span
> 

Anyone see a problem with this code?

<span
> 

Thanks

Ara

<span
> 

<span
> 



 

<font size=3
face="Courier New">Send BUG REPORTS to bugs@xxxxxxxxxxxxx<font
size=3 face="Courier New">
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<font
size=3 face="MS PGothic">


Your
use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.<font
size=3 face="MS PGothic">


<font size=3
face="Times New Roman"> 

<span
>

Send
BUG REPORTS to bugs@xxxxxxxxxxxxx<font size=3
face="Courier New">
Send SUGGESTIONS to
suggest@xxxxxxxxxxxxx<span
>
-----------------------------------------<font
size=3 face="Courier New">
Post AmiQuote-related messages ONLY
to: amiquote@xxxxxxxxxxxxxxx <span
>
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)<font
size=3 face="Courier New">
--------------------------------------------<font
size=3 face="Courier New">
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
size=3 face="MS PGothic">


Your
use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.<font
size=3 face="MS PGothic">




 

<font size=3
face="Courier New">Send BUG REPORTS to
bugs@xxxxxxxxxxxxx<span
>
Send SUGGESTIONS to
suggest@xxxxxxxxxxxxx<span
>
-----------------------------------------<font
size=3 face="Courier New">
Post AmiQuote-related messages ONLY
to: amiquote@xxxxxxxxxxxxxxx <span
>
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)<font
size=3 face="Courier New">
--------------------------------------------<font
size=3 face="Courier New">
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
size=3 face="MS PGothic">


Your
use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.<font
size=3 face="MS PGothic">


<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.