here is a vb.net sample

   oAb = CreateObject("Broker.Application")

            oActiveDoc = oAb.ActiveDocument
            'oActiveDoc.name = (txtSymbol.Text)
            MsgBox(oActiveDoc.name)

            oAA = oAb.Analysis
            oAA.applyTo = 1 'get the current symbol
            oAA.RangeN = 1  'get last day
            oAA.LoadFormula("C:\\Program 
Files\\AmiBroker\\Formulas\\Scans\\nineemascan.afl")

            oAA.explore()
            oAA.Export(sOutputFile)
            oRead = File.OpenText(sOutputFile)
            '   oActiveDoc.close()
            While oRead.EndOfStream <> True
                eachLine = oRead.ReadLine()
                eachLine = oRead.ReadLine() ' I am interestd in the 
second line only.

            End While

            oRead.Close()
            File.Delete(sOutputFile)

            txt9Ema.Text = eachLine.ToString().Split(",")(2)
            txt20DayVol.Text = eachLine.ToString().Split(",")(3)



--- In [email protected], "dingo" <[EMAIL PROTECTED]> wrote:
>
> Look again at the OLE docs - you can export the results of the 
exploration
> to a file and from there you can read it in your ole script and do 
anything
> you want with it.
> 
> d 
> 
> > -----Original Message-----
> > From: [email protected] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of spa969
> > Sent: Sunday, November 04, 2007 11:15 AM
> > To: [email protected]
> > Subject: [amibroker] Re: programmatically explore and extract 
signals
> > 
> > Thanks but I did that first but there is nothing relevent there...
> > 
> > Let me rephrase..
> > 
> > I want to run an "explore" as part of automatical analyis, this 
is 
> > straightfoward with OLE. But can I programmatically cycle through 
> > resultant list of sysmbols..that is the results of the explore? I 
> > don't see relevent objects in OLE.. am I missing something..or 
should 
> > I be using the SDK?
> > 
> > 
> > 
> > I want to programmatically cycle through 
> > --- In [email protected], "murthysuresh" <money@> wrote:
> > >
> > > look at the ole automation api reference. there are some 
examples.
> > > 
> > > --- In [email protected], "spa969" <phil@> wrote:
> > > >
> > > > Hi,
> > > > 
> > > > I want to programmaticaly explore symbols using a given 
script 
> > and 
> > > > build text file from resultant list of signals.. can I use 
OLE 
> > for 
> > > > this or do I need SDK?. Perferrably I don't want to see 
AMibroker 
> > > > interface..
> > > > 
> > > > Any advice would be appreciated
> > > >
> > >
> > 
> > 
> > 
> > 
> > Please note that this group is for discussion between users only.
> > 
> > To get support from AmiBroker please send an e-mail directly to 
> > SUPPORT {at} amibroker.com
> > 
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> > 
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >  
> > Yahoo! Groups Links
> > 
> > 
> > 
> >
>


Reply via email to