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

[amibroker] Problem Importing into ParValue field.



PureBytes Links

Trading Reference Links

Im importing data into the Issues, ParValue (NominalValue) & BookValue Fields.
Issues & BookValue seem to work as expected . (Using JScript)
But when i import into Nominalvalue, The data appears to be Multiplied by x100.
Also , Some numbers are altered,  ie .9 ends up as 89, Not 90 as expected.
See Attached pics & JScript code below.
  Is this Supposed to Happen or is it a bug?

Kind Regards,
	Michael.S.G.


/* add a ticker - this is safe operation, in case that */
/* ticker already exists, AmiBroker returns existing one */
stock = AmiBroker.Stocks.Add( fields[ 0 ] );
stock.issue = (fields[1]/1000);
stock.bookvalue = (fields[2]*100); /* Multiplied By x100 */
stock.nominalvalue = (fields[3]);  /* Auto Multiplied By x100 By AB? */

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/ 


Attachment:
ProfileEg1.PNG

Attachment: Description: "Description: PNG image"