PROTECTED SOURCE SCRIPT
Supertrend Strategy With Multi Tp & Tsl

Hello Traders,
This strategy is based on the popular Supertrend indicator, which many traders use as a simple trend-following tool. The core entry logic is straightforward:
Buy (Long) when the price closes above the Supertrend line.
Sell (Short) when the price closes below the Supertrend line.
However, trading success isn’t only about entries — proper risk management makes all the difference. That’s why this strategy includes four stop-loss methods, two take-profit types, and a trailing stop-loss system. You can customize all of these settings to create your own personalized version.
🛑 Stop-Loss Methods

Tick – Uses the instrument’s smallest price increment. Ideal for tick-based markets such as Futures or Forex.
Percent – Defines the stop-loss as a percentage of entry price. Commonly used in Crypto trading.
ATR – Uses the Average True Range value to determine stop-loss distance. Perfect for adapting to changing market volatility.
Supertrend – The stop-loss level is set at the Supertrend line value at the time of entry.
🔁 Trailing Stop-Loss & Reverse Signals
Trailing SL: If enabled, the chosen stop-loss method will trail the price dynamically from the moment the position opens.
Close with Reverse Signals: When activated, the current position closes and reverses on an opposite signal. If disabled, the strategy waits until the current position is closed before opening a new one.
🎯 Take-Profit Options

Tick – Set a fixed take-profit level based on tick distance.
Percent – Set take-profit based on a percentage change from entry.
Ratio – Sets take-profit based on the entry-to-stop-loss distance × ratio value.
Each take-profit method allows you to define the percentage of position to close at that level.
⚖️ Breakeven Option
When Breakeven is enabled, after the first take-profit is triggered, the stop-loss automatically moves to the entry level, protecting your capital.
⚙️ Additional Settings
Position Type: Choose between Long only, Short only, or Both directions.
Session Filter: Trade only during specific time ranges. Activate this option and set your desired session hours (make sure to select your correct timezone).
📈 Visuals
The strategy plots entry, stop-loss, and take-profit levels directly on the chart, allowing you to clearly visualize your trades and manage them effectively.

Feel free to ask any questions or suggest improvements — this strategy is built for flexibility and experimentation!
This strategy is based on the popular Supertrend indicator, which many traders use as a simple trend-following tool. The core entry logic is straightforward:
Buy (Long) when the price closes above the Supertrend line.
Sell (Short) when the price closes below the Supertrend line.
However, trading success isn’t only about entries — proper risk management makes all the difference. That’s why this strategy includes four stop-loss methods, two take-profit types, and a trailing stop-loss system. You can customize all of these settings to create your own personalized version.
🛑 Stop-Loss Methods
Tick – Uses the instrument’s smallest price increment. Ideal for tick-based markets such as Futures or Forex.
Percent – Defines the stop-loss as a percentage of entry price. Commonly used in Crypto trading.
ATR – Uses the Average True Range value to determine stop-loss distance. Perfect for adapting to changing market volatility.
Supertrend – The stop-loss level is set at the Supertrend line value at the time of entry.
🔁 Trailing Stop-Loss & Reverse Signals
Trailing SL: If enabled, the chosen stop-loss method will trail the price dynamically from the moment the position opens.
Close with Reverse Signals: When activated, the current position closes and reverses on an opposite signal. If disabled, the strategy waits until the current position is closed before opening a new one.
🎯 Take-Profit Options
Tick – Set a fixed take-profit level based on tick distance.
Percent – Set take-profit based on a percentage change from entry.
Ratio – Sets take-profit based on the entry-to-stop-loss distance × ratio value.
Each take-profit method allows you to define the percentage of position to close at that level.
⚖️ Breakeven Option
When Breakeven is enabled, after the first take-profit is triggered, the stop-loss automatically moves to the entry level, protecting your capital.
⚙️ Additional Settings
Position Type: Choose between Long only, Short only, or Both directions.
Session Filter: Trade only during specific time ranges. Activate this option and set your desired session hours (make sure to select your correct timezone).
📈 Visuals
The strategy plots entry, stop-loss, and take-profit levels directly on the chart, allowing you to clearly visualize your trades and manage them effectively.
Feel free to ask any questions or suggest improvements — this strategy is built for flexibility and experimentation!
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Built your TradingView Tools with Pine Script Experts - milvetti.com
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Built your TradingView Tools with Pine Script Experts - milvetti.com
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.