Spinn29

Spinn ATR target

Spinn29 Updated   
Not quite the usual approach to plotting targets on the chart, where the price will come with a given probability.

The indicator draws targets by studying the ATR of the target timeframe. More precisely, this is not exactly an ATR - the price move is taken from the closing price of the previous bar and is calculated both up and down separately.

The settings specify the percentage used to calculate the price move, at which the specified percentage of bars reached this price move in the past.

Simply put, if we set 50% in the settings, this means that a line will be drawn at the level at which the price reached this level in 50% of cases over a given period.

--
Не совсем обычный подход к построению целей на графике, куда цена придет с заданной вероятностью.

Индикатор рисует цели, изучая ATR целевого таймфрейма. Точнее, это не совсем ATR - ход цены берется от цены закрытия предыдущего бара и считается отдельно как вверх, так и вниз.

В настройках задается процент, исходя из которого вычисляется ход цены, при котором заданный процент баров достигал этого хода цены ранее.

Проще говоря, если мы задаем в настройках 50%, то это означает, что будет построена линия на том уровне, на котором цена в 50% случаев за заданный период достигала этого уровня.
Release Notes:
Open bar line added. | Добавлена линия открытия периода.
Release Notes:
Text added with the percentile near the lines.
Возле линий выводится текст с размером заданного перцентиля.
Release Notes:
The structure and code of the indicator have been slightly modified. Comments have been added. Price values have been added to the labels at the user's request.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?