|
Naperville, IL
Posts: 4 since Jan 2021
Thanks Given: 1
Thanks Received: 1
|
Hi Everyone,
I recently came across a code which plots strong low points of a stock, in different time frames. I'm trying to make a scanner but not having any luck. Can anyone please help? Ideally, I'd like to find stocks that are 1-2% away from the low on the "Monthly" aggregation period. Please see code below:
#DailyCOHL_Lines
input aggregationPeriod = AggregationPeriod.MONTH;
input showOnlyLastPeriod = yes;
plot DailyLow = low(period = aggregationPeriod);
DailyLow.SetDefaultColor(Color.RED);
DailyLow.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
plot ystdLow = low(period = aggregationPeriod)[1];
ystdLow.SetDefaultColor(Color.RED);
ystdLow.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Thank you so much!
|