TradingView
NeoButane
2018年8月8日晚上6點40分

ATR Bands [NeoButane] 

ICON / BitcoinBinance

描述

ATR bands, smoothed with exponential moving averages.

The difference between this and other ATR bands is that high and low are used as the source for top and bottom band, resulting in more accurate ATRs. It is also calculated in log-space to aid in making the bands more "springy" when it comes to extremely volatile assets or very low timeframes.

See here for an upgraded version: tradingview.com/script/5xdHTNpV-ATR-Trailing-Stop-Bands-NeoButane/

發布通知

- Added option to not use a moving average to get the real value for stop loss

發布通知

Added alert conditions for the labels. Defaulted EMA smoothing to true.

發布通知

Added additional bands that are off by default. These bands do not have alerts nor shapes attached to them, so I have turned "Show Labels When Price Closes Out of Bands" off for default to prevent confusion.
評論
minahmed
Hello - great indicator. I started manually testing and realised my look back period is quite long. So decided I'm going to have a go at a pin script.
Fundamentally I want to do the following using your indicator.

buy when price above ATR Basis
- close when price below ATR Basis and Stochastic(14) < 75

I know you are super busy, but would be grateful for any help in writing this. Thanks in advance
minahmed
@minahmed, I mean pine script not pin script ;-)
NeoButane
@minahmed,

So you'll want to get the ATR basis, which can be derived from the average of the upper ATR band and the lower ATR band. How you reach that is up to your type of calculation. The rest is simple:

tradingview.com/script/XTdq3ydC-Example-strategy-triggers-for-MA-over-undersold-oscillator/

So buy and sell conditions will open an entry for you, regardless if you already have an open position. The close trigger will always close any position, and requires "strategy.position_size" to be checked, otherwise the strategy closes the wrong orders.
rvs85
Hey man - Great indicator. Just want to better understand the input. I believe I know what the multipliers do. Can you tell me what the numbers entered in "ATR" input mean? Is this the number of candles used to compute the range?

Thanks in advance.

Best,
R
Money-Tree
Hi mate, awesome Job, Would you be able to add two levels of ATR lines. Say 1*ATR and 1.5*ATR? Currently, we have only one level
NeoButane
@Money-Tree, Thanks. I've added additional bands, though interpreting them seems rather difficult, at least for myself. If you think it needs more visual cues I can add them, otherwise I'm going to leave it as is.
Money-Tree
@NeoButane, thanks mate
JunisNalik
What is the amount of periods the EMA has been used in this indicator?
NeoButane
@JunisNalik, It may be the number or combination of numbers considered to be unlucky in Chinese or Japanese numerology
TradingMastersX
Great indicator, thanks! What do the dots that appear when the candle leaves the band indicate?
更多