PureBytes Links
Trading Reference Links
|
<span lang=EN-AU
>Thanks <span
class=SpellE>Jayson, it works for me.
<span lang=EN-AU
>graham
<span lang=EN-AU
>
<span
>-----Original
Message-----
From: Jayson
[mailto:jcasavant@xxxx]
Sent: Saturday, 2 November 2002
3:02 PM
To: amibroker@xxxxx
Subject: RE: [amibroker] help with
ATR and Min
<font size=3
face="Times New Roman">
<font size=2 color=blue
face=Arial>Graham,
<font size=2 color=blue
face=Arial>ATR requires constant data. Your code states ....<span
>
<font size=3
face="Times New Roman">
<font size=2 color=blue
face=Arial>you want the to count all the bars<span
>
<font size=2 color=blue
face=Arial>if the count is less than 260 use that bar count, else
use 260
<font size=3
face="Times New Roman">
<font size=2 color=blue
face=Arial>you could make the period constant by asking for the
last value of your calculation. It will not be dynamic across your chart but
will reflect the last calculation taken.......<span
>
<font size=3
face="Times New Roman">
<span
>first=<font
size=2 color=blue face=Arial>Cum<span
>(<font
size=2 color=fuchsia face=Arial>1<span
>);
<span
>Period=<font
size=2 color=blue face=Arial>Min<span
>(<font
size=2 color=fuchsia face=Arial>260<span
>,first);
<span
>x=<font
size=2 color=blue face=Arial>ATR<span
>(<font
size=2 color=blue face=Arial>LastValue<span
>(period));
<span
>Plot<font
size=2 color="#282828" face=Arial>(x,<span
>""<font
size=2 color="#282828" face=Arial>,<span
>colorBlue<font
size=2 color="#282828" face=Arial>,<span
>4<font
size=2 color="#282828" face=Arial>);
<font size=3
face="Times New Roman">
<font size=6 color=blue
face="Palace Script MT">Jayson
-----Original Message-----
From: kaveman
[mailto:kavemanperth@xxxx]
Sent: Friday, November 01, 2002
9:58 PM
To: amibroker@xxxxx
Subject: [amibroker] help with ATR
and Min
<span
lang=EN-AU >I have tried to use this
in an AFL and get an error message
<span
lang=EN-AU >The ATR works fine
without the Min being used
<span
lang=EN-AU >
<font
size=2 color=black face="Courier New">first=<font
size=2 color=blue face="Courier New">Cum<font
size=2 color=black face="Courier New">(<font size=2
color=fuchsia face="Courier New">1<font
size=2 color=black face="Courier New">);
<font
size=2 color=black face="Courier New">Period=<font
size=2 color=blue face="Courier New">Min<font
size=2 color=black face="Courier New">(<font size=2
color=fuchsia face="Courier New">260<font
size=2 color=black face="Courier New">,first);
<font size=2 color=black
face="Courier New">x=<font size=2 color=blue
face="Courier New">ATR<font size=2 color=black
face="Courier New">(period);
<font size=2 color=black
face="Courier New">
<font size=2 color=black
face="Courier New">Graham<font size=2
face=Arial>
<font size=3
face="Times New Roman">
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx <span
>
(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<span
>
Your use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.<span
>
<font size=2
face="Courier New">Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx <font
size=2 face="Courier New">
(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<span
>
Your use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.<span
>
|