Tweet
input timeFrame = {default DAY, WEEK, MONTH};
def period_high = high(period = timeFrame)[1];
def period_low = low(period = timeFrame)[1];
plot pivot = (period_high + period_low) / 2 ;
plot R1 = pivot * 2 - period_low;
plot S1 = pivot * 2 - period_high;
R1.setdefaultcolor (color.RED);
R1.setpaintingStrategy(paintingstrategy.dashes);
S1.setdefaultcolor (color.RED);
S1.setpaintingStrategy(paintingstrategy.dashes);
pivot.setdefaultcolor (getcolor(10));
pivot.setpaintingStrategy(paintingstrategy.dashes);
input timeFrame = {default DAY, WEEK, MONTH};
def period_high = high(period = timeFrame)[1];
def period_low = low(period = timeFrame)[1];
plot pivot = (period_high + period_low) / 2 ;
plot R1 = pivot * 2 - period_low;
plot S1 = pivot * 2 - period_high;
R1.setdefaultcolor (color.RED);
R1.setpaintingStrategy(paintingstrategy.dashes);
S1.setdefaultcolor (color.RED);
S1.setpaintingStrategy(paintingstrategy.dashes);
pivot.setdefaultcolor (getcolor(10));
pivot.setpaintingStrategy(paintingstrategy.dashes);
No comments :
Post a Comment