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

RE: [amibroker] AA/AFL: How many bars within date range



PureBytes Links

Trading Reference Links




<FONT 
color=#8b0000 size=1><FONT face="Arial Narrow" 
color=#8b0000 size=1>

  Start = <FONT 
  face="Arial Narrow" color=#0000ff>ValueWhen<FONT face="Arial Narrow" 
  color=#8b0000>(<FONT face="Arial Narrow" 
  color=#0000ff>Status<FONT face="Arial Narrow" 
  color=#8b0000>(<FONT face="Arial Narrow" 
  color=#cc4466>"FirstBarInRange"<FONT face="Arial Narrow" 
  color=#8b0000>),<FONT face="Arial Narrow" 
  color=#0000ff>BarIndex<FONT face="Arial Narrow" 
  color=#8b0000>());End = 
  <FONT face="Arial Narrow" 
  color=#0000ff>ValueWhen<FONT face="Arial Narrow" 
  color=#8b0000>(<FONT face="Arial Narrow" 
  color=#0000ff>Status<FONT face="Arial Narrow" 
  color=#8b0000>(<FONT face="Arial Narrow" 
  color=#cc4466>"LastBarInRange"<FONT face="Arial Narrow" 
  color=#8b0000>),<FONT face="Arial Narrow" 
  color=#0000ff>BarIndex<FONT face="Arial Narrow" 
  color=#8b0000>());NumStartToDays = 
  End-Start;<FONT face="Arial Narrow" 
  color=#0000ff>AddColumn<FONT face="Arial Narrow" 
  color=#8b0000>(Start,<FONT face="Arial Narrow" 
  color=#cc4466>"Start"<FONT face="Arial Narrow" 
  color=#8b0000>,1.0<FONT 
  face="Arial Narrow" color=#8b0000>);<FONT face="Arial Narrow" 
  color=#0000ff>AddColumn<FONT face="Arial Narrow" 
  color=#8b0000>(End,<FONT face="Arial Narrow" 
  color=#cc4466>"End"<FONT face="Arial Narrow" 
  color=#8b0000>,1.0<FONT 
  face="Arial Narrow" color=#8b0000>);<FONT face="Arial Narrow" 
  color=#0000ff>AddColumn<FONT face="Arial Narrow" 
  color=#8b0000>(NumStartToDays,<FONT face="Arial Narrow" 
  color=#cc4466>"<FONT face="Arial Narrow" 
  color=#cc4466>NumStartToDays"<FONT face="Arial Narrow" 
  color=#8b0000>,1.0<FONT 
  face="Arial Narrow" color=#8b0000>);<FONT face="Arial Narrow" 
  color=#ff0000>Filter<FONT face="Arial Narrow" 
  color=#8b0000>=<FONT face="Arial Narrow" 
  color=#0000ff>Status<FONT face="Arial Narrow" 
  color=#8b0000>(<FONT face="Arial Narrow" 
  color=#cc4466>"lastBarInTest"<FONT face="Arial Narrow" 
  color=#8b0000>);
<SPAN 
class=290024602-30042003> <FONT face=Tahoma 
size=2>-----Original Message-----From: Jayson 
[mailto:jcasavant@xxxxxxxxxxxx]Sent: April 30, 2003 2:34 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: RE: [amibroker] 
AA/AFL: How many bars within date range

  <SPAN 
  class=846152918-29042003>Um,
  <SPAN 
  class=846152918-29042003> 
  <SPAN 
  class=846152918-29042003>probably the simplest method would be to use a 
  combination of valuewhen, datenum and barindex... something 
  like...
  <SPAN 
  class=846152918-29042003> 
  <SPAN 
  class=846152918-29042003>start=valuewhen(datenum()==951231,barindex());
  <SPAN 
  class=846152918-29042003>end=valuewhen 
  (datenum()==1011231 ,barindex());
  <SPAN 
  class=846152918-29042003> 
  <SPAN 
  class=846152918-29042003>count=end-start; 
  <SPAN 
  class=846152918-29042003> 
  you 
  might want to take a look at help for assistance deciphering the date 
  format...
   Jayson 
  <FONT face=Tahoma 
  size=2>-----Original Message-----From: uenal.mutlu@xxxxxxxxxxx 
  [mailto:uenal.mutlu@xxxxxxxxxxx]Sent: Tuesday, April 29, 2003 2:23 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
  AA/AFL: How many bars within date rangeHi,how can 
  I get the number of bars betweena given fromdate and todate in 
  AA?ThxUMSend 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. 
  Send 
  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.