PROTECTED SOURCE SCRIPT

BRETT Entry/TP/SL Bot + S/R

19
BRETT Entry/TP/SL Bot + S/R

This Pine Script strategy automatically spots your custom entry signals and immediately calculates the corresponding Take-Profit, Stop-Loss, and key Support & Resistance levels on any chart.

**Key Features:**

* **Dynamic Entry**: Triggers on your defined “BRETT” condition (e.g. MA crossover), capturing the exact bar close as the entry price.
* **Flexible Risk/Reward**: Use the inputs to set TP and SL as a percentage of entry (default 1%), ideal for intraday and swing setups.
* **Auto Support/Resistance**: Plots the highest high and lowest low over the last N bars (default 20) to highlight major price barriers.
* **Visual Lines**: Entry (blue), TP (green), SL (red), Support & Resistance (gray) lines update live on the chart.
* **Instant Alerts**: Fires a multi-line `alert()` containing Entry, TP, SL, Support & Resistance, plus a “not binding advice” disclaimer—perfect for webhooks or push notifications.

**How to Use:**

1. Add the script to your chart and publish it as a **Strategy**.
2. Create a TradingView alert selecting **“BRETT Entry/TP/SL Bot + S/R alert()”** as the condition.
3. (Optional) Enable **Webhook URL** to send signals into n8n, Telegram, Slack, etc.

Customize the TP/SL percentages and S/R lookback in the inputs to match your trading style. This all-in-one tool helps automate your trade setups and keeps your risk parameters crystal-clear.

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.