TraderKevin
Member
Hey all,
Created this simple "indicator" that draws lines at the previous day's close and the daily ATR levels. These often act as support/resistance, as in general the market stays within the ATR. If the price gets above/below these levels then it is unlikely to continue moving very far in that direction unless there is very strong buying/selling pressure.
Created this simple "indicator" that draws lines at the previous day's close and the daily ATR levels. These often act as support/resistance, as in general the market stays within the ATR. If the price gets above/below these levels then it is unlikely to continue moving very far in that direction unless there is very strong buying/selling pressure.
Code:
input length = 14;
input averageType = AverageType.WILDERS;
def ATR = MovingAverage(averageType, TrueRange(high(period=”DAY”)[1], close(period=”DAY”)[1], low(period=”DAY”)[1]), length);
plot DailyClose = close(period=”DAY”)[1];
plot hatr = dailyclose + ATR;
plot latr = dailyclose - ATR;
Last edited by a moderator: