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

RE: [amibroker] Re: filtering data...



PureBytes Links

Trading Reference Links




take a 
look in the help file for datenum()   remember the y2k 
bug?
 Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: nurudinkaba 
[mailto:n.kaba@xxxxxxxxxx]Sent: Friday, March 28, 2003 11:48 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
filtering data...Thank you, Jayson for your help...just 
one question, Start=DateNum()==1030102;why 103 for year 
2003?Thanks again for your quick response...Nurudin--- In 
amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:> First 
break down what you are trying to do...> > 1)set a start 
date> 2)set a min MA of volume> 3)measure the ROC over the time 
period> > The first condition is found using the Datenum() 
function> the second is simple found using greater than> the third 
requires you to count the bars since condition one and apply the> ROC 
to that time frame....> > > 
Start=DateNum()==1030102;> count=LastValue(BarsSince(Start),1);> 
Croc=ROC(C,count);> testvol=MA(V,20)>1000000;> > Filter= 
testvol AND LastValue(croc)>5;> > 
AddColumn(ValueWhen(start,C,1),"close at start");> AddColumn(C,"close 
today");> AddColumn(croc,"ROC");> > Explore your watchlist 
for the results.....> > > Jayson> -----Original 
Message-----> From: nurudinkaba [mailto:n.kaba@xxxx]> > i'd 
like to filter symbols that have gained 5% since the beginning of> 
the calendar year and have a 20 day moving average of Volume greater> 
then 1,000,000...> > Any help would be appreciated.> 
> ThanksSend 
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


  ADVERTISEMENT









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.