TradingView Strategy Alert Webhooks with Heroku, ngrok, Discord, Alpaca, and Python Flask
Sign Up For TradingView
https://www.tradingview.com/gopro/?offer_id=10&aff_id=22256
In this video, we first show how to create an alert on the Bollinger Band Breakout Strategy PineScript in TradingView. We customize the message sent by the alert so that is in a structured JSON format that can be posted via webhook. We then build a Python/Flask application that is able to accept this JSON message and process it. We then use the message to place trades using the Alpaca stock trading API. Once our application works locally, we deploy it to the cloud using Heroku. We also demonstrate how to post notifications to a Discord bot! Finally, we also show how to map an ngrok URL to our localhost if we want to use our local computer as a server.
Source Code: https://github.com/hackingthemarkets/tradingview-alpaca-strategy-alert-webhook-heroku
Buy me a Drink: https://www.buymeacoffee.com/parttimelarry
Sign Up For TradingView: https://www.tradingview.com/gopro/?offer_id=10&aff_id=22256
Sign Up For Binance: https://www.binance.us/?ref=35201287
Books: https://www.amazon.com/shop/parttimelarry
Follow Me:
Twitter: https://twitter.com/PartTimeLarry
YouTube: https://youtube.com/PartTimeLarry
Website: https://hackingthemarkets.com