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: Bob Jagow who wrote (5611)7/26/1998 8:22:00 PM
From: Monty Lenard  Read Replies (2) | Respond to of 11149
 
Thanks Bob, now since you didn't recommend that book I take it you are volunteering to be the "book". :-)

Maybe you can tell me what is wrong with this scan that I copied from QP2 Help.

"In the example below, we want to scan for issues where the price has risen more than 20 percent in any of the last 10 days. The For...Next statement below causes each issue to be checked for each of the last 10 days.

Output="myfile";
integer i;
For i = 1 to -10 step -1
Do
If Upgap > .20*close(i-1) then
println symbol,",",close(i);
endif;
next i;

Monty



To: Bob Jagow who wrote (5611)7/26/1998 8:42:00 PM
From: Monty Lenard  Read Replies (1) | Respond to of 11149
 
Bob, just figured out what you sent and applied it to one scan I am using with success. How would it be used here in place of (0) and (-1)?

input="NASD100.lst";
output="NASD 100 Adv Issues.lst";
daystoload=100;

if Close(0)>Close(-1)

then
println symbol;
endif;

In other words, if I want to look for a trend by backtesting 30 days to see how many advancing issues there were for each day.

Right now in order to do this I would have to run a scan then change the (0) to (-1) and the (-1) to (-2) and run another scan.

Even better, is there a way to come up with 30 days values all with one scan or a list for the last 30 days on a daily basis.

Thanks
Monty

PS Sure you don't want to recommend the book? :-))