PureBytes Links
Trading Reference Links
|
You have redefined the OHLC arrays of the ticker you on to that of the
foreign VXN.
Maybe use the Cond1 with the foreign statement direct
Cond1 = Foreign("!Vxn","C") > BBandTop(Foreign("!Vxn","C") ,20,2);
Cheers,
Graham
http://groups.msn.com/asxsharetrading
http://groups.msn.com/fmsaustralia
-----Original Message-----
From: ewn87544 [mailto:ewn87544@xxxxxxxxxxx]
Sent: Wednesday, 14 January 2004 1:23 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Help with Profit Test
The below profit test buys the VXN and not the current ticker. What is wrong
with it? I want some of the buy signals to come from the Foreign Symbol VXN
and then run the test on the current ticker.
O = Foreign("!Vxn","O");
H = Foreign("!Vxn","H");
L = Foreign("!Vxn","L");
C = Foreign("!Vxn","C");
Cond1 = C > BBandTop(Close,20,2);
O = O; H = H; L = L; C = C;
Cond2 = Close > Open;
Buy = Cond1 AND Cond2;
Buy = ExRemSpan( Buy,7);
Sell = Ref(Buy,-7);
Thanks Ernie
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: 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
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:
http://docs.yahoo.com/info/terms/
|