PureBytes Links
Trading Reference Links
|
hi,
I'm still in the process of learning AFL I found the following code,
// Pullback System # 1
condition1 = ref(c,-2) < ref(c,-3) and ref(c,-1) < ref(c,-2);
condition2 = h > ref(h,-1);
filter = c > ma(c,50);
buy = condition1 and condition2 and filter;
buyPrice = valuewhen( buy, open,1);
sell = c > buyPrice or l < ref(llv(l,2),-1);
buy = exRem(buy,sell);
sell = exRem(sell,buy);
see also: http://www.amibroker.com/library/formula.php?id=24
Is it right to assume that this system is not possible because
condition2 states the high of "the day of purchase" should be greater
than yesterdays high while we buy at the open.
regards, Ed
------------------------ 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/
|