PureBytes Links
Trading Reference Links
|
<FONT face=Arial color=#0000ff
size=2>Werner,
how
could the close be greater than the hhv(c,10) ? Instead make close = or perhaps
make c>ref(hhv(10),-1)....
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: Werner
[mailto:WKRAG@xxxxxxxxxxx]Sent: Wednesday, March 10, 2004 10:13
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Help
with 2 simple BUY conditionsGood day,still
learning the ropes of AB. Here are 2 simple BUY conditions I would like to
test on a portfolio:BUY, if1. Close is the highest in 10 days
and2. Close is 3% higher than yesterday's Close Exit at the Close
after 5 days.This is what I
tried:------------------------------------Close10 = HHV (
Close,10); //defining a variable hereCond1 = C > (1.03 *
Ref(Close,-1)); // this is the first conditionCond2 = C >
Close10;
// this is the 2nd conditionBuy = (Cond1 AND
Cond2);-----------------------------------------For EXIT (or SELL) I
have defined an EXIT after 5 days underSETTINGS, STOPS and put down 5 BARS.
Obviously there is something wrong. I get an error message:"Define BUY /
SELL".Thanks for helping a greenhorn.
WernerSend 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
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
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|