SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus -- Ignore unavailable to you. Want to Upgrade?


To: bdog who wrote (5985)8/12/1998 7:23:00 AM
From: shasta23  Respond to of 11149
 
Bdog!

Not that i'm that familiar with QP like i already told you but i think that the MAX command is only possible with a certain set of variables defined in the help files. Your mday variable is not one of the preset ones and that's why you might get the error message. Your scan would i think work with Metastock which allows the custom parameters and search for the HHV over a defined period.

Stefan



To: bdog who wrote (5985)8/12/1998 7:44:00 AM
From: Alain Joaris  Respond to of 11149
 
Bdog,

Replace your statement by this one :

mday1:=(daysloaded-1)*-1;

This works.

Alain Joaris



To: bdog who wrote (5985)8/12/1998 10:11:00 AM
From: Bob Jagow  Read Replies (1) | Respond to of 11149
 
Update, bdog.
That bug in the pre-run parser [discussed here in July?] was fixed in the last web version.

[Your scan eventually died with a boundary exceeded violation because max(-1,mday1,cl) needs mday1 +1 days.]

Today's answer session has been oversubscribed ;)

Bob



To: bdog who wrote (5985)8/12/1998 10:44:00 PM
From: shasta23  Read Replies (1) | Respond to of 11149
 
HI BDOG!

Just a simple question! Your original alltimehigh scan had the following code

daystoload=2200;
integer mday1;

mday1:=(daysloaded)*-1;

if close(0)>max(-1,mday1,cl) then // this is where the error occurs
println symbol:-8;(i deleted the input/output lines!!)

WHY can't you use Close(0)>max(-1,-2199,cl)? Isn't that the usual way of working with the max-command? I tried to run it this way but my the scan program locked up. It only ran when i reduced the days to -1500 which was just a number randomly picked since the lock up occured with -2100 and -1800. Don't know what is going on there! The stocks picked are correct with -1500. Any ideas or explanation why you use mday as parameter?

Stefan

P.S.Sorry about my answer about the item tokens. It was very, very early and i was still sleepy. You used of course an item token and i mixed up mday with that.