数据加载事件之前的TradingView

时间:2019-01-25 13:24:41

标签: trading tradingview-api

我已经在官方文档中查看了100多次,但是找不到解决方案。我正在使用v 1.13库和自定义UDFDataFeed。我面临的问题是,在发送历史记录请求(开始从服务器加载新数据)之前,以及在完成添加指标之后,我需要删除图表中包含的所有自定义指标。有什么活动可以订阅以解决此问题吗?

这是我正在使用的小部件构造器

var widget = window.tvWidget = new TradingView.widget({
            // debug: true, // uncomment this line to see Library errors and warnings in the console
            fullscreen: true,
            symbol: self.subject,
            interval: '15',
            container_id: "coins_trading_view_coin",
            datafeed: new Datafeeds.UDFCompatibleDatafeed(window.base_url,900000),
            library_path: "/charting_library/",
            locale: self.getParameterByName('lang') || "en",
            indicators_file_name: window.base_url+"/charting_library/custom_indicators.js",
            timezone : window.timezone,
            disabled_features: ["use_localstorage_for_settings","header_compare","header_chart_type"],
            enabled_features: [""],
            charts_storage_url: 'https://saveload.tradingview.com',
            charts_storage_api_version: "1.1",
            client_id: 'tradingview.com',
            user_id: 'public_user_id',
            theme: self.getParameterByName('theme'),
            allow_symbol_change : false,
            hide_side_toolbar : true,
            overrides: {
                "mainSeriesProperties.candleStyle.upColor": "#0C8912",
                "mainSeriesProperties.candleStyle.downColor": "#C23A40"
              },
            studies_overrides: {
                "volume.volume.color.0": "#BFBFBF",
                "volume.volume.color.1": "#BFBFBF",
                "volume.volume.transparency": 70,
                "volume.show ma": false,
                "volume.volume ma.plottype" : "line",
            },  
            time_frames: []  
            });

0 个答案:

没有答案