gaosng
New member
How do i ude this following code to scan the stocks satisfy within 3 years period?
I want stocks double or tripled within 3 months in last 3 year period.
This scan works in monthly timeframe, i don't know how to add the lookback period.
Please help!!
I want stocks double or tripled within 3 months in last 3 year period.
This scan works in monthly timeframe, i don't know how to add the lookback period.
Please help!!
Code:
def y = (close - Lowest(low,2)) / Lowest(low,2) > 2;
def z = (close - Lowest(low,3)) / Lowest(low,3) > 3;
plot Tripled= if y or z then yes else no ;
Last edited: