Automated Execution: TradingView Alerts → Tradovate using AWS La

I’ve built a fully automated pipeline that takes live TradingView alerts and turns them into real orders in Tradovate. Here’s how it works, step by step (I will provide a video on it):
PineScript Alerts
PineScript Alerts
- My indicator/strategy in TradingView fires alert() with a JSON payload (symbol, side, qty, price, ATR, ENV).
Webhook to AWS- Alerts hit an API Gateway endpoint in AWS, invoking a Lambda function.
- Parse the JSON from TradingView.
- Calculate Stop‐Loss & Take‐Profit using ATR.
- Authenticate to the Tradovate API (demo & live environments).
- Place an OCO order (placeOSO) with proper bracket legs.
- Send a confirmation message to my Telegram channel.
- Auth: POST /auth/accesstokenrequest → accessToken
- List accounts: GET /account/list → find accountId
- Place OCO: POST /order/placeOSO with entry, SL, TP
- Local smoke tests of Telegram bot.
- Lambda console test events for sample payloads.
- CloudWatch logs for debugging & alerts on errors.
- Zero manual steps from signal to fill.
- Consistent risk management via ATR‐based SL/TP.
- Clear audit trail: logs in AWS + Telegram notifications.
- Educational resource for anyone building similar setups
Feel free to ask questions or suggest improvements! Please leave comments.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.