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

Re: [amibroker] Re: Import ASCII using Jscript



PureBytes Links

Trading Reference Links

Hello,

1. No, if you import the file using
$ALLOWNEG 1
command in the ASCII importer definition 
(more on this in the User's guide and newsletters)
http://www.amibroker.com/newsletter/02-2001.html

then Close does NOT need to be greater than zero.

2. Type parameter should be set to zero (as shown in the newsletter)

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "au99991" <auttley@xxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, August 25, 2003 7:38 PM
Subject: [amibroker] Re: Import ASCII using Jscript


> Tomasz,
> 
> Many thanks for this. To confirm, must Close always be greater than 
> zero even when importing using AB.Import?
> 
> And on that AB.Import method, could you confirm what the Type 
> parameter should contain?
> 
> Many thanks again
> 
> Andy.
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
> wrote:
> > Hello,
> > 
> > Close price must be greater than zero.
> > Negative prices can only be imported using ASCII
> > importer and AB.Import method of OLE interface.
> > 
> > Caveat: symbols with negative prices must not
> > be edited using QuoteEditor.
> > 
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message ----- 
> > From: "au99991" <auttley@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Monday, August 25, 2003 11:27 AM
> > Subject: [amibroker] Import ASCII using Jscript
> > 
> > 
> > > Does anyone know whether its possible to automate the Import 
> ASCII 
> > > process using JScript.
> > > 
> > > Alternatively, if I use Jscript to add quote data directly using 
> for 
> > > e.g.
> > > 
> > > stock = oAB.Stocks.Add( tickername ); 
> > > oQuote = stock.Quotations.Add(date.getVarDate());
> > > oQuote.Open = parseFloat(my_negative_number);
> > > oQuote.Close = 0;
> > > oQuote.Volume = parseFloat(my_none_integer);
> > > oQuote.OpenInt = 0;
> > > oQuote.High = 0;
> > > oQuote.Low = 0;
> > > 
> > > How can I set the $ALLOWNEG command so I can load negative 
> numbers 
> > > and also use High and Low for data rather than them being 
> > > automatically set from Open and Close.
> > > 
> > > many thanks
> > > 
> > > Andy.
> > > 
> > > 
> > > 
> > > 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 
> http://docs.yahoo.com/info/terms/ 
> > > 
> > > 
> > >
> 
> 
> 
> 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 ---------------------~-->
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/