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

RE: [amibroker] Re: Creating / Importing 'artificial' security



PureBytes Links

Trading Reference Links

salil,

Yes you can use jscript, vbscript or Visual Basic etc. This is a choice you have to make depending on how you are going to use your application.

Here is some Visual Basic code fragments and if you haven't already done so I suggest you take a look at the Automation Object Model in the AmiBroker Users Guide.

Dim oAB As Object
Dim strMyTicker as String
Dim strFormatFile as String

Set oAB = CreateObject("Broker.Application")

'Contains the full directory path and the file name
strMyTicker = "C:\MyData.txt"

'This is the path to the import format definition file used by the Import method.
'usually located in the following directory AmiBroker\Formats
strFormatFile = "default.format"

oAB.Import 0, strMyTicker, CStr(strFormatFile)
oAB.refreshall

Set oAB = Nothing


The above could be easily adapted to jscript.

Regards,
William Peters
www.amitools.com



-----Original Message-----
From: salil_gangal [mailto:salil_gangal@xxxxxxxxx]
Sent: Monday December 29, 2003 12:41 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Creating / Importing 'artificial' security


Friends,

Okay ... I can create any artificial (computed) ticker from anywhere 
(not necessarily from Automatic-Analysis only).  Next step is to do 
an *immediate* import into AmiBroker after creation.  Any inputs 
about how to do this ?

The method that comes to my mind is to call a .JS script to do 
the 'import' immediately after the ticker is created ... I've not 
tried it yet but will try it next ...

Regards,
- Salil V Gangal

--- In amibroker@xxxxxxxxxxxxxxx, "salil_gangal" <salil_gangal@xxxx> 
wrote:
> Freinds,
> 
> 'AddToComposite' offers functionality of creating and *immediately* 
> importing 'artificial' (or computed) security.  
> However 'AddToComposite' is limited to only the Automatic-Analysis 
> (AFAIK).
> 
> Before I go and code something that will allow creation and 
immediate 
> import of artificial (or computed) security, I'll like to inquire 
if 
> there's something like this that works outside of Automatic-
Analysis 
> available already ?  (If so, what is it ?)
> 
> Regards,
> - Salil V Gangal


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 


Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/amibroker/

To unsubscribe from this group, send an email to:
 amibroker-unsubscribe@xxxxxxxxxxxxxxx

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 

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

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/amibroker/

To unsubscribe from this group, send an email to:
 amibroker-unsubscribe@xxxxxxxxxxxxxxx

Your use of Yahoo! Groups is subject to:
 http://docs.yahoo.com/info/terms/