bigmit2011
New member
Hi, So I am looking for top gainers in 2015, but my script seems to be faulty,
as the scan list is returning stock that didn't gain over the percentage I am scaning for.
This below script seems to return over 300 stocks, but a lot of them don't seem to have gained 300%
as which is what my scan should filtering for.
I am using the Aggregation period as quarter.
I am not catching what I am possibly doing wrong.
Thank you.
as the scan list is returning stock that didn't gain over the percentage I am scaning for.
This below script seems to return over 300 stocks, but a lot of them don't seem to have gained 300%
as which is what my scan should filtering for.
I am using the Aggregation period as quarter.
I am not catching what I am possibly doing wrong.
Thank you.
Code:
def start = 20;
def end = 24;
def p0 = close()[start];
def p1 = close()[end];
def percent_change = (p1-p0) / p0;
plot scan = percent_change > 3.0;