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

Re: [amibroker] Fixed Buy Dates



PureBytes Links

Trading Reference Links




Graham,
 
This worked - thanks for your help.
 
Linda
 
----- Original Message ----- 
<BLOCKQUOTE 
>
  <DIV 
  >From: 
  <A title=gkavanagh@xxxxxxxxxxxxx 
  href="">Graham 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: September 10, 2003 6:20 PM
  Subject: RE: [amibroker] Fixed Buy 
  Dates
  Try 2 lines of buy date conditions, not certain if it will 
  workBuyDate1 = (name()=="A" )*1030808 + 
  (name()=="X")*1030815;BuyDate2 = (name()=="A" )*1030508Buy = 
  datenum()==BuyDate1 or datenum()==BuyDate2;Cheers,Graham<A 
  href="">http://groups.msn.com/ASXShareTrading<A 
  href="">http://groups.msn.com/FMSAustralia-----Original 
  Message-----From: Linda Wilmarth [mailto:smart@xxxxxxxxxx] Sent: 
  Thursday, 11 September 2003 12:33 AMTo: 
  amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] Fixed Buy 
  DatesGraham,Your suggestion worked great until I got to a 
  symbol that I wanted to definemultiple buy dates for.  When I defined 
  more than 1 BuyDate for a givensymbol, AmiBroker did not open either of 
  the positions. Any ideas how to get around this?Linda----- 
  Original Message ----- From: Graham To: amibroker@xxxxxxxxxxxxxxx 
  Sent: September 10, 2003 6:05 AMSubject: RE: [amibroker] Fixed Buy 
  DatesYou cou8ld try thisBuyDate = (name()=="A" )*1030808 + 
  (name()=="X")*1030815;Buy = 
  datenum()==BuyDate;Cheers,Graham<A 
  href="">http://groups.msn.com/ASXShareTrading<A 
  href="">http://groups.msn.com/FMSAustralia-----Original 
  Message-----From: wilmarthl [mailto:smart@xxxxxxxxxx] Sent: Wednesday, 
  10 September 2003 8:50 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
  [amibroker] Fixed Buy DatesI want to test a trading strategy in 
  which I already know the Buy Dates of the various stocks I will be 
  trading, and just want to optimize the sell strategy. For example, 
  I may already know that I want to buy A on 8/1/03 and buy X on 
  8/15/03.  Then I will write code for my sell strategy, as 
  usual.Is there a way to fix the buy dates for each stock in a 
  group?Linda------------------------ Yahoo! Groups 
  Sponsor ---------------------~--> BuyInk Cartridges or Refill Kits for 
  Your HP, Epson, Canon or Lexmark Printerat Myinks.com. Free s/h on orders 
  $50 or more to the US & Canada.<A 
  href="">http://www.c1tracking.com/l.asp?cid=5511<A 
  href="">http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM---------------------------------------------------------------------~->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 <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 Yahoo! Terms of Service. 
  Yahoo! Groups SponsorSend 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 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


  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.