Dillon_Grech

Indicator - ATR Profit Loss - DG

Hi Traders,

This is an on chart indicator that can be used for setting take profit and stop losses very easily using the Average True Range Indicator (ATR). Using a volatility adjusted TP and SL will allow you to set your targets and losses based on market conditions. In the settings, you are able to adjust how much of a multiplier you require depending on your risk tolerance and strategy. For those that follow the NNFX method, the defult settings are preset to 1xATR TP and 1.5xATR SL.

How to use:
- For longs, 'isLong' box must be ticked, for shorts, this box is unticked
- For longs, green line is TP, red line is SL
- For shorts, red line is TP, green line is SL

Regards,
Dillon Grech
Script open-source

Dans le plus pur esprit de TradingView, l'auteur de ce texte l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur ! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par les règles internes. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Commentaires

This is nice Dillon!
Répondre
Cheers!!
Répondre
It’s about as close as I’ve found to what I need, but it’s a shame you have to remember to edit it’s direction each time. Would be good if you had an option to tick on or off to have it try and gauge trend? I.E if price is above 200 EMA, it’s a long and if price is below 200 EMA it’s a short. If you also had the option to set the EMA length, that’d be amazing. Personally I use a 100 for trend but 200 is also popular.

As the other guy said, if it could also list the current ATR value on each bar (I.e. 1x on the TP and 1.5 on the SL), that’d be awesome!

Well done!
Répondre
Vellox Vellox
I use this a lot now. Ignore my comments above, I switched to an equal ATR for both directions so I set both colours the same and found another indicator which shows values on the bars. The single thing missing is the option to set the ATR value (I.e. looks like it’s set to 14) so would be good to be able to change that although I could obviously copy the code into a new indicator and set manually myself. Great indicator though! Cheers.
Répondre
Hey! This is useful as you don't need to use the calculator to figure out the ATR. However a suggestion I have is showing the 1ATR and 1.5ATR digits on the right so that you don't have to move your cursor exactly to where the 2 lines are. I found this to be tiring when I was backtesting so I just switched back to using the calculator.
Répondre
@sueun123, Hey Sueun! Great suggestion ill look into this and see what i come up with. Thank you!
Répondre