Bot de Telegram
El cockpit protegido por PIN. El mismo motor que el panel, servido vía @-mentions.
Vincula tu cuenta de Telegram desde la página de perfil del panel; el bot hace un handshake único para enlazar tu chat ID. A partir de ahí, cada comando se ejecuta acotado a tu cuenta.
Solo lectura
| Command | Usage | Description |
|---|---|---|
| /strategies | /strategies | Lista tus conjuntos de reglas guardados. |
| /templates | /templates | Lista las plantillas de conjuntos de reglas incluidas. |
| /show | /show <strategy> [--raw] | Pretty-print o dump YAML crudo de una estrategia. |
| /backtest | /backtest <strategy> [symbol] [tf] [days] | Ejecuta un backtest y responde con el informe PDF. |
| /tradechart | /tradechart <strategy> [symbol] [tf] [days] [padding] | Un gráfico por trade con cajas TP / SL superpuestas. |
| /swings | /swings [symbol] [tf] [bars] [lookback] | Lista los pivotes swing confirmados en una ventana. |
| /breaks | /breaks [symbol] [tf] [bars] [lookback] | Primer cierre que rompe cada swing. |
| /validbreaks | /validbreaks [symbol] [tf] [bars] [lookback] | Breakouts confirmados por el siguiente cierre. |
| /trends | /trends [symbol] [tf] [bars] [lookback] [padding] | Regiones de tendencia SMC BOS / CHoCH en un gráfico. |
| /validtrends | /validtrends [symbol] [tf] [bars] [lookback] [padding] | Como /trends pero confirmado por dos cierres. |
| /runs | /runs | Lista los runs recientes de backtest / paper / live. |
| /run | /run <id> | Detalles completos de un run. |
| /equity | /equity | Equity actual live o paper. |
| /positions | /positions | Posiciones abiertas en runs activos. |
| /pulse | /pulse | Ticker BTC + funding. Sanity check. |
| /status | /status | Salud del motor, uptime, último error. |
Compute (sin PIN)
| Command | Usage | Description |
|---|---|---|
| /optimize | /optimize <strategy> [sym] [tf] [days] [trials] | Reoptimiza parámetros en una ventana. |
| /montecarlo | /montecarlo <strategy> [sym] [tf] [days] [reps] | Stress test Monte Carlo sobre el ledger de trades. |
Control (con PIN)
| Command | Usage | Description |
|---|---|---|
| /start_paper | /start_paper <strategy> [sym] [tf] [cash] <pin> | Inicia un run de paper trading. |
| /stop | /stop <run_id> <pin> | Detén un run paper / live en marcha. |
| /kill | /kill <pin> | Hard-kill del motor. Último recurso. |
| /flatten | /flatten <pin> | Cierra inmediatamente todas las posiciones abiertas. |
Sobre el PIN
Los comandos de control llevan un último argumento extra — un PIN de 4 a 8 dígitos que defines en la página de perfil del panel. El PIN nunca se registra; es el único paso de autorización del bot para acciones que mueven dinero.
Backtest-complete notifications
When a backtest finishes, the bot sends you a summary with the headline metrics (PnL, Sharpe, Sortino, drawdown, win rate, profit factor) and the strategy's own conditions written out in English — for example, `(Long - EMA20 greater than 30) AND (Long - rsi14 greater than 15)`. Tap the Trade-Chart PDF button on the message to receive the per-trade chart report as a Telegram document.
Sample message
📊 Backtest complete
Strategy: custom:ema_breakout
Market: BTC/USDT · 1h · 60 days
— Performance —
PnL %: +4.21 %
Sharpe: 1.180
Sortino: 1.610
Max drawdown: 3.40 %
Trades: 12
Win rate: 66.67 %
Profit factor: 2.10
— Strategy config —
Indicators: EMA20, rsi14
Entry rules:
(Long - EMA20 greater than 30) AND (Long - rsi14 greater than 15)
Exit rules:
(close crosses below EMA20) OR (Long - take profit at 5.00%) OR (stop loss at 2.00%)
[ 📄 Trade-Chart PDF ]Backtest-complete is enabled by default on the Notifications page. To turn it off, uncheck `backtest_complete` in the enabled-events list.