Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<title>Page Title</title>
<!-- TradingView Widget BEGIN -->
<script type="text/javascript" src=""></script>
<script type="text/javascript">
TradingView.onready(function() {
var widget = window.tvWidget = new TradingView.widget({
"width": 980,
"height": 610,
"symbol": "NASDAQ:AAPL",
"interval": "D",
"timezone": "Etc/UTC",
"theme": "White",
"style": "1",
"locale": "en",
"toolbar_bg": "#f1f3f6",
"enable_publishing": false,
"allow_symbol_change": true,
"hideideas": true,
"show_popup_button": true,
"popup_width": "1000",
"popup_height": "650"
widget.onChartReady(function() {
widget.subscribe('onTick', function (res, res1) {
console.log("New Tick!");
<!-- TradingView Widget END -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.