PureBytes Links
Trading Reference Links
|
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/
|