PureBytes Links
Trading Reference Links
|
I use Yahoo via US-Stocks AmiBroker database to do some stuff on R2000 stocks and also SP500 stocks. I use AutoIt to get the US-Stocks data. Here is what I have in au3 file. Maybe others have a better way.
; ----------------------------------------------------------------------------
; Step6_AmiBroker_US-Stocks_Update.au3
; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.1
; Author: Bert Steele
;
; Script Function:
; Template AutoIt script.
; Open AmiBroker, go to US-Stocks database, Open AmiQuoter, Get Tickers
; from AmiBroker, Start Download, save & exit.
; ----------------------------------------------------------------------------
; Run (open) AmiBroker
Run("C:\AmiBroker\broker.exe")
; Wait for AmiBroker to become active - it has "AmiBroker" in upper left window
WinWaitActive("AmiBroker")
; Sleep for 40 seconds to let be sure open
Sleep(40000)
; Change to US-Stocks database - File menu -> Open, U, Enter
Send("!f")
Sleep(3000)
Send("D")
Sleep(3000)
Send("U")
Sleep(3000)
Send("{ENTER}")
; Sleep for 20 seconds to let be sure open
Sleep(20000)
; Run (open) AmiQuote
Run("C:\AmiBroker\AmiQuote\Quote.exe")
; Sleep for 5 seconds to let be sure open
Sleep(20000)
; Get Tickers from AmiBroker - Tool menu -> Get Tickers from AmiBroker
Send("!T") ; ALT T
Sleep(3000)
Send("{DOWN}") ; Move down 3 and enter for "Get Tickers from AmiBroker"
Sleep(3000)
Send("{DOWN}")
Sleep(3000)
Send("{DOWN}")
Sleep(3000)
Send("{ENTER}")
Sleep(20000) ; Sleep 20 second to allow tickers to load
; Proceed with Download - File menu - > Start Download
Send("!F") ; ALT F
Sleep(3000)
Send("{DOWN}") ; Move down 3 and enter for "Start Download"
Sleep(3000)
Send("{DOWN}")
Sleep(3000)
Send("{DOWN}")
Sleep(3000)
Send("{ENTER}")
;Sleep(360000) ; Sleep 6 minutes or 360 second
Sleep(240000) ; Sleep 4 minutes or 240 second
; Close AmiQuote
Send("!f") ; ALT f
Sleep(3000)
Send("X") ; X for Exit
Sleep(3000)
Send("N") ; N for No
Sleep(5000) ; Sleep 5 seconds to give AmiBroker a chance to settle
; Save AmiBroker
Send("!f") ; ALT f
Sleep(3000)
Send("S") ; S for Save
Sleep(180000) ; Sleep 3 minutes or 180 second
; Close AmiBroker
Send("!f") ; ALT f
Sleep(3000)
Send("X") ; X for Exit
;Sleep(3000)
;Send("!f") ; ALT f
;Sleep(3000)
;Send("X") ; X for Exit
; Sleep for 10 seconds
Sleep(10000)
; The End
--- In amibroker@xxxxxxxxxxxxxxx, "flyboypa30" <snoopy.pa30@xxx> wrote:
>
>
> In addition, does anyone know / use AutoIt to control AmiQuote.
>
> With this thread, I am thiking it might be possible and would like to try. Any helpful pointers would be appreciated.
>
> Flyboy
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
amibroker-digest@xxxxxxxxxxxxxxx
amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|