# ATR Grid (ATR-Based Support & Resistance)
# Assembled by BenTen and @diazlaz at useThinkScript.com
# Converted from https://www.tradingview.com/script/EDN4oFyQ-ATR-0-5-0-7-ranges/
input lvl1 = 0.5;
input lvl2 = 0.7;
input daily_atr_len = 15;
input length = 15;
input AggPeriod = AggregationPeriod.DAY;
input averageType = AverageType.WILDERS;
def h = high(GetSymbol(), period = AggPeriod)[1];
def c = close(GetSymbol(), period = AggPeriod)[1];
def l = low(GetSymbol(), period = AggPeriod)[1];
def atr_func = MovingAverage(averageType, TrueRange(h, c, l), length);
def day_atr = atr_func;
def day_close = c;
plot p1 = day_close + day_atr;
p1.assignValueColor(COLOR.DARK_RED);
p1.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
plot p7 = day_close + day_atr * lvl2;
p7.assignValueColor(COLOR.RED);
AddCloud(p1, p7, COLOR.DARK_RED, COLOR.DARK_RED);
p7.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
plot p5 = day_close + day_atr * lvl1;
p5.assignValueColor(COLOR.RED);
AddCloud(p7, p5, COLOR.RED, COLOR.RED);
p5.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
plot m5 = day_close - day_atr * lvl1;
m5.assignValueColor(COLOR.GREEN);
#AddCloud(p7,p5,COLOR.GREEN, COLOR.GREEN);
m5.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
plot m7 = day_close - day_atr * lvl2;
m7.assignValueColor(COLOR.GREEN);
AddCloud(m7, m5, COLOR.GREEN, COLOR.GREEN);
m7.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
plot m1 = day_close - day_atr;
m1.assignValueColor(COLOR.DARK_GREEN);
AddCloud(m1, m7, COLOR.DARK_GREEN, COLOR.DARK_GREEN);
m1.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
Thans. This is another problem I could not use these type of TOS link. Every time I click it asks me to install TOS in which already I have open in my computer. Is there any other way I can get the script or advise how to use this link while you already have TOS open. Thanks
@K_O_Trader - what I found is different than your given picture. Sometimes the chart goes completely out of the high and low? I am using 5 minutes time frame but don't yet understand its benefit. On the other hand, the truetrade.net chart literally making a lot of sense. Pleae let me know if you find anything related to top/bottom with price action/ reverse . Thank you so much.
"TrueTrader" is not using any indicator in the video you posted. He is just using clues to guess when it looks like it might reverse. If you see him using a magic top/bottom with price action/ reverse indicator, please do post a screenshot or a link.
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
A | Three up days in a row with a gap down (and vice versa) | Questions | 1 | |
C | Fair Value Gap zones make it appear after one get broken | Questions | 1 | |
S | Identify Gap-Up Pattern | Questions | 9 | |
M | ES gap for the next day? 4pm or 4:15pm. | Questions | 1 | |
B | Gap Up % on Watchlist | Questions | 0 |
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.