Last active
November 3, 2025 11:42
-
-
Save erysaj/ee1b40e8b8e34ca74a0bb30ddae35009 to your computer and use it in GitHub Desktop.
Embed TradingView chart widget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| html, body { | |
| height: 100%; | |
| width: 100%; | |
| } | |
| </style> | |
| <title>Chart Demo</title> | |
| </head> | |
| <body> | |
| <!-- TradingView Widget BEGIN --> | |
| <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script> | |
| <script type="text/javascript"> | |
| new TradingView.widget({ | |
| "autosize": true, | |
| "symbol": "BITSTAMP:BTCUSD", | |
| "interval": "D", | |
| "timezone": "Etc/UTC", | |
| "theme": "Light", | |
| "style": "1", | |
| "locale": "en", | |
| "toolbar_bg": "#f1f3f6", | |
| "enable_publishing": false, | |
| "allow_symbol_change": true, | |
| "hideideas": true | |
| }); | |
| </script> | |
| <!-- TradingView Widget END --> | |
| </body> | |
| </html> |
Thq so much for this. integrated this code into streamlit webapp.
Is there a way to assign a variable to the "symbol" in <script>
This gives us a beautiful way to make this code dynamic based on the text input.
Thq so much for this. integrated this code into streamlit webapp. Is there a way to assign a variable to the "symbol" in <script>
This gives us a beautiful way to make this code dynamic based on the text input.
If you us PHP, yes, there is a way you can assign a variable to the symbol
I want to use custom build indicators in that widget how can i do that custom build Indicator means that is published on tradingview indicators list but not showing on the Api indicator list please help me
can't customize panel and toolbar with this one
Nope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does someone know why adding props below do not affect?
'enabled_features': [
'header_saveload',
]