OPEN-SOURCE SCRIPT

Take profit and Stop Loss ATR HL [Tcs] | ALGO

This indicator helps traders set stop loss and take profit levels based on either ATR or High-Low range.

The indicator calculates stop loss and take profit levels for both long and short positions, based on the user's input of ATR length, ATR smoothing method, and multiplier levels for each level. It’s possible to set 3 levels of take profit, for both long and short trades.
The indicator also includes the option to show or hide levels, bands, and labels for the calculated stop loss and take profit levels.
snapshot
snapshot

Additionally, the indicator has a function to calculate the user's risk based on their account balance, risk percentage, and broker fees.
snapshot

Overall, this indicator can be helpful for traders who use stop loss and take profit levels in their trading strategies and want a visual representation of those levels on their charts.
Please note that this indicator is for educational purposes only and should not be used for trading without further testing and analysis.
Average True Range (ATR)Pivot points and levelsPortfolio managementriskmangementriskrewardstoplosstakeprofit

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


For the access to premium indicators please contact me on tradingview

Disclaimer