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

RE: [amibroker] Re: Is it possible to LoadFormula without the window of the ' Automatic Analysis' open automatically?


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: RE: [amibroker] Re: Is it possible to LoadFormula without the window of the ' Automatic Analysis' open automatically?
  • From: "dingo" <dingo@xxxxxxxxxxx>
  • Date: Thu, 4 Nov 2004 13:18:03 -0500

PureBytes Links

Trading Reference Links

I don't think you want to wait on tj.
 
You didn't answer my ?'s at the bottom - I've got some routines to download
/ parse web pages.
 
d


  _____  

From: Christoper [mailto:turkey@xxxxxxxxxxxxxxx] 
Sent: Thursday, November 04, 2004 1:08 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Is it possible to LoadFormula without the window of
the ' Automatic Analysis' open automatically?



Ah... ok.  Well its good to know that TJ's working on something.  
I'll take a look around in the archives.

Thanks very much
- chris

--- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> Aq is the red-headed step child of AB automation.  TJ has it on his 
wish
> list to add a number of command line args so that we can set all of 
the
> various options. As you've discovered AQ sets itself up as it was 
last run.
>  
> to get around this you have a couple of nasty options:
>  
> 1. write a program than finds the various window handles in AQ and 
use
> windows messages to set it up as you like.
>  
> 2. Change the registry settings that AQ uses to "remember" its last
> settings.  (DANGER WILL ROBINSON!!")
> there is a duude that posted some info on this last option:  Look 
in the
> archives on Aug 8 2004 for the msg with the topic of "Downloading 
from
> multiple sources with Amiquote" to get the particulars.
>  
> That's gonna be a tuffie.
>  
> Where are you downloading your data from via AQ?  Is it EOD?  If 
yahoo or
> somewhere where its avail via a web page then you can do some majik
> downloading / parsing / importing and not use AQ.
>  
> d
>  
> 
> 
> 
>   _____  
> 
> From: Christoper [mailto:turkey@x...] 
> Sent: Thursday, November 04, 2004 12:51 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Is it possible to LoadFormula without the 
window of
> the ' Automatic Analysis' open automatically?
> 
> 
> 
> 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/
> 
<http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/
<http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/&time=10>
&time=10
>
> &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]
> 
> 
> 
> 
> 
> 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=129q5tndg/M=315388.5543473.6613715.300117
6/D=gr
> 
oups/S=1705632198:HM/EXP=1099677068/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=783978133>       
> 
> 
>   _____  
> 
> 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=129mq4r77/M=281955.5530326.6602771.3001176/D=gr
oups/S=1705632198:HM/EXP=1099678145/A=2343726/R=0/SIG=12ie2amtc/*http://clk.
atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1099591745533320>
<http://us.ard.yahoo.com/SIG=129mq4r77/M=281955.5530326.6602771.3001176/D=gr
oups/S=1705632198:HM/EXP=1099678145/A=2343726/R=1/SIG=12ie2amtc/*http://clk.
atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1099591745533320> 


Get unlimited calls to

U.S./Canada

 
<http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/&time=10995917
45533320> 
 
<http://us.adserver.yahoo.com/l?M=281955.5530326.6602771.3001176/D=groups/S=
:HM/A=2343726/rand=607355202> 	


  _____  

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 --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/