PureBytes Links
Trading Reference Links
|
There is no reason for this code to store the Highest vol of the day.
F = Foreign( "~MyIndex", "V");//in this line the ~MyIndex ticker is
already known ?? From which procedure ??
addTO = IIf (V > F,(V - F), 0);
AddToComposite(addTO, "~MyIndex", "V",3 );//in this line you try to
construct the [already known ??] ~MyIndex ticker.
If you have some result from your scan is because amibroker "reads"
~MyIndex from yesterday´s construction. Try to delete ~MyIndex from
your ticker tree and then you will see the formula not going.
DT
--- In amibroker@xxxxxxxxxxxxxxx, "Michael.S.G." <OzFalcon@xxxx>
wrote:
> 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 ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->
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 http://docs.yahoo.com/info/terms/
|