PROTECTED SOURCE SCRIPT
BRETT Entry/TP/SL Bot + S/R

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.
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.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.