• Get $30 off VIP with code SUMMER30. Ends July 27. Happy trading!

Average True Range (ATR) Breakouts Indicator for ThinkorSwim

BenTen

Administrative
Staff
VIP
There was not much information written about this indicator. Take it as is.

6IUxLTA.png


thinkScript Code

Code:
# ATR Breakouts
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/RqEk3iZu/

def long_entry = (expAverage(close, 50)) + (2 * atr(20));
def short_entry = (expAverage(close, 50)) - (2 * atr(20));

def short_stop_loss = (expAverage(close, 50)) + (atr(20));
def long_stop_loss = (expAverage(close, 50)) - (atr(20));

plot b_entry = long_entry;
plot s_entry = short_entry;
plot s_stop = short_stop_loss;
plot l_stop = long_stop_loss;

b_entry.SetDefaultColor(GetColor(6));
s_entry.SetDefaultColor(GetColor(5));
s_stop.SetDefaultColor(GetColor(1));
l_stop.SetDefaultColor(GetColor(0));
 
Last edited:

Similar threads

Top