PureBytes Links
Trading Reference Links
|
Jayson - Thanks for the prompt reply. That
works amazingly well and does what I want, now to put it to use. I
stored 9999 in a two member watchlist just to see and that works. Not
that I didn't believe you but I wanted to see if I could control the
ticker(issue) by using Setforeign while in an interation.
Best regards
JOE
// Set the
parameters
Listnum = Param<FONT
size=2>("Watch List",
0,<FONT
color=#ff00ff size=2>0,<FONT color=#ff00ff
size=2>63,1<FONT
size=2>);
// Get contents of watch list
str = GetCategorySymbols<FONT
size=2>(categoryWatchlist,Listnum);
// loop through tickers in the watchlist <FONT
size=2>
for( i = <FONT color=#ff00ff
size=2>0; (member=<FONT color=#0000ff
size=2>StrExtract(str,i))!=<FONT color=#ff00ff
size=2>""; i++ )
{
ticker = StrExtract<FONT
size=2>(str,i);
SetForeign(ticker);
OI =
9999; <FONT
size=2>
Filter = 1<FONT
size=2>;
AddColumn(Close,<FONT color=#ff00ff
size=2>"Price");
AddColumn(OI,<FONT color=#ff00ff
size=2>"Interest");
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Jayson
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, January 07, 2004 8:56
AM
Subject: RE: [amibroker] Use of OI (open
interest) Field to store Rel Strength
<FONT face=Arial color=#0000ff
size=2>Joe,
If I
understand you correctly all you need to do is Set OI to
RS...
<FONT face=Arial color=#0000ff
size=2>
<FONT face=Arial color=#0000ff
size=2>Oi=RSI(14); will replace OI values with the 14 day RSI in your
scan/exploration/indicator. For that matter you could set "X" to rsi(14). To
truly "store" the data you would, I believe, need to use addtocomposite which
would allow you to store an RS calculation of of all the stocks under study
and allow you to compare individual RS values against it for your ranking
score
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: Joseph Landry
[mailto:jelandry@xxxxxxxxxxxxx]Sent: Wednesday, January 07, 2004
9:03 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
Use of OI (open interest) Field to store Rel
StrengthConsider that I'm working with a coding
background from the era of bearskins and stone chiesels...1962 Is
is possible to store a ranking factor( relative strength or another
flavor) in the Open Interest field of each ticker in the watchlist under
consideration?? The way I look at it is...the AFL array
processing could be used to access this field and operate on it to develop
a Relativescore? I realize that I would have to use 'loop/flow
control' interations and the Osaka functions to develop and rank the
watchlist members and I've got a days experience with the Osaka functions,
but was looking for something a little more straight forward than packing
tables around for each bar.. I know I'm probably missing something
that's very obvious like when I see a piece of DT's code and
think..how does he do that?? Can someone let me know if that's
possible or what the workaround is? Thanks in advanceJoe
LandrySend 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@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.
|