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

RE: [amibroker] Finding the first bar of chart



PureBytes Links

Trading Reference Links








<span lang=EN-AU
>Thanks <span
class=SpellE>Stephane and Jayson

<span lang=EN-AU
>Graham

<span lang=EN-AU
> 

<span
>-----Original
Message-----
From: Jayson
[mailto:jcasavant@xxxx] 
Sent: <st1:date
Month="10" Day="29" Year="2002"><span
>Tuesday,
29 October 2002<span
> <st1:time
Hour="23" Minute="6">11:06 PM<font
size=2 face=Tahoma>
To: amibroker@xxxxx
Subject: RE: [amibroker] Finding
the first bar of chart

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



<font size=2 color=blue
face=Arial>Graham,





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





<font size=2 color=blue
face=Arial>try perhaps,





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





<font size=2 color=blue
face=Arial>x=cum(1);





<font size=2 color=blue
face=Arial>pds=iif(x>500,500,x);<span
>





<font size=2 color=blue
face=Arial>plot(ma(c,x),"Variable MA",coloryellow,4);<span
>





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



<font size=6 color=blue
face="Palace Script MT">Jayson 

-----Original Message-----
From: Graham
[mailto:gkavanag@xxxx]
Sent: <st1:date
Month="10" Day="29" Year="2002"><span
>Tuesday,
October 29, 2002<span
> <st1:time
Hour="2" Minute="37">2:37 AM<font
size=2 face=Tahoma>
To: amibroker@xxxxx
Subject: [amibroker] Findingthe
first bar of chart

<span
lang=EN-AU >I am wanting to set up a
long term MA. In some cases there would not be enough history data to create
this MA. I then will set it to the number of bars possible.

<span
lang=EN-AU >My query, and I know this
has been asked before, and cannot remember. How can I write in an AFL to find
the first bar for the stock and then define this to use in an MA.

<span
lang=EN-AU >I will use the lesser of
500 bars or total bars in chart.

<span
lang=EN-AU > 

<span
lang=EN-AU >Thanks in advance

<span
lang=EN-AU >Graham

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

Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxxxxx

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