PureBytes Links
Trading Reference Links
|
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 amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxx> 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: amibroker@xxxxxxxxxxxxxxx
> > [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of spa969
> > Sent: Sunday, November 04, 2007 11:15 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > 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 amibroker@xxxxxxxxxxxxxxx, "murthysuresh" <money@> wrote:
> > >
> > > look at the ole automation api reference. there are some
examples.
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "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
> >
> >
> >
> >
>
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
<*> 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:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto: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/
|