If you loop over data which does not exist, the scan will abort.
As an example, here is what I use to extract the last 50 days of data or
whatever exist.
Output = "c:\Quotes Plus Data\Export\50OCV.txt";
DaysToLoad = 50;
DaysRequired = 1;
Integer j, Depth;
Depth := (DaysLoaded-1)*-1;
for j= Depth to 0
do
println symbol:-7 , date(j):-10, open(j):10:3, close(j):10:3, vol(j):14:0;
next j;
donpickdonpick wrote:
> Running Quotes Plus 2.3 on Windows 2000 server fully patched.
>
> I am exporting 10, 20, 50, and 100 day exponential moving averages
> using the scan engine.
>
> Some stocks don't have enough data for a 100 day Ema.
> I know about DaysRequired.
> If there are not 100 days of data the scan aborts.
>
> 1.) How can I write a scan so I can export all stocks and get the
> Ema's listed above and not have the scan abort? Is there some sort of
> error checking?
>
> 2.) Or do I have to write a separate scan?
>
> 3.) If I have to write a separate scan, what command will search for
> stocks having at least 99 days of data but less than 100 days of data?
> I'd want to eliminate all stocks having 101 or more days of data.
>
>
>
>
>
> SPONSORED LINKS
> Investment management software
> <http://groups.yahoo.com/gads?t=ms&k=Investment+management+software&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Real+estate+investment+analysis+software&w5=Investment+software&w6=Investment+analysis+software&c=6&s=212&.sig=bgH6MLfPiHNaa_UHXsl1cQ>
> Real estate investment software
> <http://groups.yahoo.com/gads?t=ms&k=Real+estate+investment+software&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Real+estate+investment+analysis+software&w5=Investment+software&w6=Investment+analysis+software&c=6&s=212&.sig=CleQ2OLrjJnMaemxQN8dQA>
> Investment property software
> <http://groups.yahoo.com/gads?t=ms&k=Investment+property+software&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Real+estate+investment+analysis+software&w5=Investment+software&w6=Investment+analysis+software&c=6&s=212&.sig=tiornvQpCMb4OvES49zpyg>
>
> Real estate investment analysis software
> <http://groups.yahoo.com/gads?t=ms&k=Real+estate+investment+analysis+software&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Real+estate+investment+analysis+software&w5=Investment+software&w6=Investment+analysis+software&c=6&s=212&.sig=9sd5rfDzn1sOXmDsDB0MUg>
> Investment software
> <http://groups.yahoo.com/gads?t=ms&k=Investment+software&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Real+estate+investment+analysis+software&w5=Investment+software&w6=Investment+analysis+software&c=6&s=212&.sig=gMdovVx-IHhVJs_3d6QMwA>
> Investment analysis software
> <http://groups.yahoo.com/gads?t=ms&k=Investment+analysis+software&w1=Investment+management+software&w2=Real+estate+investment+software&w3=Investment+property+software&w4=Real+estate+investment+analysis+software&w5=Investment+software&w6=Investment+analysis+software&c=6&s=212&.sig=cH5fFeKhH9ipj7uhiHW11A>
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
> * Visit your group "quotes-plus
> <http://groups.yahoo.com/group/quotes-plus>" on the web.
>
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.394 / Virus Database: 268.8.1/354 - Release Date: 01/06/2006
>
>
[Non-text portions of this message have been removed]
SPONSORED LINKS
| Investment management software | Real estate investment software | Investment property software |
| Real estate investment analysis software | Investment software | Investment analysis software |
YAHOO! GROUPS LINKS
- Visit your group "quotes-plus" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
