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
>