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: Lawrence D Rorrison Jr. who wrote (5312)7/10/1998 10:31:00 AM
From: Nazbuster  Read Replies (1) | Respond to of 11149
 
Lawrence,

Unfortunately, as far as I know, QP2 does not permit 'static' or 'global' variables which retain their contents from symbol to symbol. In effect, your program is executed in its entirety for each symbol in the list and there is no way to communicate to the second execution that the first symbol already got it's header printed. To get what you want, you have to output the data then use something like CRYSTAL REPORTS to format a nice report from the data. (I think this is what Gary does for his reports.)

Gary... PLEASE! Can we have Arrays (Integer prices(20),ranges(20)...) and STATIC variables?



To: Lawrence D Rorrison Jr. who wrote (5312)7/10/1998 2:44:00 PM
From: TechTrader42  Read Replies (1) | Respond to of 11149
 
Daniel answered Question 1, and there's only one way I could see getting around it. It's time-consuming, impractical and, well, rather lame, but you could always check to see what close(0) and close(-1) were for the first symbol in the list, and then put this in instead of "header":

if close(0)= x and close(-1) = y then
println "Symb ,Close ,YClose ,Change ,Vol";

That's a silly solution, but I'm a silly person.

The only other thing you could do is work with the present list of reports (by going to Report and Define), but the list is limited, as you've found. It would be nice to be able to add new reports with our own coding.

As for Question 2, I've never tried it. Creating some sort of index from a list of stocks would mean combining them with one formula. That would require a program like Excel, I think. As for charting the new index, again you'd have to use Excel. Metastock allows composites with only primary and secondary securities.

So I'm rather useless on both questions, it seems. I'm not the one to ask when it comes to getting QP2 to do new tricks. A few on this board seem to have succeeded in getting it to roll over and play dead, but it hasn't even done that for me.

Brooke



To: Lawrence D Rorrison Jr. who wrote (5312)7/10/1998 4:05:00 PM
From: Bob Jagow  Read Replies (1) | Respond to of 11149
 
Re the header, Rory, this way works for me.

When you write the scan, copy your println,
Println symbol:-8,",", close(0):-8:3,",", close(-1):-8:3,",",
close(0)-close(-1):-8:3,",",vol(0):-10;
and extract/edit to give
// symbol, close, Yclose, change, vol (and put a note to yourself to)
//Prepend previous line to headscan.lst (NotePad will do fine)
QPlus can live with that (gives only 'symbol not found'), and the resulting list is ready to import into spreadsheets, etc.

Bob