Running addtocomposite from a scan will always include all bars in the history.
What you can do is limit the arrays to only what you want
eg

dn = datenum()
AddToComposite(iif(dn>=1040101,O,null), "~Russell3000", "O" );

then run the scan for n=1 last quotation only

-- 
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com


2008/6/17 patsgreatdeals <[EMAIL PROTECTED]>:
> I am doing some work to create a composite based on stocks in the
> Russell 3000. In the SCAN I select a date range from 2004 to current.
>
> Everytime I run it, the scan goes back to 2000. I do not want the
> composite to go back that far. Is there a bug that is cause this to go
> back so far even though I set the RANGE on the scan for a specfic
> FROM/TO?
>
> AddToComposite(O, "~Russell3000", "O" );
> AddToComposite(H, "~Russell3000", "H" );
> AddToComposite(L, "~Russell3000", "L");
> AddToComposite(C, "~Russell3000", "C" );
> AddToComposite(V, "~Russell3000", "V" );
>
> /* add one to open intest field (we use this field as a counter) */
> AddToComposite( 1, "~Russell3000", "I" );
>
>
> ------------------------------------

Reply via email to