PureBytes Links
Trading Reference Links
|
<SPAN
class=706130713-26062003>Michael,
ATC
sums the values you request as it rolls through your database. If for instance
you request that it store Vol for a 5 stock watchlist then in effect it adds the
volume of the 5 stocks and stores that value. Your code asks it to add Vol to
this figure if the volume of a given stock exceeds that total. To further
complicate things ATC clears the field each time you run it . I think you need
to rethink what you are trying to accomplish. There is a tutorial for ATC that
may make for some interesting reading as well :)
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: Michael.S.G.
[mailto:OzFalcon@xxxxxxxx]Sent: Thursday, June 26, 2003 1:55
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Static
Arrays???I
can't figure out why I get (apparently) random results when running the
following code.It should be Storing the Highest Volume of the day
(regardless of which ticker produced it).After running a scan, An
explore should show the days highest volume, the assosiated stocks current
volume and what the difference is between the
two.KRMichael.// Store Highest Volume for the day.// Set
"n quotations = 1"// Scan Part:<FONT
face="Courier New, Courier">Buy = <FONT color=#ff00ff
face="Courier New, Courier">0;
// required by scan
mode/* Use ATC as a "Highest Value" Static array */<FONT
face="Courier New, Courier">F = <FONT color=#0000ff
face="Courier New, Courier">Foreign(
"~MyIndex"<FONT
face="Courier New, Courier">, <FONT color=#ff00ff
face="Courier New, Courier">"V"<FONT
face="Courier New, Courier">);addTO = <FONT color=#0000ff
face="Courier New, Courier">IIf
(V > F,(V - F), <FONT color=#ff00ff
face="Courier New, Courier">0);
<FONT color=#0000ff
face="Courier New, Courier">AddToComposite<FONT
face="Courier New, Courier">(addTO, <FONT color=#ff00ff
face="Courier New, Courier">"~MyIndex",
"V"<FONT
face="Courier New, Courier">,<FONT color=#ff00ff
face="Courier New, Courier">3
); <FONT
color=#008000 face="Courier New, Courier">// Explore Part:<FONT
face="Courier New, Courier">FH = <FONT color=#0000ff
face="Courier New, Courier">Foreign(
"~MyIndex"<FONT
face="Courier New, Courier">, <FONT color=#ff00ff
face="Courier New, Courier">"V"<FONT
face="Courier New, Courier">);<FONT color=#0000ff
face="Courier New, Courier">AddColumn<FONT
face="Courier New, Courier">(FH,<FONT color=#ff00ff
face="Courier New, Courier">"FH-ForeignHighVolume"<FONT
face="Courier New, Courier">,<FONT color=#ff00ff
face="Courier New, Courier">1<FONT
face="Courier New, Courier">);<FONT color=#0000ff
face="Courier New, Courier">AddColumn<FONT
face="Courier New, Courier">(V,<FONT color=#ff00ff
face="Courier New, Courier">"Stocks Volume"<FONT
face="Courier New, Courier">,<FONT color=#ff00ff
face="Courier New, Courier">1.2<FONT
face="Courier New, Courier">);<FONT color=#0000ff
face="Courier New, Courier">AddColumn<FONT
face="Courier New, Courier">(addTO,<FONT color=#ff00ff
face="Courier New, Courier">"To Add"<FONT
face="Courier New, Courier">,<FONT color=#ff00ff
face="Courier New, Courier">1.2<FONT
face="Courier New, Courier">);Filter = <FONT color=#ff00ff
face="Courier New, Courier">1<FONT
face="Courier New, Courier">;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
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT
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
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|