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

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


  • To: amibroker@xxxxxxxxxxxxxxx
  • Subject: [amibroker] Re: Is it possible to LoadFormula without the window of the ' Automatic Analysis' open automatically?
  • From: "Christoper" <turkey@xxxxxxxxxxxxxxx>
  • Date: Thu, 04 Nov 2004 17:24:21 -0000

PureBytes Links

Trading Reference Links


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





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