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

[amibroker] Problem loading custom data into OHLCVI array



PureBytes Links

Trading Reference Links

I'm trying to load some custom data into the OHLCVI array from file 
using jscript.

The data is a variety of integers, decimals, negative numbers, etc. 
However, when loaded, Open and Close only stores the absolute value 
of the number (i.e. no negatives) and Vol/Interest only stores 
integers.

I'm confused because the AB Object Model says these arrays are floats 
so should store any type of number.

Also, I can't store anything in the High or Low fields as these take 
the high/low values of Open or Close.

Is there a way round this problem?  The only way I can think of is 
multiplying the decimals by 1000 say to make them integers and adding 
a constant to negatives so they're no longer negatives and reversing 
the process when using the data in AB but this is very messy!

Many thanks

Andy.


------------------------ 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/l.m7sD/LIdGAA/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/