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

[amibroker] Sector condition



PureBytes Links

Trading Reference Links

 I have unsuccessfully programmed the following (bad arguments, 
Error2):

Buy= Foreign(SectorID(),C,1)>MA(Foreign(SectorID(),C,1),60);

ie I want to buy when the close of the composite sector for the stock 
is greater than the 60 day moving average of the composite.

Any help would be appreciated. Note that I have introduced composites 
later as:

inc = 1;
sym = "~" + SectorID(1);

AddToComposite( inc * L, sym,"L");
AddToComposite( inc * O, sym,"o");
AddToComposite( inc * H, sym,"h");
AddToComposite( inc * C, sym,"c");
AddToComposite( inc * V, sym, "V");

regards

Nick


------------------------ 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/mOAaAA/3exGAA/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/