PureBytes Links
Trading Reference Links
|
Not that familiar with JS but setting it in the
"Scheduled Task" should work...
Walt
--- In amibroker@xxxxxxxxxxxxxxx, "Christoper" <turkey@xxxx> wrote:
>
> > Also; I start AmiBrokr with this and have found it will only
> > work if the default directory is set to the amiBroker directory
> > first; This might also help when start an OLE broker object...
>
> Thanks Walt - I think the above is my last issue. So would I set
the
> default directory in the "Scheduled Task" or can it be set within
the
> js script with a Shell command?
>
> --- In amibroker@xxxxxxxxxxxxxxx, "hairy_mug" <WSCHWARZ@xxxx> wrote:
> >
> >
> > Chris,
> >
> > This is all possible using a utility called "Macro Expresss"...
> > I have used this for years and you can automate almost
> > anything across multiple programs...
> >
>
> >
> > Walt
> >
> > BTW: I have no affiliation with MEx; It's just a real handy
tool...
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Christoper" <turkey@xxxx>
wrote:
> > >
> > > Thanks for the tips... and since you're asking:
> > >
> > > Here's what I'm trying to do:
> > >
> > > - Start AB
> > > - Auto-update Quotes with Amiquote
> > > - Run Exploration
> > > - Export results
> > > - Email results
> > >
> > > Everything works. Except the autoupdate quotes part.
Basically
> > > whenever I run the exploration, and receive the results, the
data
> > > used is always the previous days information. For example,
today
> > is
> > > 11/4/04, but the exploration finds signals from 11/3/04.
> > >
> > > If I update manually (i.e. Open AB, Open Quote.exe, run
> update...)
> > > the script will have results with 11/4/04 signals.
> > >
> > > Any suggestions?
> > >
> > > Here's part of my code:
> > > ----------------------------
> > > ...
> > > /* *****************************************
> > > ***** Update Quotes *********************
> > > ***************************************** */
> > > Shell.Run("C:\\Progra~1
\\AmiBroker\\AmiQuote\\quote /autoupdate");
> > > WScript.Sleep("20000");
> > >
> > > oAB.RefreshAll();
> > > oAB.SaveDatabase();
> > >
> > > /* *****************************************
> > > ***** Run Daily Explorations ************
> > > ***************************************** */
> > > AFLFolder = "C:\\Program Files\\AmiBroker\\AFLDaily"; // MODIFY
> TO
> > > FIT YOUR SETUP
> > >
> > > var AA;
> > > var f, f1, fc, s;
> > > var filename;
> > >
> > > /* Create AmiBroker object and get Analysis object */
> > >
> > > AA = oAB.Analysis;
> > >
> > > /* backtest over symbols and all quotes*/
> > > AA.ClearFilters();
> > > AA.RangeMode = 2;
> > > AA.RangeN = 1;
> > > ...
> > > ---------------------------------
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> > > > I like to declare all variables at the top of each
> > > section/function. Have
> > > > meaningful variable/function names, etc. For instance in your
> > code
> > > you've
> > > > got o prepended on some objects and obj on some. I'd pick one
> and
> > > use that
> > > > consistently.
> > > >
> > > > Where you have the shell.run doesn't really matter - what
does
> is
> > > that you
> > > > do it before you declare the AB object. BTW - here's a
> shortcut
> > > for you on
> > > > paths: use a single "/" instead of "\\".
> > > >
> > > > What kinds of "odditites" have you been experiencing?
> > > >
> > > > d
> > > >
> > > >
> > > > _____
> > > >
> > > > From: Christoper [mailto:turkey@x...]
> > > > Sent: Thursday, November 04, 2004 12:24 PM
> > > > To: amibroker@xxxxxxxxxxxxxxx
> > > > Subject: [amibroker] Re: Is it possible to LoadFormula
without
> > the
> > > window of
> > > > the ' Automatic Analysis' open automatically?
> > > >
> > > >
> > > >
> > > > Well actually the following is what I did AFTER I read your
> > > > informative post. Before I was using...
> > > >
> > > > >> Shell.Run("C:\\Progra~1\\AmiBroker\\broker.exe");
> > > >
> > > > ... in the middle of my script. Not good on my part. I will
> do
> > > some
> > > > testing and hopefully that will solve some of my problems.
> > > >
> > > > Are there any other 'good practices' to keep in mind that you
> > know
> > > of
> > > > to keep in mind when coding completely automated scripts?
> > > >
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> > > > > Looks ok to me. That's the way I do it.
> > > > >
> > > > > The oddity must be coming from somewhere else.... 8-)
> > > > >
> > > > > d
> > > > >
> > > > >
> > > > > _____
> > > > >
> > > > > From: Christoper [mailto:turkey@x...]
> > > > > Sent: Thursday, November 04, 2004 12:11 PM
> > > > > To: amibroker@xxxxxxxxxxxxxxx
> > > > > Subject: [amibroker] Re: Is it possible to LoadFormula
> without
> > > the
> > > > window of
> > > > > the ' Automatic Analysis' open automatically?
> > > > >
> > > > >
> > > > >
> > > > > Dingo - you know I've just started to notice wierd things
> > > happening
> > > > > with my scripts. So is the following code the 'correct'
way
> to
> > > > START
> > > > > the script:
> > > > >
> > > > > ---------------
> > > > > var Shell = new ActiveXObject("WScript.Shell");
> > > > > Shell.Run("C:\\Progra~1\\AmiBroker\\broker.exe");
> > > > > WScript.Sleep("10000");
> > > > > var oAB = new ActiveXObject("Broker.Application");
> > > > > var oStocks = oAB.Stocks;
> > > > > var StockQty = oStocks.Count;
> > > > > var objFileSystem, objOutputFile;
> > > > > var stockArray;
> > > > > ...
> > > > > ---------------
> > > > >
> > > > > Please note, that I have this script running (ie via WinXP
> > > > Scheduled
> > > > > Tasks) without any applications running, including
Amibroker.
> > > > >
> > > > > Thanks,
> > > > > - chris
> > > > >
> > > > >
> > > > >
> > > > > --- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx>
wrote:
> > > > > > No it always opens and I don't know how to close it.
> > > > > >
> > > > > > WARNING: You need to actually run AB via the shell or
have
> it
> > > > > already
> > > > > > running before you create the ole object. I've found that
> if
> > > you
> > > > do
> > > > > it the
> > > > > > way you are doing it that AB does NOT get completely "set
> up"
> > > and
> > > > > you may
> > > > > > get unexpected results.
> > > > > >
> > > > > > If you don't like having AB and AA windows visibile then
> I'd
> > > > > suggest either
> > > > > > of 2 things:
> > > > > >
> > > > > > 1. run it before hand and minimize.
> > > > > >
> > > > > > 2. using the api get the handles of both windows and
> minimize
> > > via
> > > > > code.
> > > > > >
> > > > > > d
> > > > > >
> > > > > >
> > > > > > _____
> > > > > >
> > > > > > From: tintin92 [mailto:tintin922002@x...]
> > > > > > Sent: Thursday, November 04, 2004 4:40 AM
> > > > > > To: amibroker@xxxxxxxxxxxxxxx
> > > > > > Subject: [amibroker] Is it possible to LoadFormula
without
> > the
> > > > > window of the
> > > > > > ' Automatic Analysis' open automatically?
> > > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I try to backtests from Delphi 5, with:
> > > > > > oAB: = CreateOleObject(' Broker.Application ');
> > > > > > etc...
> > > > > > AmiBroker is not visible, and for my backtests it's
better.
> > > > > > But when I write
> > > > > > (oAA.LoadFormula(oFolderAS_AFL + ' TempoAFL.afl '))
> > > > > > ( Not sure about it, but I think is here. )
> > > > > > then the window ' Automatic Analysis' opens automatically.
> > > > > > It is not very bothering , but it would be better if it
> > > remained
> > > > > invisible
> > > > > > like the main windows of AB is.
> > > > > > Is it possible to LoadFormula without the window of the '
> > > > Automatic
> > > > > > Analysis' open automatically?
> > > > > >
> > > > > > Thanks.
> > > > > >
> > > > > > Tintin92
> > > > > >
> > > > > >
> > > > > >
> > > > > > Check AmiBroker web page at:
> > > > > > http://www.amibroker.com/
> > > > > >
> > > > > > Check group FAQ at:
> > > > > >
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > > > >
> > > > > >
> > > > > >
> > > > > > Yahoo! Groups Sponsor
> > > > > >
> > > > > > ADVERTISEMENT
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
<http://us.ard.yahoo.com/SIG=129uffqdk/M=315388.5543473.6613715.300117
> > > > > 6/D=gr
> > > > > >
> > > > >
> > > >
> > >
> >
>
oups/S=1705632198:HM/EXP=1099647618/A=2372354/R=0/SIG=12id813k2/*https
> > > > > ://www
> > > > > > .orchardbank.com/hcs/hcsapplication?
> > > > > pf=PLApply&media=EMYHNL40F21004SS> click
> > > > > > here
> > > > > >
> > > > > > <http://us.adserver.yahoo.com/l?
> > > > > M=315388.5543473.6613715.3001176/D=groups/S=
> > > > > > :HM/A=2372354/rand=599200083>
> > > > > >
> > > > > >
> > > > > > _____
> > > > > >
> > > > > > 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
> > > > > > <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?
> > > > subject=Unsubscribe>
> > > > > >
> > > > > >
> > > > > > * Your use of Yahoo! Groups is subject to the Yahoo!
> > Terms
> > > > of
> > > > > Service
> > > > > > <http://docs.yahoo.com/info/terms/> .
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > [Non-text portions of this message have been removed]
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Check AmiBroker web page at:
> > > > > http://www.amibroker.com/
> > > > >
> > > > > Check group FAQ at:
> > > > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > > >
> > > > >
> > > > >
> > > > > Yahoo! Groups Sponsor
> > > > >
> > > > >
> > > >
> > >
> >
>
<http://us.ard.yahoo.com/SIG=1299ud271/M=281955.5530326.6602771.300117
> > > > 6/D=gr
> > > > >
> > > >
> > >
> >
>
oups/S=1705632198:HM/EXP=1099674731/A=2343726/R=0/SIG=12i8fospp/*http:
> > > > //clk.
> > > > >
> > > >
> > >
> >
>
atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1099588331074108>
> > > > >
> > > >
> > >
> >
>
<http://us.ard.yahoo.com/SIG=1299ud271/M=281955.5530326.6602771.300117
> > > > 6/D=gr
> > > > >
> > > >
> > >
> >
>
oups/S=1705632198:HM/EXP=1099674731/A=2343726/R=1/SIG=12i8fospp/*http:
> > > > //clk.
> > > > >
> > > >
> > >
> >
>
atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1099588331074108>
> > > >
> > > > >
> > > > >
> > > > > Get unlimited calls to
> > > > >
> > > > > U.S./Canada
> > > > >
> > > > >
> > > > >
> > > > <http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/
> > > >
> > >
> >
>
<http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/&time=10
> > > >
> > > > &time=10
> > > > 995883
> > > > > 31074108>
> > > > >
> > > > > <http://us.adserver.yahoo.com/l?
> > > > M=281955.5530326.6602771.3001176/D=groups/S=
> > > > > :HM/A=2343726/rand=257685956>
> > > > >
> > > > >
> > > > > _____
> > > > >
> > > > > 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
> > > > > <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?
> > > subject=Unsubscribe>
> > > > >
> > > > >
> > > > > * Your use of Yahoo! Groups is subject to the Yahoo!
> Terms
> > > of
> > > > Service
> > > > > <http://docs.yahoo.com/info/terms/> .
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > [Non-text portions of this message have been removed]
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Check AmiBroker web page at:
> > > > http://www.amibroker.com/
> > > >
> > > > Check group FAQ at:
> > > > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > >
> > > >
> > > >
> > > > Yahoo! Groups Sponsor
> > > >
> > > > ADVERTISEMENT
> > > >
> > > >
> > >
> >
>
<http://us.ard.yahoo.com/SIG=1297ba6ad/M=315388.5529724.6602080.300117
> > > 6/D=gr
> > > >
> > >
> >
>
oups/S=1705632198:HM/EXP=1099675493/A=2372354/R=0/SIG=12id813k2/*https
> > > ://www
> > > > .orchardbank.com/hcs/hcsapplication?
> > > pf=PLApply&media=EMYHNL40F21004SS> click
> > > > here
> > > >
> > > > <http://us.adserver.yahoo.com/l?
> > > M=315388.5529724.6602080.3001176/D=groups/S=
> > > > :HM/A=2372354/rand=989701304>
> > > >
> > > >
> > > > _____
> > > >
> > > > 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
> > > > <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?
> > subject=Unsubscribe>
> > > >
> > > >
> > > > * Your use of Yahoo! Groups is subject to the Yahoo!
Terms of
> > > Service
> > > > <http://docs.yahoo.com/info/terms/> .
> > > >
> > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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/
|