You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
2.2 MiB

webpackJsonp([0],[function(t,e,i){(function(t){"use strict";var e,o,n,s,r,a,l,h,c,d,p,u,_,f,m,g,v,y,b,w,S,T,C,x,P;i(3),e=i(4),i(5),i(81),i(273),o=i(274),n=i(100).Action,s=i(275).ChartSaver,r=i(277),a=i(278),l=i(36),h=i(94),c=h.formatterOptions,d=i(279),p=i(280),i(285),u=i(286),_=i(540),f=i(571),m=i(579),g=i(604),v=i(291).UndoHistory,y=i(616),b=i(617),i(612),i(621),w=i(334),S=!!urlParams.indicatorsFile,T=$.Deferred(),C=$.Deferred(),$.when(T,C).done(function(){ChartApiInstance.start()}),S?$.getScript(urlParams.indicatorsFile).done(function(){void 0!==window.__customIndicators&&window.isArray(window.__customIndicators)&&(window.PineJS=i(605),JSServer.studyLibrary=JSServer.studyLibrary.concat(window.__customIndicators),console.log("{0} custom indicators loaded.".format(window.__customIndicators.length)),T.resolve())}).fail(function(t){console.warn("Error loading custom indicators @ `{0}`: {1} ({2}) ".format(urlParams.indicatorsFile,t.statusText,t.status)),T.resolve()}):T.resolve(),window.widgetReady=function(t){l.subscribe("onChartReady",t)},window.customizeUI=function(t){window.applyStudiesOverrides(t.studiesOverrides),window.__defaultsOverrides=t.defaultsOverrides},window.applyStudiesOverrides=function(t){if(t){for(var e in t)y.setProperty(e,t[e]);y.applyDefaultsToFactoryDefaults(Object.keys(t))}},window.applyOverrides=function(t){$.extend(!0,window.__defaultsOverrides,t),window.applyDefaultsOverrides(TradingView.defaultProperties.chartproperties),window.applyDefaultOverridesToLinetools(),window.chartWidgetCollection.applyOverrides(t)},window.is_authenticated=!1,x=function(){var e,i,n,v,y,S,T,x,P,L,k,I,E,A,V;if(!Modernizr.canvas||!Modernizr.canvastext)throw Error("Charting library cannot be running under this browser");t.setEnabled("charting_library_debug_mode","true"===urlParams.debug),e=window.headerChartPanel=$(".header-chart-panel"),i=$("#library-container"),n=$(".tv-header"),t.enabled("remove_library_container_border")&&(i.css("border","0px"),i.css("padding","1px")),window.customizeUI({studiesOverrides:urlParams.studiesOverrides?JSON.parse(urlParams.studiesOverrides):void 0,defaultsOverrides:JSON.parse(urlParams.overrides)}),urlParams.numeric_formatting=urlParams.numeric_formatting&&JSON.parse(urlParams.numeric_formatting),urlParams.numeric_formatting&&"string"==typeof urlParams.numeric_formatting.decimal_sign&&(c.decimalSign=urlParams.numeric_formatting.decimal_sign[0]),t.enabled("saveload_storage_customization")&&(void 0!==urlParams.chartsStorageUrl&&urlParams.chartsStorageUrl&&void 0!==urlParams.clientId&&urlParams.clientId?o.initialize(urlParams.clientId,urlParams.userId,urlParams.chartsStorageUrl,urlParams.chartsStorageVer||"1.0"):(t.setEnabled("saveload_storage_customization",!1),t.setEnabled("header_saveload",!1))),window.ChartApiInstance=new g(window.parent[urlParams.uid].datafeed),window.parent[urlParams.uid].customFormatters&&(window.parent[urlParams.uid].customFormatters.timeFormatter&&(h.customFormatters.timeFormatter=window.parent[urlParams.uid].customFormatters.timeFormatter),window.parent[urlParams.uid].customFormatters.dateFormatter&&(h.customFormatters.dateFormatter=window.parent[urlParams.uid].customFormatters.dateFormatter)),urlParams.autoSaveDelay&&ChartApiInstance.setAutoSaveDelay(urlParams.autoSaveDelay),ChartApiInstance.setTimeFramesList(JSON.parse(urlParams.timeFrames)),ChartApiInstance.setStudiesAccessController(ChartApiInstance.createStudiesAccessController(urlParams.studiesAccess)),t.enabled("narrow_chart_enabled")&&$(".chart-page").css("min-width","240px"),t.enabled("use_localstorage_for_settings")&&TVSettings.sync(),v=urlParams.chartContent?JSON.parse(urlParams.chartContent).json:void 0,y=urlParams.interval||"D",S={jqParent:$("#chart-area"),onResize:function(o){var s,r,a,l,h,c,d=$(document.body).height()-2;i.height(d),s=$("#footer-chart-panel"),r=s&&s.is(":visible")?s.outerHeight():0,a=$("#bottom-area"),l=a&&a.is(":visible")?a.outerHeight():0,h=t.enabled("header_widget")&&e.is(":visible")?e.outerHeight():0,c=d-h-n.outerHeight()-l-r,c=Math.max(50,c),o.height(c)},padding:t.enabled("border_a