VERSION 1.12 @ 2018-02-14 07:05:47.033501
Cannot read property 'contains' of null #2442 Terminal: custom sorting for account manager tables #2344 Datafeed not closed after removing chart #2270 order.setPrice() has stopped working #2267 Volume in DOM rounded to 0 #2255 Error on bars request and update order lines #2237 Console error: Uncaught (in promise) formatter not received #2228 DOME doesn't work in new version #2211 Add featureset to hide toolbars by default #2209 Add possibility to move studies through z-order #2187 Unexpected resolution values in getBars #2179 Session breaks line is stuck to the left on reload #2153 Typescript declaration has mistakes #2144 Terminal: cannot specify step less than 1 #2141 Namespace the types in charting_library.d.ts #2137 Widget logo showing momentarily on paid account #2132 Add API to apply overrides for created studies #2098 Baseline chart style #2097 How to hide legend "Data Provided by ICE Data services" #2046 Stoch RSI Calculation #2038 Customize loading screen #2012 Supertrend indicator #1950 Translations in market details widget #1946 "Track time" chart setting #1918 Add tabs for positions #1906 Trading Terminal: Notifications Log #1896 Previous Close Price Line #1843 Set Overlay/Compare styles using createStudy/overrides and applyStudiesOverrides #1812 Session under Symbol info is displaying wrong trading interval(s)? #1787 Add "Go to" specific date #1753 Add session breaks #1752 Allow users to specify a volume for the Long/Short Position drawing tools #1691 Add API to use own charts save/load adapter #1679 Drawing toolbar not available in mobile #1673 Typescript definitions #1591 Support for symbols containing lowercase letters #1581 createMultipointShape long_position stop&profit setting #1459 Cannot change awesome oscillator width #1213 New adaptive drawings panel #1145 Edit shapes, studies and series #1101 Hide an indicator with API #1025 VWAP INDICATOR #106
This commit is contained in:
56
test.html
56
test.html
@@ -8,12 +8,9 @@
|
||||
<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" src="datafeeds/udf/dist/polyfills.js"></script>
|
||||
<script type="text/javascript" src="datafeeds/udf/dist/bundle.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -33,7 +30,8 @@
|
||||
var udf_datafeed = new Datafeeds.UDFCompatibleDatafeed("https://demo_feed.tradingview.com");
|
||||
|
||||
var widget = window.tvWidget = new TradingView.widget({
|
||||
fullscreen: true,
|
||||
// debug: true, // uncomment this line to see Library errors and warnings in the console
|
||||
fullscreen: true,
|
||||
symbol: 'AAPL',
|
||||
interval: 'D',
|
||||
toolbar_bg: '#f4f7f9',
|
||||
@@ -112,7 +110,7 @@
|
||||
alert('Saved');
|
||||
})
|
||||
})
|
||||
.append($('<span>save</span>'));
|
||||
.append('<span>save</span>');
|
||||
|
||||
widget.createButton()
|
||||
.attr('title', "Load chart")
|
||||
@@ -121,35 +119,35 @@
|
||||
widget.load(savedWidgetContent);
|
||||
}
|
||||
})
|
||||
.append($('<span>load</span>'));
|
||||
.append('<span>load</span>');
|
||||
|
||||
widget.createButton()
|
||||
.attr('title', "Load chart")
|
||||
.on('click', function (e) {
|
||||
widget.load(referenceChart);
|
||||
})
|
||||
.append($('<span>load reference</span>'));
|
||||
.append('<span>load reference</span>');
|
||||
|
||||
widget.createButton()
|
||||
.attr('title', "Load chart")
|
||||
.on('click', function (e) {
|
||||
widget.load(referenceChart2);
|
||||
})
|
||||
.append($('<span>load reference 2</span>'));
|
||||
.append('<span>load reference 2</span>');
|
||||
|
||||
|
||||
|
||||
widget.createButton()
|
||||
.on('click', function (e) {
|
||||
savedTemplate = widget.createStudyTemplate({saveInterval: false});
|
||||
savedTemplate = widget.activeChart().createStudyTemplate({saveInterval: false});
|
||||
})
|
||||
.append($('<span>save template (-i)</span>'));
|
||||
.append('<span>save template (-i)</span>');
|
||||
|
||||
widget.createButton()
|
||||
.on('click', function (e) {
|
||||
savedTemplate = widget.createStudyTemplate({saveInterval: true});
|
||||
savedTemplate = widget.activeChart().createStudyTemplate({saveInterval: true});
|
||||
})
|
||||
.append($('<span>save template (+i)</span>'));
|
||||
.append('<span>save template (+i)</span>');
|
||||
|
||||
widget.createButton()
|
||||
.on('click', function (e) {
|
||||
@@ -157,7 +155,7 @@
|
||||
widget.chart().applyStudyTemplate(savedTemplate);
|
||||
}
|
||||
})
|
||||
.append($('<span>apply template</span>'));
|
||||
.append('<span>apply template</span>');
|
||||
|
||||
|
||||
|
||||
@@ -165,14 +163,14 @@
|
||||
.on('click', function (e) {
|
||||
widget.setSymbol("F", '2D');
|
||||
})
|
||||
.append($('<span>F, 2D</span>'));
|
||||
.append('<span>F, 2D</span>');
|
||||
|
||||
|
||||
widget.createButton()
|
||||
.on('click', function (e) {
|
||||
widget.chart().clearMarks();
|
||||
})
|
||||
.append($('<span>Clear marks</span>'));
|
||||
.append('<span>Clear marks</span>');
|
||||
|
||||
widget.createButton()
|
||||
.attr('title', "Add item")
|
||||
@@ -185,7 +183,7 @@
|
||||
}
|
||||
);
|
||||
})
|
||||
.append($('<span>+BB</span>'));
|
||||
.append('<span>+BB</span>');
|
||||
|
||||
widget.createButton({align: "right"})
|
||||
.attr('title', "Add item")
|
||||
@@ -197,7 +195,7 @@
|
||||
}
|
||||
);
|
||||
})
|
||||
.append($('<span>+MA</span>'));
|
||||
.append('<span>+MA</span>');
|
||||
|
||||
widget.createButton({align: "right"})
|
||||
.attr('title', "Add item")
|
||||
@@ -210,42 +208,38 @@
|
||||
{"plot.color.0" : "#FF0000"}
|
||||
);
|
||||
})
|
||||
.append($('<span>+MA++</span>'));
|
||||
.append('<span>+MA++</span>');
|
||||
|
||||
widget.createButton({align: "right"})
|
||||
.attr('title', "Add item")
|
||||
.on('click', function (e) {
|
||||
widget.chart().createStudy('Stochastic', false, false, [12, 3, 3], null, {"%d.color" : "#000000", "%k.color" : "#00FF00"});
|
||||
})
|
||||
.append($('<span>+Stoch</span>'));
|
||||
.append('<span>+Stoch</span>');
|
||||
|
||||
|
||||
widget.createButton()
|
||||
.on('click', function (e) {
|
||||
widget.chart().createOrderLine();
|
||||
})
|
||||
.append($('<span>new order</span>'));
|
||||
.append('<span>new order</span>');
|
||||
|
||||
widget.createButton()
|
||||
.on('click', function (e) {
|
||||
widget.chart().removeAllStudies();
|
||||
})
|
||||
.append($('<span>rm all studies</span>'));
|
||||
.append('<span>rm all studies</span>');
|
||||
|
||||
widget.createButton()
|
||||
.on('click', function (e) {
|
||||
widget.chart().removeAllShapes();
|
||||
})
|
||||
.append($('<span>rm all shapes</span>'));
|
||||
.append('<span>rm all shapes</span>');
|
||||
|
||||
widget.onGrayedObjectClicked(function(x) {
|
||||
alert("You are not permitted to use " + x.name + "(" + x.type + ")");
|
||||
});
|
||||
|
||||
widget.subscribe('onIntervalChange', function(x) {
|
||||
console.log("onIntervalChange: " + x);
|
||||
});
|
||||
|
||||
widget.onShortcut("alt+s", function() {
|
||||
widget.chart().executeActionById("symbolSearch");
|
||||
});
|
||||
@@ -257,13 +251,13 @@
|
||||
to: Date.UTC(2013, 3, 3) / 1000
|
||||
});
|
||||
})
|
||||
.append($('<span>set view</span>'));
|
||||
.append('<span>set view</span>');
|
||||
|
||||
widget.createButton()
|
||||
.on('click', function (e) {
|
||||
console.log(widget.getVisibleRange());
|
||||
console.log(widget.activeChart().getVisibleRange());
|
||||
})
|
||||
.append($('<span>get range</span>'));
|
||||
.append('<span>get range</span>');
|
||||
|
||||
var position = widget.chart().createPositionLine()
|
||||
.onReverse(function(text) {
|
||||
|
||||
Reference in New Issue
Block a user