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

RE: [amibroker] Help - SQRT and Peak won't play nice



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>The "peak" function does not accept array as parameter. 

<FONT face=Arial color=#0000ff 
size=2>You can use:
<FONT 
face="Lucida Console" color=#000000 size=3>percdiff = lastvalue((((0.17 * 
sqrt(Close)) / Close) * 100)); 
Maybe 
Tomasz can add functions like peak, trough, zig... to the ones accepting arrays. 
It would be very useful to compute peak and trough depending on volatility (per 
example).
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>Waz
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Tahoma 
size=2>-----Original Message-----From: cby 
[mailto:cby1@xxxxxxx]Sent: Thursday, May 01, 2003 06:41 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Help - 
SQRT and Peak won't play niceHi. Maybe someone can tell 
me why the following does not work (bad args error on second 
line):percdiff = (((0.17 * sqrt(Close)) / Close) * 100); PK = Peak( 
H, percdiff, 1 ) == High;And this does work (actual number rather than 
Close):percdiff = (((0.17 * sqrt(4.5)) / 4.5) * 100); PK = Peak( H, 
percdiff, 1 ) == High;I'm sure it'll be something really dumb 
:-(.Thanks,ChrisSend 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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.