PROTECTED SOURCE SCRIPT
Traffic Lite [B.A.S.E.]

--- English Version ---
Indicator “Traffic Lite [B.A.S.E.]” is designed to find potential long (buy) entry points and take-profit exits. It implements:
- Red signal — more aggressive, gives more entries (higher risk, but potentially more trades).
- Yellow signal — more “balanced” logic, provides slightly more “refined” entries.
When the indicator detects a suitable situation (according to the “red” or “yellow” logic), it generates a buy signal. After entry:
- A target (take-profit) is calculated.
- If necessary, a mechanism of averaging (additional buys) is activated.
- When the price reaches the defined take-profit, the trade is considered closed.
Additionally, the indicator keeps track of statistics:
- How many trades have been closed.
- The maximum time spent in a trade (in hours).
- The total profit in percentage.
- How many trades reached the 1st, 2nd, or 3rd averaging.
- The maximum recorded drawdown.
There are also Telegram settings for automatically sending all signals (entry, averaging, exit) to a bot/chat.
Input parameters and their meaning (Parameters tab)
- Signal type: Red / Yellow / Combined.
- Parameter D1 and D2: set thresholds for yellow and red signals.
- Close Y Param: additional exit logic for yellow signal.
- Main entry, % of deposit: first entry volume.
- Enable averaging? up to three additional buys.
- Averaging parameters: drop levels and volumes for 1st, 2nd, and 3rd averaging.
- Take Profit %: profit target.
- Telegram settings: Chat ID and Thread ID for notifications.
How signals are formed
- Red signal: triggers quicker, higher risk of false entries.
- Yellow signal: more balanced and less frequent.
- Combined mode: picks the first detected signal if both appear.
Averaging
- Triggers on price drops.
- Recalculates average price and take-profit.
- Up to three steps of averaging.
Exiting a trade
- When take-profit is reached, the trade closes with a “CLOSE” marker.
Statistics table
- Number of trades closed, max time in trade, total profit, number of averagings, max drawdown.
Practical application
1. Select signal type.
2. Configure entry, averaging, and take-profit parameters.
3. Set Telegram settings.
4. Click “OK”.
After this, the chart will show entry arrows, averaging labels, and exit markers.
Alerts
- Sends detailed notifications to Telegram via webhook.
- Allows creating custom alerts in TradingView.
Important notes
- A new trade won’t open until the previous one is closed.
- Averaging activates only when price drops as configured.
Summary
Red — aggressive and frequent. Yellow — moderate and reliable. The indicator automates entry detection, averaging, and take-profit exits while displaying key data on the chart.
--- Русская версия ---
Индикатор «Traffic Lite [B.A.S.E.]» предназначен для нахождения потенциальных моментов входа в лонг (покупку) и выхода по тейк-профиту. В нём реализованы:
- Красный сигнал — более агрессивный, чаще даёт входы (риск выше, но и потенциально сделок больше).
- Жёлтый сигнал — более «сбалансированный» по логике, даёт чуть более «выверенные» входы.
Когда индикатор видит подходящую ситуацию (согласно «красной» или «жёлтой» логике), он подаёт сигнал на покупку. После входа:
- Рассчитывается цель (тейк-профит).
- При необходимости включается механизм усреднений (добавочных покупок).
- Когда цена доходит до заданного тейк-профита, сделка считается закрытой.
Дополнительно ведётся подсчёт статистики:
- Сколько сделок закрыто.
- Максимальное время в сделке (в часах).
- Совокупный профит (в %).
- Сколько сделок дошли до 1, 2 или 3 усреднений.
- Максимальная зафиксированная просадка.
Также предусмотрены настройки Telegram для отправки всех сигналов (вход, усреднение, выход) в бот/чат.
Входные параметры и их значение (вкладка «Параметры»)
- Тип сигнала: Красный / Жёлтый / Совместный.
- Parameter D1 и D2: задают пороги для появления жёлтых и красных сигналов.
- Close Y Param: дополнительный фильтр выхода для жёлтого сигнала.
- Основной вход, % от депозита: объём первого входа.
- Включить усреднения? до трёх дополнительных покупок.
- Параметры усреднений: уровни падения и объёмы добавок для 1, 2 и 3 усреднений.
- Take Profit %: цель прибыли.
- Настройки Telegram: ID чата и Thread ID для уведомлений.
Как формируются сигналы
- Красный сигнал: чаще, выше риск ложных входов.
- Жёлтый сигнал: реже, но более надёжно.
- Совместный режим: выбирается первый из совпавших сигналов.
Усреднения
- Активация при падении цены.
- Пересчёт средней цены и тейк-профита.
- До трёх шагов усреднения.
Выход из сделки
- При достижении тейк-профита сделка закрывается, появляется «CLOSE».
Таблица статистики
- Кол-во закрытых сделок, макс. время в сделке, общий профит, количество усреднений, максимальная просадка.
Практическое применение
1. Выбрать тип сигнала.
2. Настроить параметры входа, усреднений, тейк-профита.
3. Указать настройки Telegram.
4. Нажать «ОК».
После этого на графике будут появляться метки входов, усреднений и выходов.
Оповещения
- Отправка в Telegram через webhook.
- Настройка кастомных алертов в TradingView.
Важные нюансы
- Новая сделка откроется только после закрытия предыдущей.
- Усреднения активируются при фактическом падении цены.
Итог
Красный — агрессивно и часто, Жёлтый — умеренно и надёжно. Индикатор автоматизирует процесс поиска входов, усреднений и выхода, отображая данные на графике.
Indicator “Traffic Lite [B.A.S.E.]” is designed to find potential long (buy) entry points and take-profit exits. It implements:
- Red signal — more aggressive, gives more entries (higher risk, but potentially more trades).
- Yellow signal — more “balanced” logic, provides slightly more “refined” entries.
When the indicator detects a suitable situation (according to the “red” or “yellow” logic), it generates a buy signal. After entry:
- A target (take-profit) is calculated.
- If necessary, a mechanism of averaging (additional buys) is activated.
- When the price reaches the defined take-profit, the trade is considered closed.
Additionally, the indicator keeps track of statistics:
- How many trades have been closed.
- The maximum time spent in a trade (in hours).
- The total profit in percentage.
- How many trades reached the 1st, 2nd, or 3rd averaging.
- The maximum recorded drawdown.
There are also Telegram settings for automatically sending all signals (entry, averaging, exit) to a bot/chat.
Input parameters and their meaning (Parameters tab)
- Signal type: Red / Yellow / Combined.
- Parameter D1 and D2: set thresholds for yellow and red signals.
- Close Y Param: additional exit logic for yellow signal.
- Main entry, % of deposit: first entry volume.
- Enable averaging? up to three additional buys.
- Averaging parameters: drop levels and volumes for 1st, 2nd, and 3rd averaging.
- Take Profit %: profit target.
- Telegram settings: Chat ID and Thread ID for notifications.
How signals are formed
- Red signal: triggers quicker, higher risk of false entries.
- Yellow signal: more balanced and less frequent.
- Combined mode: picks the first detected signal if both appear.
Averaging
- Triggers on price drops.
- Recalculates average price and take-profit.
- Up to three steps of averaging.
Exiting a trade
- When take-profit is reached, the trade closes with a “CLOSE” marker.
Statistics table
- Number of trades closed, max time in trade, total profit, number of averagings, max drawdown.
Practical application
1. Select signal type.
2. Configure entry, averaging, and take-profit parameters.
3. Set Telegram settings.
4. Click “OK”.
After this, the chart will show entry arrows, averaging labels, and exit markers.
Alerts
- Sends detailed notifications to Telegram via webhook.
- Allows creating custom alerts in TradingView.
Important notes
- A new trade won’t open until the previous one is closed.
- Averaging activates only when price drops as configured.
Summary
Red — aggressive and frequent. Yellow — moderate and reliable. The indicator automates entry detection, averaging, and take-profit exits while displaying key data on the chart.
--- Русская версия ---
Индикатор «Traffic Lite [B.A.S.E.]» предназначен для нахождения потенциальных моментов входа в лонг (покупку) и выхода по тейк-профиту. В нём реализованы:
- Красный сигнал — более агрессивный, чаще даёт входы (риск выше, но и потенциально сделок больше).
- Жёлтый сигнал — более «сбалансированный» по логике, даёт чуть более «выверенные» входы.
Когда индикатор видит подходящую ситуацию (согласно «красной» или «жёлтой» логике), он подаёт сигнал на покупку. После входа:
- Рассчитывается цель (тейк-профит).
- При необходимости включается механизм усреднений (добавочных покупок).
- Когда цена доходит до заданного тейк-профита, сделка считается закрытой.
Дополнительно ведётся подсчёт статистики:
- Сколько сделок закрыто.
- Максимальное время в сделке (в часах).
- Совокупный профит (в %).
- Сколько сделок дошли до 1, 2 или 3 усреднений.
- Максимальная зафиксированная просадка.
Также предусмотрены настройки Telegram для отправки всех сигналов (вход, усреднение, выход) в бот/чат.
Входные параметры и их значение (вкладка «Параметры»)
- Тип сигнала: Красный / Жёлтый / Совместный.
- Parameter D1 и D2: задают пороги для появления жёлтых и красных сигналов.
- Close Y Param: дополнительный фильтр выхода для жёлтого сигнала.
- Основной вход, % от депозита: объём первого входа.
- Включить усреднения? до трёх дополнительных покупок.
- Параметры усреднений: уровни падения и объёмы добавок для 1, 2 и 3 усреднений.
- Take Profit %: цель прибыли.
- Настройки Telegram: ID чата и Thread ID для уведомлений.
Как формируются сигналы
- Красный сигнал: чаще, выше риск ложных входов.
- Жёлтый сигнал: реже, но более надёжно.
- Совместный режим: выбирается первый из совпавших сигналов.
Усреднения
- Активация при падении цены.
- Пересчёт средней цены и тейк-профита.
- До трёх шагов усреднения.
Выход из сделки
- При достижении тейк-профита сделка закрывается, появляется «CLOSE».
Таблица статистики
- Кол-во закрытых сделок, макс. время в сделке, общий профит, количество усреднений, максимальная просадка.
Практическое применение
1. Выбрать тип сигнала.
2. Настроить параметры входа, усреднений, тейк-профита.
3. Указать настройки Telegram.
4. Нажать «ОК».
После этого на графике будут появляться метки входов, усреднений и выходов.
Оповещения
- Отправка в Telegram через webhook.
- Настройка кастомных алертов в TradingView.
Важные нюансы
- Новая сделка откроется только после закрытия предыдущей.
- Усреднения активируются при фактическом падении цены.
Итог
Красный — агрессивно и часто, Жёлтый — умеренно и надёжно. Индикатор автоматизирует процесс поиска входов, усреднений и выхода, отображая данные на графике.
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.