Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very excited! #1

Open
LPX55 opened this issue Aug 24, 2019 · 13 comments
Open

Very excited! #1

LPX55 opened this issue Aug 24, 2019 · 13 comments

Comments

@LPX55
Copy link
Collaborator

LPX55 commented Aug 24, 2019

Just wanted to stop by and show support for what you are doing. TradingView finally came to its senses and opening up webhooks is huge!

@robswc
Copy link
Owner

robswc commented Aug 24, 2019

thanks a ton! I'll definitely be adding to it and fixing issues as they come up. Sadly I started working on custom frameworks because of a lack of something like webhooks so its a little late for me :( BUT this will help tons of people that may want to forward test some prototypes!

@LPX55
Copy link
Collaborator Author

LPX55 commented Aug 24, 2019

Yeah, there were tons of projects trying to crack TV's data... now if only they allow strategies to set off alerts... boggles my mind

@robswc
Copy link
Owner

robswc commented Aug 24, 2019

oh for sure! I actually have/had a system in place to "scrape" the alerts as they came in, it was ugly... it was messy... but it worked! just not feasible for public use. I might clean it up and release it though so those on free plans can try their strats.

@mbmarx
Copy link

mbmarx commented Sep 26, 2019

Thanks a ton for the update.
Just would like to know if there is a possibility route the webhook to local system without ngrok or any paid tools .
As you know Ngrok charges are more .
Since the chart will be running in browser somehow ,can the python decode the webhook link (may be provide the system IP to receive the data) and extract the message for processing .Please provide your input.

@robswc
Copy link
Owner

robswc commented Sep 26, 2019

Hey @mbmarx Its entirely possible, just not recommended. A basic Ngrok account should be free, IIRC.

You can definitely run it without ngrok, if you just run the python file without running ngrok it will run on your local machine. You can change the IP address (0.0.0.0) to your public IP address, you can then send webhooks to your public IP address.

I found though that doing this was a bit difficult, as you needed to mess with firewalls and other problems that come with running it that way.

@LPX55
Copy link
Collaborator Author

LPX55 commented Oct 5, 2019

@mbmarx Before the webhook alerts are sent out the data is actually stored on your local cache (you can find it through Chrome Inspector under Application) if that's what you meant.

@recycletechno
Copy link

Thank for webhooks! It's really awesome. Is it possible to fire alerts/webhooks on my own custom PineScript strategies in order to receive trade signals from the strategy and forward them to exchange via ccxt for example? When I try to insert "alertcondition" instruction I always get "Cannot use 'alertcondition' in local scope." error. I think the answer is near and "the truth is out there" but do not know where exactly ))

@robswc
Copy link
Owner

robswc commented Nov 15, 2019

Hey @recycletechno ! What you're trying to do is totally possible. One of the problems you might be having is alertcondition only works on strategy pinescripts, not sure if that's your issue but it could be one of them.

The specific error you're getting means you might be trying to use alertcondition in a local scope (aka a function or indented section) perhaps you could move the alertcondition function to a non indented section? (out of a local scope into the main one)

If that doesn't work let me know!

@programjio
Copy link

@mbmarx Before the webhook alerts are sent out the data is actually stored on your local cache (you can find it through Chrome Inspector under Application) if that's what you meant.

Thank you ,this may help me a lot . Did you mean this Web Inspector - Google Chrome extension to check this.

@programjio
Copy link

Hey @mbmarx Its entirely possible, just not recommended. A basic Ngrok account should be free, IIRC.

You can definitely run it without ngrok, if you just run the python file without running ngrok it will run on your local machine. You can change the IP address (0.0.0.0) to your public IP address, you can then send webhooks to your public IP address.

I found though that doing this was a bit difficult, as you needed to mess with firewalls and other problems that come with running it that way.

Thank you for your feedback.
Can you help and share the code snippet of doing this in the local without any external tools like ngrok.

Is there a easy way to do using SSH method as well ,your thought please.

@programjio
Copy link

Thank for webhooks! It's really awesome. Is it possible to fire alerts/webhooks on my own custom PineScript strategies in order to receive trade signals from the strategy and forward them to exchange via ccxt for example? When I try to insert "alertcondition" instruction I always get "Cannot use 'alertcondition' in local scope." error. I think the answer is near and "the truth is out there" but do not know where exactly ))

Alertcondition cannot be used in any if conditions ,try it with separately

@rd350
Copy link

rd350 commented Jun 28, 2020

Hey @robswc, I have setup a dockerfile that will almost automate the setup. Could I get access to send merge request?

@dorienh
Copy link

dorienh commented May 8, 2023

Hey @mbmarx Its entirely possible, just not recommended. A basic Ngrok account should be free, IIRC.
You can definitely run it without ngrok, if you just run the python file without running ngrok it will run on your local machine. You can change the IP address (0.0.0.0) to your public IP address, you can then send webhooks to your public IP address.
I found though that doing this was a bit difficult, as you needed to mess with firewalls and other problems that come with running it that way.

Thank you for your feedback. Can you help and share the code snippet of doing this in the local without any external tools like ngrok.

Is there a easy way to do using SSH method as well ,your thought please.

Where do we set it in docker settings? It shows 0.0.0.0 for me too when it starts running (with docker-compose). Trying to run on localhost now for dev and testing, then will run on digitalocean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants