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

Re: [amibroker] Re: Analysis.RangeFromDate - defines "From" date



PureBytes Links

Trading Reference Links

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 <RedEyes777@xxxxxxxxx> 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 amibroker@xxxxxxxxxxxxxxx, "marketmonk777" <RedEyes777@xxx> 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

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


__._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___