PureBytes Links
Trading Reference Links
|
The More I look at this, The more I think that the code SHOULD
work!!!!
At 09:15 AM 26/06/2003 -0400, you wrote:
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.Yes, Thats What I
am expecting.
Your
code asks it to add Vol to this figure if the volume of a given stock
exceeds that total. Almost, My Code asks to Add the
"Difference" in volume, If it's smaller then it adds
nothing. Basicaly a Highest Value Latch.
To
further complicate things ATC clears the field each time you run it
.Again, This is what I want. On the Start of Each
Scan - I want the field cleared - for each day the scan will itterate
though each ticker.
Minor Addition:
//
Store Highest Volume for the day.
// Set "n quotations = 1"
// Scan Part:
Buy =
0;
// required by
scan mode
// Create the composite before it's read into
"F".
AddToComposite(0, "~MyIndex","V",3);
/*
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
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.
|