HighBredCloud
Well-known member
@XeoNoX To scan for a new 52 week low...Does anything else need to be updated in your script?
Code:
##Percent Away From High by XeoNoX via https://usethinkscript.com/
## Change Percent_value to desired percent
## Example 3.0 means 3% 1.5 means 1.5%
## NOTE: 252 is standard agregration for days in a regular trading year according to thinkscript
## If you want 6 Months change the "PERIOD" to 126 and for a month change to 30, Week change to 7.
## Be sure to set the Agregation to Day
##
def Percent_value = 50;
def number_of_days = 252;
def price = close;
def choice = High;
def hi = high;
def lo = low;
plot scan = price <= lowest(lo,number_of_days )* ((100 - percent_value) /100);
#End of Script