PureBytes Links
Trading Reference Links
|
SetForeign<FONT
color=#000000>("!VXN"<FONT
face="Courier New">); Cond1 = <FONT
color=#ff0000>C > <FONT
color=#0000ff>BBandTop(<FONT
color=#ff0000>Close,<FONT
color=#ff00ff>20,<FONT
color=#ff00ff>2);
RestorePriceArrays<FONT
face="Courier New">(); Cond2 = <FONT
color=#ff0000>Close > <FONT
color=#ff0000>Open<FONT
color=#000000>; Buy<FONT
color=#000000> = Cond1 AND<FONT
face="Courier New"> Cond2; <FONT
color=#ff0000>Buy = <FONT
color=#0000ff>ExRemSpan( <FONT
color=#ff0000>Buy,<FONT
color=#ff00ff>7);
Sell =
Ref(<FONT
color=#ff0000>Buy,-<FONT
color=#ff00ff>7);
<FONT
face=Arial>In
the code above your Cond1 is determined by the !VXN but Cond2 is determined by
the current stock. See Help for more info on SetForeign() and
RestorePriceArrays(), they are powerful commands and have some options you might
like to know about.
<FONT
size=2><SPAN
class=950234008-14012004>
<FONT
size=2><SPAN
class=950234008-14012004>herman
<FONT face=Tahoma
size=2>-----Original Message-----From: ewn87544
[mailto:ewn87544@xxxxxxxxxxx]Sent: January 14, 2004 1:23
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Help
with Profit TestThe 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 VXNand 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
ErnieSend 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
Yahoo! Groups Links
To visit your group on the web, go to:<A
href="">http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:<A
href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
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 Sponsor
ADVERTISEMENT
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.
|