Case study · 03
MyAlert AI
Real-time, AI-assisted trading decision support. TradingView alerts become structured, reviewable decisions delivered to Telegram.
- Type
- Real-time AI systems, Python automation
- Status
- Active alerting, ongoing research
- Version
- v1.0.68
- Scope
- BTCUSDT, ETHUSDT, SOLUSDT · 1m, 3m, 5m
01 · Overview
MyAlert AI receives TradingView alerts, processes them in Python, evaluates each setup with deterministic rules and an AI review, and sends the final decision to Telegram: TAKE_BUY, TAKE_SELL, or WAIT, with entry, stop-loss, and take-profit levels tied to that decision. It supports a human reviewer and does not place live orders.
02 · Problem
A raw chart alert says only that something happened. Turning it into a decision takes context, consistent rules, and risk levels, and each result has to be reviewable afterward. MyAlert AI converts raw alerts into structured records that show what was decided and why.
03 · Architecture
From alert to decision.
-
TradingView
Alerts fire on BTCUSDT, ETHUSDT, and SOLUSDT across the 1m, 3m, and 5m timeframes.
-
Python processing
A FastAPI backend validates and normalizes each webhook, then queues it for processing.
-
Decision evaluation
Rules, AI review, and plan checks produce a single final decision.
-
Telegram
The decision and its levels are delivered as an alert message for human review.
Inside decision evaluation
- Rules
- AI review
- Plan check
- TAKE_BUY · TAKE_SELL · WAIT
ML shadow A separate prediction is recorded alongside the alert. It never feeds the final decision.
Who decides what
Rules, AI, and ML shadow stay separate.
The alert in practice
A real Telegram alert.
Reading the message
- Rule Decision
- The outcome of the deterministic rules.
- My Decision, Confidence, Reason
- The AI evaluation’s decision, with its confidence and reason.
- Entry, SL, TP1
- Levels tied to the final decision.
- Source
- A marker for the AI-evaluation path that produced the decision. It is not the ML output.
- ML Decision, Confidence, Status
- The ML shadow prediction, reported separately from the decision above.
04 · Engineering
Structured for human review.
- Alert ingestion
- Webhooks are normalized and placed in a queue that a background worker drains, one decision per alert. Only recognized signal types are accepted; anything else is rejected with an error.
- Validation
- AI output is checked against the allowed decisions before it is used. If the AI call is skipped or fails, the result falls back to the rule decision and the reason is recorded.
- Decision handling
- AI review is selective and rate-gated per symbol and timeframe. WAIT setups are stored and reviewed later, and a WAIT can upgrade to a TAKE.
- Risk levels
- Entry, stop-loss, and take-profit are built for the final decision and checked against recent candles. A stop already crossed or a target already reached makes the plan stale, and the decision becomes WAIT.
- Delivery
- Final decisions are sent as Telegram messages for human review. Delivery is not guaranteed.
- Records
- Processed alerts are written to a log with timing and decision fields. A failed write is reported only in diagnostic output, so recording is not guaranteed. Where enabled, decision-replay records capture the inputs and outputs of TAKE candidates for later review.
05 · Quality & validation
Checked at the payload, the decision, and the plan.
- Setup parity
- A documented 49/49 parity result between TradingView Pine setup events and the Python signal engine. It covers setup detection only, not AI decisions, accuracy, or end-to-end execution.
- Payload checks
- Webhook signals are validated, AI output is validated, and trade plans are validated before a TAKE is released.
- Replay
- Where enabled, decision-replay records store the inputs and outputs of TAKE candidates so a decision can be reviewed afterward.
- Health and diagnostics
- The signal engine writes health output for inspection, and processing events are logged for diagnosis. These support troubleshooting. They are not automatic recovery.
06 · Current status
Active alerting. Research and validation continue.
What MyAlert AI is not
- It does not place live orders with a broker or exchange.
- It does not guarantee alert delivery or recover automatically from failures.
- It makes no claim of profitability, predictive accuracy, or validated trading expectancy.
- ML shadow predictions are research output and are not used to make the final decision.