Monthly Performace


Category:
0
0

What would the line of code be if I wanted the stock to scan for the stock is up at least 10% on the month? Thanks!

Marked as spam
Posted by (Questions: 34, Answers: 56)
Asked on February 17, 2017 7:35 pm
148 views
0
Private answer

That’s easy. I can steal most of this from a previous post, located here: https://www.hahn-tech.com/ans/ema-price-scan/

#roughly 21 trading days in a month
# tweaked to exclude the current bar's high
def highestMonthlyHigh = Highest(high[1], 21);
def percentChangeFromMonthlyHigh = 100 * (high / highestMonthlyHigh - 1);
plot scan = percentChangeFromMonthlyHigh >= 10.0;

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on February 17, 2017 8:15 pm
0

There was an error in the first post. The code above has been edited to correct the error.

( at February 18, 2017 9:12 am)