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

RE: [amibroker] Importing Indicators from File



PureBytes Links

Trading Reference Links

You could try using a dummy set of tickers with the same code but with an
additional letter in the name This would require you to just alter the
ticker symbol in the csv file, which is not difficult in excel.
Eg "TAP" becomes "~TAP" These would become the place to import your
indicator numbers in place of the normal OHLCVI
Then to use this with the base ticker use the Foreign function to display
the indicator values
TickName = "~" + Name();
ForO = Foreign(TickName,"O",1);
Then just plot the value of ForO

Alternatively can you create the indicators in AB and save the trouble. Much
easier this way


Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia


-----Original Message-----
From: au99991 [mailto:auttley@xxxxxxx] 
Sent: Friday, 8 August 2003 7:25 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Importing Indicators from File


I have a number of csv files that are named <ticker>.csv and they 
have a number of rows of data in the following format..

date, ind1, ind2, ind3

The dates for the rows may of may not correspond to the OHLCV array 
for that ticker - i.e. some days will not have any data

Can anyone please explain (or better, show me an example) how I can 
use this information to create indicators in AB - i.e. set up an 
indicator that reads from the appropriate ticker file (I presume in 
Java/VB script?) and displays the indicator mapping the dates 
correctly.  Where the data is missing for a day, the previous days 
data should be used.

Better still I'd like to use this indicator in several other internal 
indicators - e.g. dividing by the ticker close price.  Would this be 
better implemented by creating a activeX component and referring to 
this rather than copying the data-import code each time I make a new 
indicator?  If so, would you happen to have some (VB?) source code 
that might give me a starter?

Alternatively, are there some internal variable arrays that I could 
load this data to and refer to them in plotting the indicator and 
buidling my secondary indicators?

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


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