TradingView
erasei
7 juil. 2019 00:30

erasei's Swing Points with ATR 

Bitcoin / U.S. dollarBitstamp

Description

A simple indicator to overlay high and low swing points with the ATR at each point to quickly see an ATR-based stop.

Notes de version

Added "ATR Modifier" input so you can change the level of ATR stops. Use 0.5 for half ATR, etc.
Commentaires
dtfwithetfs
This is the exact script I've been looking for. Thank you mate.

Do you mind sharing the code? I would love to have a look at the backend functionality and test out some tweaks.
drpragnesh40
SUPERB INDICATOR .THANKS A LOT
erasei
The 'pivot length' variables are how many candles need to elapse before it is considered a swing.
'Max length' is how long (max) do you want the lines to be drawn before the script just stops drawing them.
'ATR Modifier' is a float to set the percentage of ATR you want displayed. Default is 1.0 which is 100% of the ATR of that period / candle. Setting to 0.5 would be 50% of ATR, 0.25 would be 1/4th ATR, etc.
'ATR Period' is how many periods the ATR will be based on.
Plus