lth-elm/TradingView-Webhook-Trading-Bot

launching

philobbe opened this issue · 1 comments

Hello
This bot looks really great and I wanted to test it. The documentation is really good but please what is the installing and launching process ? Because I installed it but it doesn't run and I have no console error...

Thanks for your help.

Hello This bot looks really great and I wanted to test it. The documentation is really good but please what is the installing and launching process ? Because I installed it but it doesn't run and I have no console error...

Thanks for your help.

Hello @philobbe, you're right I should add the installing and launching process.

Since it's a flask app you will need to run the following lines in your folder with PowerShell :

> $env:FLASK_APP = "app"
> flask run

You can view the quickstart Flask documentation for more details such as Debug Mode or how to run it with CMD or Bash. This is great if you want to run some tests with Insomnia however in tradingview you will need to set a link to your webhook which can't technically be your 'localhost' so you might want to use ngrok or host your bot on Heroku with the integrated Procfile to get an url.

For a better and full understanding of the deployment I recommend you to watch this video from Part Time Larry, my script is actually based on this video and everything is the same for the launching and deployment.

Hope this will help you ;)