rlohmeyer
Active member
Hi,
I am not a coder but through cobbling together a basic indicator I have used at least 30 years and with the help of #Nube, #Korygill #BenTen and #JimmyMack I have what I need. Nothing fancy here. The code is below. Use if it is useful. As a swing trader since 1987, support and resistance lines has been my go to. I have included the picture of a chart with the indicator setup.
Regards,
Bob
I am not a coder but through cobbling together a basic indicator I have used at least 30 years and with the help of #Nube, #Korygill #BenTen and #JimmyMack I have what I need. Nothing fancy here. The code is below. Use if it is useful. As a swing trader since 1987, support and resistance lines has been my go to. I have included the picture of a chart with the indicator setup.
Regards,
Bob
Code:
#DailyCOHL_Lines
input aggregationPeriod = AggregationPeriod.DAY;
input showOnlyLastPeriod = yes;
plot DailyOpen = open(period = aggregationPeriod);
DailyOpen.SetDefaultColor(Color.YELLOW);
DailyOpen.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
plot ystdClose = close(period = aggregationPeriod)[1];
ystdClose.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
ystdClose.SetDefaultColor(Color.Dark_Orange);
ystdClose.SetLineWeight(1);
plot DailyHigh = high(period = aggregationPeriod);
DailyHigh.SetDefaultColor(Color.Green);
DailyHigh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
plot ystdHigh = high(period = aggregationPeriod)[1];
ystdHigh.SetDefaultColor(Color.Dark_Green);
ystdHigh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
plot DailyLow = low(period = aggregationPeriod);
DailyLow.SetDefaultColor(Color.Red);
DailyLow.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
plot ystdLow = low(period = aggregationPeriod)[1];
ystdLow.SetDefaultColor(Color.Dark_Red);
ystdLow.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);