[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 
class=521345814-29102002>Graham,
<SPAN 
class=521345814-29102002> 
try 
perhaps,
<SPAN 
class=521345814-29102002> 
<SPAN 
class=521345814-29102002>x=cum(1);
<SPAN 
class=521345814-29102002>pds=iif(x>500,500,x);
<SPAN 
class=521345814-29102002>plot(ma(c,x),"Variable 
MA",coloryellow,4);
 
Jayson 

<FONT face=Tahoma 
size=2>-----Original Message-----From: Graham 
[mailto:gkavanag@xxxx]Sent: Tuesday, October 29, 2002 2:37 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
Finding the 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 writein 
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 
>GrahamPost 
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.