OPEN-SOURCE SCRIPT
Risk control

Risk control.
The indicator displays lines at a distance of % from the current price specified in the parameters. This risk is taken as 100% of the volume. Additionally, the max/min of the visible part of the chart is determined. The distance from the current price to the min/max is calculated in % and the ratio of the risk specified in the parameters to the risk to the min/max is displayed in 10% increments. The indicator is calculated based on the visible part of the chart on the screen. The direction of visualization depends on the visible part of the chart: if the opening price of the first candle is > the current price, visualization is from the minimum, otherwise from the maximum.
Required parameters: risk in %.
Visualization: line offset to the left/right, line color and thickness. Additional: table of 3 cells (background, font size and color).
The indicator displays lines at a distance of % from the current price specified in the parameters. This risk is taken as 100% of the volume. Additionally, the max/min of the visible part of the chart is determined. The distance from the current price to the min/max is calculated in % and the ratio of the risk specified in the parameters to the risk to the min/max is displayed in 10% increments. The indicator is calculated based on the visible part of the chart on the screen. The direction of visualization depends on the visible part of the chart: if the opening price of the first candle is > the current price, visualization is from the minimum, otherwise from the maximum.
Required parameters: risk in %.
Visualization: line offset to the left/right, line color and thickness. Additional: table of 3 cells (background, font size and color).
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.
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.
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.