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

RE: Quotes Plus Data Integrity scan.....



PureBytes Links

Trading Reference Links



> -----Original Message-----
> From: UG [mailto:ug@xxxxxxxxxxxx]
> Sent: Friday, November 06, 1998 9:50 AM
> To: metastock@xxxxxxxxxxxxx; Sean W. Smith
> Subject: Re: Quotes Plus Data Integrity scan.....
>
>
>
> I've seen you use this technique in other posts, and wondered why.
>
> Can you not use a -1 step in a QP2 for loop?  (I'd try this myself, but
> I'm at the office.)
>

Yes you can use step -1.   It depends on the scan but more often than not I
want to scan forward in time to today so if I get a buy signal on an
indicator I get the first occurance in the period being tested rather than
the last.  In this case, its just a personal choice.

> I can understand if your scan needed to go 'forward' for some reason,
> but it doesn't appear that this one does.
>
true

> Or is it just habit, perhaps?

see above

>
>
> > numdays:=((DaysLoaded-1)*-1);
>
> ...
>
> > for i=numdays to 0 step 1 do

Note: this snippet is useful either way you count because If you index out
of range it doesn't work properly.  Using Daysloaded to dynically keep track
of the # of days available based on what was asked for using the Daystoload
command.  I use this in virtually all my scans and then can adjust the
period with confidence that I will get stocks that I want and my scans won't
crash.


Sean


>