Favorite bar sizes are not stored #1571 API for modifying the Trading Platform sidebar watchlist? #1567 Russian resources translated incorrectly #1514 Drawings Overrides problem #1495 hideSymbolSearch: true is not working #1475 chart().resetData doesn't work #1471 Browser stuck on big indicator length #1453 Make floating panel responsive #1443 AD indicator problem - lines disappearing #1356 Add/Compare symbols stop displaying data #1350 Add "All" options to the timeframes at the bottom #1279 Apply studies override #1090
57 lines
2.2 KiB
HTML
57 lines
2.2 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
|
|
<title>TradingView Charting Library demo</title>
|
|
|
|
<!-- Fix for iOS Safari zooming bug -->
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
|
|
<!-- jQuery is not required to use Charting Library. It is used only for sample datafeed ajax requests. -->
|
|
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.2.min.js"></script>
|
|
<script>window.jQuery || document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"><\/script>')</script>
|
|
<script type="text/javascript" src="charting_library/charting_library.min.js"></script>
|
|
<script type="text/javascript" src="charting_library/datafeed/udf/datafeed.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
function getParameterByName(name) {
|
|
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
|
|
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
|
|
results = regex.exec(location.search);
|
|
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
|
|
}
|
|
|
|
TradingView.onready(function()
|
|
{
|
|
var widget = window.tvWidget = new TradingView.widget({
|
|
fullscreen: true,
|
|
symbol: 'AAPL',
|
|
interval: 'D',
|
|
container_id: "tv_chart_container",
|
|
// BEWARE: no trailing slash is expected in feed URL
|
|
datafeed: new Datafeeds.UDFCompatibleDatafeed("https://demo_feed.tradingview.com"),
|
|
library_path: "charting_library/",
|
|
locale: getParameterByName('lang') || "en",
|
|
// Regression Trend-related functionality is not implemented yet, so it's hidden for a while
|
|
drawings_access: { type: 'black', tools: [ { name: "Regression Trend" } ] },
|
|
disabled_features: ["use_localstorage_for_settings"],
|
|
enabled_features: ["study_templates"],
|
|
charts_storage_url: 'http://saveload.tradingview.com',
|
|
charts_storage_api_version: "1.1",
|
|
client_id: 'tradingview.com',
|
|
user_id: 'public_user_id'
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body style="margin:0px;">
|
|
<div id="tv_chart_container"></div>
|
|
</body>
|
|
|
|
</html>
|