You can't set any of the settings with OLE inside an AFL. They must be set
before you run your formula.

You can set them from an external vbscript/javascript and then run your
formula.

d

On Tue, Sep 16, 2008 at 6:10 PM, marketmonk777 <[EMAIL PROTECTED]> wrote:

> To clarify I am trying to
>
> create ATCs but only from a specific date.  Here is part of the code:
>
> AB = CreateObject("Broker.Application");
> AA = AB.Analysis;
> Analysis.RangeFromDate(30080901);
> AddToComposite(Close > MA(Close,5), "~NDX005MA", "X" );
> AddToComposite(Close > MA(Close,10), "~NDX010MA", "X" );
> AddToComposite(Close > MA(Close,20), "~NDX020MA", "X" );
> AddToComposite(Close > MA(Close,50), "~NDX050MA", "X" );
> AddToComposite(Close > MA(Close,100), "~NDX100MA", "X" );
> AddToComposite(Close > MA(Close,200), "~NDX200MA", "X" );
>
> This is in some AFL code. I get an error on the Analysis line stating
> COM object variable not initialized.  Am I suppose to use a variable
> there instead?
>
> --------------------------------------------------
>
> --- In [email protected], "marketmonk777" <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Can someone provide an example on how I would use this property in a
> scan?
> >
> > I would like to hard code in a date in which to run a scan from
> > (locate signals from that date forward).
> >
> > And this can be used from within AFL right?
> >
> > Regards,
> >
> > MM
> >
>
>
>
> ------------------------------------
>
> 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