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

Re: [amibroker] Scan Watchlist of Composites???



PureBytes Links

Trading Reference Links

change the flags in the addtocomposite statement

flag 2 restricts from using the group 253 for crteating the composite
so change fro default to 5

On 17/08/06, Ken Close <ken45140@xxxxxxxxx> wrote:
>
>  Such a basic question, but I need to ask.
>
> Surely it is possible to Scan and create composites from a watchlist of
> composites. Yes?
>
> I have been 45 minutes trying all sorts of variations of setting a Filter
> to a Watchlist of industry composites.  Inspecting each in the Quote Editor
> shows values in all the relevant fields.  I can plot graphs from the data in
> each composite.
>
> So I then create an ATC to read these composites and calculate a
> Percentage of the Watchlist meeting some condition.
>
> I can't get the composite of the composites created.
>
> When I run the ATC against a Watchlist of stock symbols, it creates the
> composite.
>
> Suggestions please.
>
> Thanks,
>
> Ken
>
> Here is some simple test code: works on stock symbols, does not work with
> WL of composites.
>
> *
>
> Filter
> =1;
>
> Buy
> =1;
>
> Price =
> C/;
>
> E21 =
> EMA(Price,21);
>
> PC01 =
> IIf(Price > E21,1,0);//<<<<<< C Field
>
> AddToComposite
> (PC01, "~SCORE3", "V");*
> 
>



-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm