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

RE: [amibroker] Re: Date range problem....



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Kieth,
<FONT face=Arial color=#0000ff 
size=2> 
In 
general if you refer to a date (without time) it assumes time of 12 am. 

<FONT face=Arial color=#0000ff 
size=2> 
Try to 
use 1/1/99...
<FONT face=Arial color=#0000ff 
size=2> 
<SPAN 
class=109231215-25052003>                        
Walt

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Keith Bennett 
  [mailto:kbennett@xxxxxxxxxx]Sent: Sunday, May 25, 2003 6:50 
  AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
  Date range problem....Thanks Mike, but that doesn't 
  do the trick.Keith--- In amibroker@xxxxxxxxxxxxxxx, "Mike 
  Lucero" <m.lucero@xxxx> wrote:> I'm not sure of the syntax, but 
  you want your sell condition to be> > Sell=Cond OR 
  Date=12/31/98> ----- Original Message ----- > From: "Keith 
  Bennett" <kbennett@xxxx>> To: 
  <amibroker@xxxxxxxxxxxxxxx>> Sent: Sunday, May 25, 2003 2:14 
  AM> Subject: [amibroker] Date range problem....> > 
  > Can anyone see my error:> > I set the range in AA to 
  1/1/1998 to 12/31/1998.> > Buy = Cond;Sell = Cond;> Short 
  = Sell;Cover = Buy;> > This correctly produces 13 trades. The 
  first is 1/2/98 to 1/8/98 and> the last is (Open Long) 10/23/98 to 
  12/31/98. No problem.> > I set the range in AA to All 
  Quotations:> > Buy=Cond AND Year()==1998;> Sell=Cond and 
  Year()==1998;> Short=Sell;Cover=Buy;> > The first trade 
  is still 1/2/98 but the last is (Open Long)10/23/98> to 5/23/03 and for 
  this reason % profit is not correct for 1998.> > How do I get 
  the afl to respect the Year() function after the Sell> 
  statement?> > Keith> > > > Send BUG 
  REPORTS to bugs@xxxx> Send SUGGESTIONS to suggest@xxxx> 
  -----------------------------------------> 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 <A 
  href="">http://docs.yahoo.com/info/terms/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.