OPEN-SOURCE SCRIPT
Mis à jour ATR stop loss

Plots the stop loss level based on average true range (ATR) and a multiplier of choice (1 to 2.5, default is 1.5), subtracted from closing price.
Additions in this version:
You can now show percentage labels to help evaluate the level of risk.
The color of the plotted line and the text labels can be picked by the user.
Additions in this version:
You can now show percentage labels to help evaluate the level of risk.
The color of the plotted line and the text labels can be picked by the user.
Notes de version
Plots the stop loss level based on average true range (ATR) and a multiplier of choice (1 to 2.5, default is 1.5). Percentage labels can also be shown (to help evaluate risk) and the user can pick the color of the line and text.Notes de version
Plots the stop loss level based on average true range (ATR) and a multiplier of choice (1 to 2.5, default is 1.5).Percentage labels can also be shown and the user can pick the color of the line and text.
Notes de version
Version 2:- Added support for a user-defined ATR-multiplier to add flexibility.
- There is a longer list of preset values in the multiplier list.
- Default color and line style has been changed.
- The code has been a bit reorganized.
Example usage:
Either pick a preset value of choice to plot a stop loss level (default is 1.5*ATR), or set a user-defined multiplier (for example a stock's beta).
If the user-defined multiplier is 1 the preset value will be used (if a bad value is given, it will be set to 1).
Good luck with your risk management and have a happy trading journey.
Notes de version
ATR stop loss v3:- The user can now select alternative price sources (default is closing price).
- Labels are shown 250 periods back (about one year on a daily chart)
- Some reorganization in the input dialog
Notes de version
Version 4 (clarification: for bullish scenarios only). Now with trailing stop loss. The trailing SL can be activated from a date given by the user and will be deactivated when the trailing stoploss level is triggered by the price (low).Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Pour un accès rapide sur un graphique, ajoutez ce script à vos favoris - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit de TradingView, le créateur de ce script l'a rendu open-source, afin que les traders puissent examiner et vérifier sa fonctionnalité. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais n'oubliez pas que la republication du code est soumise à nos Règles.
Pour un accès rapide sur un graphique, ajoutez ce script à vos favoris - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.