Files
ai/intro.html
Eugene bb62fbc1d4 Disable study_templates by default #682
click "Symbol Info..." cause exception and can not close #680
Add Momentum to Library #677
onTick doesn't work #670
Overnight daily bars are displayed incorrectly on timescale #661
Bar marks are shifted #654
More data is requested when changing a timezone #652
Bar marks are moved to the last bar when switching time zone #651
Missing data #646
Double click on bar marks shows empty dialog (unstable only) #644
Option to disable savings of drawings created with API #643
Option to disable selection of drawings created with API #642
Add API for text drawings #640
Create a featureset to save favorite chart styles and study templates (+ watch in terminal) to local storage #626
Featureset show_dialog_on_snapshot_ready doesn't work #625
Implement the API call to inject custom CSS #619
Add executeActionById method #618
Two-columned layout is not working #599
Request for study templates persists even of they are switched off #598
Widget Event method callbacks for onIntervalChange, onAutoSaveNeeded, saveChart are not executed sometimes and intermittent in IE. #597
Option to remove market status indicator #589
Chart doesn't load on firefox #587
Cannot Retrieve Current Symbol from widget #585
drowing problem with lines end on mousemove, reproduced on official site #577
HotKeys support and customization of hotkeys #568
Return "Remove All Drawing Tools" #556
Empty bar for drawing instruments #551
Screen shot API function #548
Crosshair remain white points between sections #533
Create a line like (Support and Resistance) and this line wont be included in the Save State Chart #527
Chart doesn't unsubscribe from datafeed on destroy #512
Tickmarks in future are cleared after scrolling for more data #489
Сlick outside the chart widget does not close popups #465
Webkit bug use isFavorite of chart type #460
Auto Focus when mouse cursor is inside the chart. #452
Allow drawing rectangles and other 2 points shapes #448
Create horizontal break line with onContextMenu() #435
Implement an ability to set zOrder for created shapes #413
Resize Chart when its container is resized #372
Support for showing split, dividends, and earnings... #286
Disable tools #151
Significant memory leak on iframe reload #120
2015-09-28 11:18:53 +03:00

77 lines
2.4 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">
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.2.min.js"></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">
TradingView.onready(function()
{
var widget = new TradingView.widget({
fullscreen: true,
symbol: 'AA',
interval: 'D',
container_id: "tv_chart_container",
// BEWARE: no trailing slash is expected in feed URL
datafeed: new Datafeeds.UDFCompatibleDatafeed("http://demo_feed.tradingview.com"),
library_path: "charting_library/",
locale: "en",
// Regression Trend-related functionality is not implemented yet, so it's hidden for a while
drawings_access: { type: 'black', tools: [ { name: "Regression Trend" } ] },
enabled_features: ["chart_property_page_trading"],
disabled_features: ["use_localstorage_for_settings"],
charts_storage_url: 'http://saveload.tradingview.com',
charts_storage_api_version: "1.1",
client_id: 'tradingview.com',
user_id: 'public_user_id'
});
widget.onChartReady(function() {
var position = widget.createPositionLine()
.onReverse(function(text) {
})
.onClose(function(text) {
})
.setText("PROFIT: 71.1 (3.31%)")
.setQuantity("8.235")
.setLineLength(3);
position.setPrice(position.getPrice() - 2);
var order = widget.createOrderLine()
.onCancel(function(text) {
})
.setText("STOP: 73.5 (5,64%)")
.setLineLength(3)
.setQuantity("2");
order.setPrice(order.getPrice() - 2.5);
widget.createExecutionShape()
.setText("@1,320.75 Limit Buy 1")
.setTextColor("rgba(255,0,0,0.5)")
.setArrowSpacing(25)
.setArrowHeight(25)
.setArrowColor("#F00")
.setTime(new Date("3 Dec 2014 00:00:00 GMT+0").valueOf() / 1000)
.setPrice(15.5);
});
});
</script>
</head>
<body style="margin:0px;">
<div id="tv_chart_container"></div>
</body>
</html>