What: Fully deterministic. Pine computes a Quality Score (Q-Score) and sends JSON; server forwards to Telegram if q_score >= MIN_Q_SCORE
.
GET /health
,GET /diag
GET /ping-tg
POST /tv-alert
← TradingView webhook
- Set env vars:
BOT_TOKEN
,CHANNEL_ID
,TV_SECRET
,PARSE_MODE=Markdown
,MIN_Q_SCORE=65
, optionalJOURNAL_CHANNEL_ID
. - Start command:
gunicorn gpt_signal_api:app --bind 0.0.0.0:$PORT
- 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.
- 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.