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

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Ken Adams who wrote (5408)7/15/1998 7:19:00 PM
From: Roy Yorgensen  Read Replies (1) of 11149
 
Ken, This is quick and dirty but I think it does what you want. You could add a For Next Loop to allow going back and looking at previous days.

Output "test.lst";
IssueType Common;
Integer N;
Float Pct;
Pct:=.05; //Enter the increase amount you desire as a decimal
N:=5; //Enter the Num of Days you want to 'look back'
If Close(0)=>Close(-N)*(1+Pct)
Then PrintLn Symbol:-8,"Pct increase in ",N," days is ",((Close(0)/Close(-N))-1)*100:3:1,"%";
EndIf

Sample Output
AAC Pct increase in 5 days is 8.2%
AACE Pct increase in 5 days is 7.9%
AAN Pct increase in 5 days is 8.1%
AAPL Pct increase in 5 days is 9.6%
AATT Pct increase in 5 days is 6.0%
ABAX Pct increase in 5 days is 7.4%
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext