[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Static Arrays???



PureBytes Links

Trading Reference Links



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.
KR
Michael.
// Store Highest Volume for the day.
// Set "n quotations = 1"
// Scan Part:
Buy =
0;
// required by
scan mode
/* Use ATC as a "Highest Value" Static array */
F = 
Foreign(
"~MyIndex",
"V");
addTO =
IIf
(V > F,(V - F),
0);

AddToComposite(addTO,
"~MyIndex",
"V",3
);      
        
// Explore
Part:
FH =
Foreign(
"~MyIndex",
"V");
AddColumn(FH,"FH-ForeignHighVolume",1);
AddColumn(V,"Stocks
Volume",1.2);
AddColumn(addTO,"To
Add",1.2);
Filter =
1;







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.