PLATFORM
TrendOrFlat для TSLab
TrendOrFlat не заменяет вашу стратегию в TSLab. Он передаёт режим через RegimeGate, а агент применяет собственные правила входа.
Архитектура
TrendOrFlat → Regime API → RegimeGate handler → существующая стратегия TSLab.
Перед началом
- Активный trial или подписка Plus/Max.
- TSLab с поддержкой custom handlers (см. инструкцию на /setup).
- Файл RegimeGate и API-токен из бота/кабинета.
Установка
- Получите RegimeGate.dll и токен через бота или кабинет.
- Положите DLL в папку handlers TSLab и перезапустите TSLab.
- Вставьте кубик RegimeGate в схему агента.
- Задайте AllowedRegimes: TREND_LONG / TREND_SHORT / FLAT.
- Укажите SignalSource URL и токен (значения — из кабинета, не публикуются на сайте).
Fail-safe
При ошибке сети, 401/403 или отсутствии свежего режима гейт уходит в OFF. Это штатная защита, не сигнал на вход.
Проверка перед запуском
- Режим в кубике совпадает с публичным режимом на главной.
- В paper/sandbox стратегия молчит в чужом режиме.
- При отключённом токене агент не торгует.
PLATFORM
TrendOrFlat for TSLab
TrendOrFlat does not replace your TSLab strategy. It passes the market regime through RegimeGate, and your agent keeps applying its own entry rules.
Architecture
TrendOrFlat → Regime API → RegimeGate handler → your existing TSLab strategy.
Before you start
- An active trial or a Plus/Max subscription.
- TSLab with custom handler support (see the guide at /setup).
- The RegimeGate file and an API token from the bot or dashboard.
Installation
- Get RegimeGate.dll and a token from the bot or dashboard.
- Drop the DLL into the TSLab handlers folder and restart TSLab.
- Insert the RegimeGate block into your agent's scheme.
- Set AllowedRegimes: TREND_LONG / TREND_SHORT / FLAT.
- Enter the SignalSource URL and token (from your dashboard — never published on the site).
Fail-safe
On a network error, a 401/403, or no fresh regime, the gate goes OFF. This is a normal protective state, not an entry signal.
Before you go live
- The regime shown in the block matches the public regime on the home page.
- In paper/sandbox mode, the strategy stays silent outside its regime.
- With the token disabled, the agent does not trade.