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: Shinin' Times who wrote (9696)6/24/1999 10:19:00 PM
From: Bob Jagow  Read Replies (1) | Respond to of 11149
 
...blush
Couple of things.
Those were pretty old so
-can use 'if A and B and C then ... endif;' instead of 'if A then ... if B then ...if C then ... endif; endif; endif;' if you want -- it's not appreciably slower any more.

-you may want to use printhdr. Inserting the following after DaysRequired will handle the conditional print.
---
printhdr "symbol,date,close";
if bar != 0 then //measure performance
printhdrln " BestDay,BestDayCl,BestPct";
else
printhdrln "";
enid;
----

Note that MovAvg(bar, 30, vol) is the same as avgvol(bar,bar-29).

Bob