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 (10941)9/10/2005 2:35:29 PM
From: Nutty Buddy  Read Replies (1) of 11149
 
>>x% above a low of N days ago<<

The low N days ago or the low over the last N days?

If you mean the low of N days ago try this (which is the same as I posted you earlier, just now uses the low:
--------------------------------------------------------------

Exchange = NYSE , AMEX , NASDAQ;

Output="gainers.lst";

Float N,X;

N:=5; // Days Ago
X:=10; //Percentage Points To Gain

if close(0)/low(0-N)>=1+(X*.01) then
println symbol , "," , Description,",",((close(0)/low(0-N))-1)*100; // Prints Symbol, Name, and Percentage Return in five days
endif;
--------------------------------------------------------------

Buddy
nuttybuddy.net
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext