Skip to content

RedEngine33/deterministic-bot

Repository files navigation

Deterministic Signal Bot — (TradingView → Telegram, no GPT)

What: Fully deterministic. Pine computes a Quality Score (Q-Score) and sends JSON; server forwards to Telegram if q_score >= MIN_Q_SCORE.

Endpoints

  • GET /health, GET /diag
  • GET /ping-tg
  • POST /tv-alert ← TradingView webhook

Deploy (Render)

  • Set env vars: BOT_TOKEN, CHANNEL_ID, TV_SECRET, PARSE_MODE=Markdown, MIN_Q_SCORE=65, optional JOURNAL_CHANNEL_ID.
  • Start command:
gunicorn gpt_signal_api:app --bind 0.0.0.0:$PORT

TradingView

  • Use tv_alerts_option2.pine (Deterministic + Q-Score, no ADX).
  • Alert: Any alert() function call. Webhook: https://YOUR-APP.onrender.com/tv-alert.
  • Message field empty.

Notes

  • Pine includes: EMA200 regime, HTF confirmation, ATR%, trend magnitude (EMA20 slope / ATR), distance-from-EMA20, RR filter, Q-Score & dedup.
  • Server message shows: setup, ATR%, trend_mag, distance/ATR, EMA200, Q-score.

About

growgradually

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published