PROTECTED SOURCE SCRIPT
ST+ TP1-TP5 + CALL/PUT

1. The Indicator's General Concept
The indicator works by:
Using the Supertrend indicator to determine when a new trend (bullish or bearish) begins.
Once a new trend is detected:
It determines the entry price.
It calculates the stop-loss (SL).
It calculates five profit levels, TP1 to TP5.
It draws horizontal lines on the chart representing the entry, SL, TP1-TP5, with labels on the right side (as shown in the image).
It can also display a CALL or PUT symbol above the signal candle.
It tracks price movement to determine if a target has been reached or if the stop-loss has been hit.
2. The Inputs That Control the Indicator
You can modify these values according to your strategy:
ATR Length → The number of candles used to calculate volatility.
Supertrend Factor → Controls the sensitivity of the supertrend. (The higher the value, the fewer the signals.)
TP1 to TP5 → ATR multipliers to set targets.
SL → ATR multiplier to set stop loss.
Extend Bars → The distance the lines extend to the right before the bar.
Show CALL/PUT → Shows or hides the trend signal.
Show TP Flags → Enables or disables small TP flags above the candles.
3. Determining the Trend
The indicator uses Supertrend to determine:
Is the market in an uptrend or a downtrend?
If the trend changes from bearish to bullish, it registers a CALL signal.
If the trend changes from bullish to bearish, it registers a PUT signal.
The first candle at which this change occurs is called a reversal candle.
4. Calculating Levels
When a reversal candle occurs:
Entry price = closing price of the candle.
Stop Loss (SL):
For an uptrend = Price - ATR × Multiplier.
For a downtrend = Price + ATR × Multiplier.
Profit Levels (TP1, TP5):
If up → Price + ATR × (multipliers).
If down → Price - ATR × (multipliers).
5. Drawing Lines and Labels
Draws horizontal lines representing:
Entry (green)
SL (red)
TP1-TP5 (blue)
Places labels on the right side of the chart, as shown in the image:
Each label shows the price level.
The label reads: "TP1: 123.45" or "Entry: 120.00", etc.
The positions of the lines and labels are updated automatically with each new candle.
6. Showing CALL and PUT Signals
If the new trend is up, a green CALL label will appear above the reversal candle.
If the new trend is down, a red PUT label will appear above the reversal candle.
7. Target Tracking and Stop Loss
The indicator tracks each candle after the signal:
If the price touches one of the targets (TP1 to TP5):
It marks this target.
It stops tracking this target so that it does not repeat the signal.
If the price touches the Stop Loss (SL):
It closes the trade and stops tracking completely.
8. Blue Flags Option
There is an additional option:
If you enable it, a small blue flag will appear above or below the candle when any target is reached.
If you disable it, you won't see these flags; you'll just see the sidebars and labels.
9. Live and Dynamic Update
The indicator uses an automatic update every minute.
Ensures that all lines and labels remain fixed at the last candlestick of the analysis.
10. Trade Lifecycle
Wait for a reversal in a supertrend.
At the first reversal → set Entry/SL/TP1..TP5.
Draw lines and labels on the chart.
Monitor price action:
If any TP is met → mark it as met.
If the SL is reached → cancel the trade.
Wait for a new signal to begin a new cycle.
Conclusion
The indicator provides you with a complete visual trading system.
Defines entry points, stop-losses, and profit targets.
Everything is displayed on the chart with clear colored lines and labels.
Keeps targets organized and prevents duplicate signals.
Can be used on any timeframe or market.
The indicator works by:
Using the Supertrend indicator to determine when a new trend (bullish or bearish) begins.
Once a new trend is detected:
It determines the entry price.
It calculates the stop-loss (SL).
It calculates five profit levels, TP1 to TP5.
It draws horizontal lines on the chart representing the entry, SL, TP1-TP5, with labels on the right side (as shown in the image).
It can also display a CALL or PUT symbol above the signal candle.
It tracks price movement to determine if a target has been reached or if the stop-loss has been hit.
2. The Inputs That Control the Indicator
You can modify these values according to your strategy:
ATR Length → The number of candles used to calculate volatility.
Supertrend Factor → Controls the sensitivity of the supertrend. (The higher the value, the fewer the signals.)
TP1 to TP5 → ATR multipliers to set targets.
SL → ATR multiplier to set stop loss.
Extend Bars → The distance the lines extend to the right before the bar.
Show CALL/PUT → Shows or hides the trend signal.
Show TP Flags → Enables or disables small TP flags above the candles.
3. Determining the Trend
The indicator uses Supertrend to determine:
Is the market in an uptrend or a downtrend?
If the trend changes from bearish to bullish, it registers a CALL signal.
If the trend changes from bullish to bearish, it registers a PUT signal.
The first candle at which this change occurs is called a reversal candle.
4. Calculating Levels
When a reversal candle occurs:
Entry price = closing price of the candle.
Stop Loss (SL):
For an uptrend = Price - ATR × Multiplier.
For a downtrend = Price + ATR × Multiplier.
Profit Levels (TP1, TP5):
If up → Price + ATR × (multipliers).
If down → Price - ATR × (multipliers).
5. Drawing Lines and Labels
Draws horizontal lines representing:
Entry (green)
SL (red)
TP1-TP5 (blue)
Places labels on the right side of the chart, as shown in the image:
Each label shows the price level.
The label reads: "TP1: 123.45" or "Entry: 120.00", etc.
The positions of the lines and labels are updated automatically with each new candle.
6. Showing CALL and PUT Signals
If the new trend is up, a green CALL label will appear above the reversal candle.
If the new trend is down, a red PUT label will appear above the reversal candle.
7. Target Tracking and Stop Loss
The indicator tracks each candle after the signal:
If the price touches one of the targets (TP1 to TP5):
It marks this target.
It stops tracking this target so that it does not repeat the signal.
If the price touches the Stop Loss (SL):
It closes the trade and stops tracking completely.
8. Blue Flags Option
There is an additional option:
If you enable it, a small blue flag will appear above or below the candle when any target is reached.
If you disable it, you won't see these flags; you'll just see the sidebars and labels.
9. Live and Dynamic Update
The indicator uses an automatic update every minute.
Ensures that all lines and labels remain fixed at the last candlestick of the analysis.
10. Trade Lifecycle
Wait for a reversal in a supertrend.
At the first reversal → set Entry/SL/TP1..TP5.
Draw lines and labels on the chart.
Monitor price action:
If any TP is met → mark it as met.
If the SL is reached → cancel the trade.
Wait for a new signal to begin a new cycle.
Conclusion
The indicator provides you with a complete visual trading system.
Defines entry points, stop-losses, and profit targets.
Everything is displayed on the chart with clear colored lines and labels.
Keeps targets organized and prevents duplicate signals.
Can be used on any timeframe or market.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.