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

RE: [amibroker] Fixed Buy Dates



PureBytes Links

Trading Reference Links

Try 2 lines of buy date conditions, not certain if it will work


BuyDate1 = (name()=="A" )*1030808 + (name()=="X")*1030815;
BuyDate2 = (name()=="A" )*1030508
Buy = datenum()==BuyDate1 or datenum()==BuyDate2;


Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia
-----Original Message-----
From: Linda Wilmarth [mailto:smart@xxxxxxxxxx] 
Sent: Thursday, 11 September 2003 12:33 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Fixed Buy Dates


Graham,

Your suggestion worked great until I got to a symbol that I wanted to define
multiple buy dates for.  When I defined more than 1 BuyDate for a given
symbol, 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 AM
Subject: RE: [amibroker] Fixed Buy Dates


You cou8ld try this

BuyDate = (name()=="A" )*1030808 + (name()=="X")*1030815;

Buy = datenum()==BuyDate;

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia


-----Original Message-----
From: wilmarthl [mailto:smart@xxxxxxxxxx] 
Sent: Wednesday, 10 September 2003 8:50 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Fixed Buy Dates


I 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 ---------------------~--> Buy
Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark Printer
at Myinks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/ 



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. 


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. 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/