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: Craig Monroe who wrote (3040)1/14/1998 4:20:00 PM
From: Craig DeHaan  Read Replies (1) | Respond to of 11149
 
I don't know how many would make it thru this added filter, but take the output from this loop(0,-15) scan and run them as input in a followup with the same code changing to loop(-16,-120). Is your concept that of looking for a second (or third or fourth, etc.) breakout surge?



To: Craig Monroe who wrote (3040)1/14/1998 6:33:00 PM
From: Craig DeHaan  Respond to of 11149
 
Second thoughts on this -

The followup loop(-16,-120) is probably not what you want. It would pull any that hit on say day -113 and then maybe day -82 and never again. Alternatively, you could still loop back with a series of scans with the batch function in QP R1 as:

BrkOut1.lst from loop(0,-15) as input for the first of a series of separate scans stepping back one day at a time -

BrkOut1.lst results input to BrkOut2.scn looping only (-6,-6)
Then BrkOut2.lst results input to BrkOut3.scn looping (-7,-7)
etc. etc.

By the time you got back to (-120,-120) whatever survived the batch series is the result of your original request. The batch execution can be automated, thank goodness, but you'll need 115 copies of the scan written with the different input= and loop parameters. I never tried to set up more than a dozen at once. Might exceed the program limits.



To: Craig Monroe who wrote (3040)1/14/1998 9:56:00 PM
From: Paul Beattie  Respond to of 11149
 
Craig,
What could I add to exclude the stocks selected by this code that have missed at least one of these conditions from day -16 thru -120.
It may not be quite as simple as you think.
Your scan finds all NYSE,Nasdaq stocks which, on at least one day in the last 15 days, all of your selection criteria were met.
If you output this scan to "TEMP.LST", and then create another scan which reads that as input, QP can do what you want and filter the first set of stocks. But, the second scan must select what you WANT, not what to exclude. The Allgroup will make those criteria lines required. So, any that have missed at least one of these conditions will be excluded.

On the bright side, it will be much easier with QP2 because you have loops and if statements.

Enjoy!
Paul

Input="TEMP.LST"
AllGroup
Close(-16)>max(-21,-61,hi)
AvgVol(-16,-20)>1.2*(AvgVol(-21,-30))
Close(-16)>MovAvg(-16,150,cl)

Close(-17)>max(-21,-62,hi)
AvgVol(-17,-21)>1.2*(AvgVol(-22,-31))
Close(-17)>MovAvg(-17,150,cl)

... and on and on and on and on and on
... for days -18 through -120
... I wonder if QP can even handle this many conditions!