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

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



PureBytes Links

Trading Reference Links

Hmmm, I shouldn't be overflowing V.

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 my mistake..... As per reply to Thomas.

KR
Michael.


At 03:13 PM 26/06/2003 +0000, you wrote:
>herman is right - you are overflowing the V field in the
>AddtoComposite ticker. In Ami-Land, the V and OI are not numerically
>equivalent to the OHLC fields. The range on the V and OI fields is
><< that of the OHLC fields.
>Use the V and OI as you would an integer variable and OHLC as a
>float variable and that will keep you out of trouble.
>
>downhillspeedster
>
>--- In amibroker@xxxxxxxxxxxxxxx, "Herman van den Bergen"
><psytek@xxxx> wrote:
> > I haven't looked to closely at your code but you, generally, you
>cannot
> > simply add up the Volumes of many stocks; the number size will
>exceed the
> > programs number sizes.
> >
> > Try dividing the volume by 1000 or even 100000, before adding it
>in the ATc.
> >
> > Another way might be to store the Log values of the volumes and
>later
> > convert the to normal numbers.
> >
> > herman
> >   -----Original Message-----
> >   From: Michael.S.G. [mailto:OzFalcon@x...]
> >   Sent: Thursday, June 26, 2003 1:55 AM
> >   To: amibroker@xxxxxxxxxxxxxxx
> >   Subject: [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.
> >
> >   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@xxxx
> >   Send SUGGESTIONS to suggest@xxxx
> >   -----------------------------------------
> >   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.
>
>
>
>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/



------------------------ 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/