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

Re: [amibroker] Re: Static Arrays???



PureBytes Links

Trading Reference Links

Hi Tomasz,
At 07:30 PM 26/06/2003 +0200, you wrote:
>Hello,
>Volume and OI fields are 32 bit integer with range from -2'147'483'648 to 
>2'147'483'647
>OHLC are 32 bit floats with range of +/-10^37 (1 with 37 zeros)
>Therefore you can easily overflow volume and OI fields.

I shouldn't be overflowing V. V should never be getting higher than the 
highest volume for that ticker*

The Code I wrote should be only writing the highest value (by adding the 
DIFFERENCE to the composite only). It doesn't add the volume outright.

However, I Believe I have found one mistake..... Please Confirm Tomasz,
I was assuming the "Scan" iterated in this fashion:
<Date> - <Ticker>
ie The 1st date would be picked up then the "AFL Code" would iterate 
through all the tickers, Then move on to the next date.

I Realise now, That the "Scan" is iterated the other way round.....
<Ticker> - <Date>

This would explain why I was getting values that didn't seem to be relevent.

It doesn't explain why the Composite "Cycles" or why my code "Overflows V" 
when it shouldn't.


KR
Michael.

>Best regards,
>Tomasz Janeczko
>amibroker.com
>----- Original Message -----
>From: "Michael.S.G." <OzFalcon@xxxxxxxx>
>To: <amibroker@xxxxxxxxxxxxxxx>
>Sent: Thursday, June 26, 2003 4:37 PM
>Subject: Re: [amibroker] Re: Static Arrays???
>
>
>Too Hard Basket I think,
>
> >If you have some result from your scan is because amibroker "reads"
> >~MyIndex from yesterday´s construction.
>Isn't the ,3 Flag for ATC supposed to clear the field at the start of each
>scan?
>Not sure I follow what you mean by "Yesterdays" construction? Pls Clarify.
>
> >  Try to delete  ~MyIndex from
> >your ticker tree and then you will see the formula not going.
>Correct. (when just running the Explore).
>
>Note * scan now Cycles stored volume as either  0 or  aprox 760732821 -
>While the Actual volume for the highest ticker is only 36660618 for the day.
>
>Im not sure why it's cycling - It should be reset each run of the
>scan..........................
>Even if I Delete the "~MyIndex" after each scan, The Results of the NEXT
>scan are Cycled!!!!!!
>
>& I can't seem to reproduce the "Random" results I was getting before.
>
>As I said - Too Hard Basket.
>
>KR
>   Michael.
>
>
> >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/