tradingView--K线图 使用

特斯比特 2021-11-19 10:12:21

tradingView--K线图 使用

    • 相关链接
    • 实现dome
    • 配置
            • index.js
            • black_professional.js
            • black_simple.js
            • dark_professional.js
            • dark_simple.js
            • tabs.js

实现dome

代码没有删减直接复制不可用仅供参考

<template>
  <div>
    <div id&#61;'tv_chart_container' style&#61;'width: 100%; height: 420px'></div>
  </div>
</template>

<style scoped>
iframe {
  height: 460px !important;
}
</style>
<script>
import $ from 'jquery';
import markets from '&#64;/api/currencyMarket.js';
import { mapState } from 'vuex';
import configs from './config';
import tabsConfig from './config/tabs';
let aa &#61; null;
let config
//  import TvTop from './tvTop.vue';
export default {
  name: 'tv',
  //  components: { TvTop },
  props: {
  },
  data() {
    return {
      widget: null,
      symbolInfo: null,
      feed: null,
      wsEx: null,
      ws: null,
      reals: null,
      lists: [],
      newData: '',
      priceScale: 100000,
      histime: '',
      socketTypr: false,
      bg_: '#fff',
      isDay: '',
      grid: '#cbcbcb',
      cross: '#cbcbcb',
      onRealtimeCallback: null, // websocket数据回调
    };
  },
  created() { },
  computed: {
    ...mapState({
      colorVersion: (state) &#61;> state.coin.coinPage.colorVersion, // 币币页面颜色版本
      KVersion: (state) &#61;> state.coin.coinPage.KVersion, // /基础版专业版深度图 btn
      newCoinInfo: (state) &#61;> state.market.newCoinInfo, // 当前展示交易对信息
      klineData: (state) &#61;> state.market.klineData, // k线实时数据推送
      tradingPrecision: (state) &#61;> state.market.tradingPrecision,
    }),
    lang() {
      if (this.$store.state.public.lang &#61;&#61; 'zh_CN') {
        return 'zh';
      } else {
        return this.$store.state.public.lang;
      }
    },
    // 币对名称
    symbol() {
      // 监听交易对
      return this.newCoinInfo.exchangeCoin;
    },
    // 当前交易区信息
    exchangeCoin() {
      return this.symbol.split('/')[1];
    },
    // 当前币种信息
    coinName() {
      return this.symbol.split('/')[0];
    },
    // 小数位
    decimal() {
      let deci &#61; 1;
      if (this.tradingPrecision[this.exchangeCoin]) {
        let num &#61; Number(
          this.tradingPrecision[this.exchangeCoin][this.coinName]['price']
        );
        for (let i &#61; 0; i < num; i&#43;&#43;) {
          deci *&#61; 10;
        }
      } else {
        deci &#61; 100;
      }
      return deci;
    },
  },
  watch: {
    klineData(val) {
      try {
        aa({
          time: Number(val.time * 1000),
          close: Number(val.close),
          open: Number(val.open),
          high: Number(val.high),
          low: Number(val.low),
          volume: Number(val.vol),
        });
      } catch (e) { }
    },
    symbol(a, b) {
      // 监听交易对
      if (a !&#61; b && b !&#61; '') {
        this.widget.setSymbol(
          a,
          localStorage.getItem('tim'),
          function onReadyCallback() { }
        ); // 切换币种
        //  this.$store.state.symbol&#61;b
      }
    },
    $route: {
      handler(val, oldval) {
        console.log(val);// 新路由信息
        console.log(oldval);// 老路由信息
      },
      //  深度观察监听
      deep: true,
    },
    'newCoinInfo.exchangeCoin'() {
      this.updateWidget();
    },
    // 监听颜色切换
    colorVersion() {
      if (localStorage.getItem('tradingview.chartproperties')) localStorage.setItem('tradingview.chartproperties', '')
      if (localStorage.getItem('tradingview.chartproperties.mainSeriesProperties')) localStorage.setItem('tradingview.chartproperties.mainSeriesProperties', '')

      this.updateWidget();
    },
    // 切换基础版和专业版的按钮
    KVersion(val) {
      if (val !&#61; 2) {
        this.updateWidget();
      }
    },
  },
  mounted() {
    if (this.KVersion !&#61; 2) this.createWidget();
  },
  destroyed() {
    if (this.socket) {
      this.socket.disconnect();
    }
    let type &#61; localStorage.getItem('type');
    this.$wsSend.getKline('unsub', type, this.symbol);
    this.removeWidget();
  },
  beforeDestroy() { },

  methods: {
    format(shijianchuo) {
      // shijianchuo是整数否则要parseInt转换
      var time &#61; new Date(shijianchuo);
      var y &#61; time.getFullYear();
      var m &#61; time.getMonth() &#43; 1;
      var d &#61; time.getDate();
      var h &#61; time.getHours();
      var mm &#61; time.getMinutes();
      var s &#61; time.getSeconds();
      return (
        y &#43;
        '-' &#43;
        this.add0(m) &#43;
        '-' &#43;
        this.add0(d) &#43;
        ' ' &#43;
        this.add0(h) &#43;
        ':' &#43;
        this.add0(mm) &#43;
        ':' &#43;
        this.add0(s)
      );
    },
    add0(m) {
      return m < 10 ? '0' &#43; m : m;
    },
    connect(real) {
      // 封装推送数据
      aa &#61; real;
      this.socketTypr &#61; true;
      let type &#61; localStorage.getItem('type');
      this.$wsSend.getKline('sub', type, this.symbol);
    },
    createWidget() {
      if (this.colorVersion &#61;&#61; 'dark') {
        if (this.KVersion &#61;&#61; 0) {//简版
          config &#61; configs.dark_simple;
        } else {
          config &#61; configs.dark_professional;
        }
      } else {
        if (this.KVersion &#61;&#61; 0) {//简版
          config &#61; configs.black_simple;
        } else {
          config &#61; configs.black_professional;
        }
      }

      let _this &#61; this;
      this.$nextTick(function () {
        let widget &#61; (_this.widget &#61; new TradingView.widget({
          symbol: _this.symbol,
          interval: localStorage.getItem('tim') || 15,
          fullscreen: false, // 是否占用视图所有空间
          //  preset: 'mobile',
          custom_css_url: _this.colorVersion &#61;&#61;&#61; 'bright' ? 'white.css' : 'block.css',
          toolbar_bg: _this.colorVersion &#61;&#61;&#61; 'bright' ? '#FFFFFF' : '#171B2B', // 背景色
          loading_screen: {
            backgroundColor:
              _this.colorVersion &#61;&#61; 'bright' ? '#FFFFFF' : '#171B2B',
            foregroundColor:
              _this.colorVersion &#61;&#61; 'bright' ? '#FFFFFF' : '#171B2B',
          },
          debug: false,
          autosize: true,
          container_id: 'tv_chart_container',
          datafeed: _this.createFeed(),
          library_path: 'charting_library-master/charting_library/',
          locale: _this.lang,
          charts_storage_api_version: '1.1',
          timezone: 'Asia/Shanghai',
          // 配置项
          ...config,
        }));
        widget.headerReady().then(function () {
          if (_this.KVersion &#61;&#61; 0) {//简版
            // 图表方法
            _this.MALine5 &#61; widget.activeChart().createStudy('Moving Average', false, false, [5], null);
            _this.MALine10 &#61; widget.activeChart().createStudy('Moving Average', false, false, [10], null);
            _this.MALine30 &#61; widget.activeChart().createStudy('Moving Average', false, false, [30], null);
          } else {//专业版
            // 图表方法
            _this.MALine5 &#61; widget.activeChart().createStudy('Moving Average', false, false, [5], null);
            _this.MALine10 &#61; widget.activeChart().createStudy('Moving Average', false, false, [10], null);
            _this.MALine30 &#61; widget.activeChart().createStudy('Moving Average', false, false, [30], null);
            _this.MALine60 &#61; widget.activeChart().createStudy('Moving Average', false, false, [60], null);
          }
          
          let interval &#61; localStorage.getItem('type') || '15min';
          let timInterval &#61; localStorage.getItem('tim') || '15';
          let buttonArr &#61; tabsConfig;
          buttonArr.forEach((v) &#61;> {
            var button &#61; widget.createButton();
            button.setAttribute('title', v.text);
            button.textContent &#61; v.text;
            button.classList.add('mydate');

            if (v.text &#61;&#61; interval) {
              button.classList.add('s_active');
              localStorage.setItem('tim', timInterval); // 默认为15分钟
              localStorage.setItem('type', interval); // 默认为15
            }

            button.addEventListener('click', function (e) {

              let dom &#61; e.currentTarget.parentNode.parentNode.parentNode.childNodes;
              for (var i &#61; 0; i < dom.length; i&#43;&#43;) {
                if (dom[i].hasChildNodes()) {
                  if (dom[i].childNodes[0].childNodes[0].className.indexOf('s_active') > -1) {
                    dom[i].childNodes[0].childNodes[0].className &#61; dom[i].childNodes[0].childNodes[0].className.replace('s_active', '');
                  }
                }
              } // 去掉15分钟的
              $(e.target)
                .addClass('s_active')
                .closest('div.space-single')
                .siblings('div.space-single')
                .find('div.button')
                .removeClass('s_active');

              _this.setSymbol &#61; function (symbol, value) {
                gh.chart().setSymbol(symbol, value);
              };
              if (v.type !&#61; 'min') {
                localStorage.setItem('tim', v.value);
                localStorage.setItem('type', v.type);
                widget.chart().setResolution(v.value, function onReadyCallback() { }); // 改变分辨率

              } else {
                // console.log(_this.MALine5)
                // widget.activeChart().getStudyById(_this.MALine5).setVisible(false);
                // widget.activeChart().getStudyById(_this.MALine10).setVisible(false);
                // widget.activeChart().getStudyById(_this.MALine30).setVisible(false);
                // widget.chart().getStudyById(_this.MALine60).setVisible(false);
                localStorage.setItem('tim', 1);
                localStorage.setItem('type', '1min');
                widget.chart().setResolution(1, function onReadyCallback() { }); // 改变分辨率

              }
              widget.chart().setChartType(v.chartType); // 改变K线类型
            });

          })

        });

        _this.widget &#61; widget;
      });
    },
    createFeed() {
      let this_vue &#61; this;
      let Datafeed &#61; {};

      Datafeed.DataPulseUpdater &#61; function (datafeed, updateFrequency) {
        this._datafeed &#61; datafeed;
        this._subscribers &#61; {};

        this._requestsPending &#61; 0;
        var that &#61; this;

        var update &#61; function () {
          if (that._requestsPending > 0) {
            return;
          }
          for (var listenerGUID in that._subscribers) {
            var subscriptionRecord &#61; that._subscribers[listenerGUID];
            var resolution &#61; subscriptionRecord.resolution;

            var datesRangeRight &#61; parseInt(new Date().valueOf() / 1000);
            // 	BEWARE: please note we really need 2 bars, not the only last one
            // 	see the explanation below. &#96;10&#96; is the &#96;large enough&#96; value to work around holidays
            var datesRangeLeft &#61;
              datesRangeRight - that.periodLengthSeconds(resolution, 60 * 24);

            that._requestsPending&#43;&#43;;
            (function (_subscriptionRecord) {
              //  eslint-disable-line
              that._datafeed.getBars(
                _subscriptionRecord.symbolInfo,
                resolution,
                datesRangeLeft,
                datesRangeRight,
                function (bars) {
                  that._requestsPending--;

                  // 	means the subscription was cancelled while waiting for data
                  if (!that._subscribers.hasOwnProperty(listenerGUID)) {
                    return;
                  }

                  if (bars.length &#61;&#61;&#61; 0) {
                    return;
                  }

                  var lastBar &#61; bars[bars.length - 1];
                  if (
                    !isNaN(_subscriptionRecord.lastBarTime) &&
                    lastBar.time < _subscriptionRecord.lastBarTime
                  ) {
                    return;
                  }

                  var subscribers &#61; _subscriptionRecord.listeners;

                  // 	BEWARE: this one isn't working when first update comes and this update makes a new bar. In this case
                  // 	_subscriptionRecord.lastBarTime &#61; NaN
                  var isNewBar &#61;
                    !isNaN(_subscriptionRecord.lastBarTime) &&
                    lastBar.time > _subscriptionRecord.lastBarTime;

                  // 	Pulse updating may miss some trades data(ie, if  pulse period &#61; 10 secods and new bar is 
                  // started 5 seconds later after the last update, the
                  // 	old bar's last 5 seconds trades will be lost). Thus, at fist we should broadcast old bar updates when it's ready.
                  if (isNewBar) {
                    if (bars.length < 2) {
                      throw new Error(
                        'Not enough bars in history for proper pulse update. Need at least 2.'
                      );
                    }

                    var previousBar &#61; bars[bars.length - 2];
                    for (let i &#61; 0; i < subscribers.length; &#43;&#43;i) {
                      subscribers[i](previousBar);
                    }
                  }

                  _subscriptionRecord.lastBarTime &#61; lastBar.time;

                  for (let i &#61; 0; i < subscribers.length; &#43;&#43;i) {
                    subscribers[i](lastBar);
                  }
                },

                // 	on error
                function () {
                  that._requestsPending--;
                }
              );
            })(subscriptionRecord);
          }
        };
        update();
        if (that._subscribers &#61;&#61; {}) {
          setInterval(update(), updateFrequency);
        }
      };

      Datafeed.DataPulseUpdater.prototype.periodLengthSeconds &#61; function (
        resolution,
        requiredPeriodsCount
      ) {
        var daysCount &#61; 0;

        if (resolution &#61;&#61;&#61; 'D') {
          daysCount &#61; requiredPeriodsCount;
        } else if (resolution &#61;&#61;&#61; 'M') {
          daysCount &#61; 31 * requiredPeriodsCount;
        } else if (resolution &#61;&#61;&#61; 'W') {
          daysCount &#61; 7 * requiredPeriodsCount;
        } else {
          daysCount &#61; resolution;
        }

        return daysCount * 300;
      };

      Datafeed.DataPulseUpdater.prototype.subscribeDataListener &#61; function (
        symbolInfo,
        resolution,
        newDataCallback,
        listenerGUID
      ) {
        this._datafeed._logMessage('Subscribing ' &#43; listenerGUID);

        if (!this._subscribers.hasOwnProperty(listenerGUID)) {
          this._subscribers[listenerGUID] &#61; {
            symbolInfo: symbolInfo,
            resolution: resolution,
            lastBarTime: NaN,
            listeners: [],
          };
        }

        this._subscribers[listenerGUID].listeners.push(newDataCallback);
      };

      Datafeed.DataPulseUpdater.prototype.unsubscribeDataListener &#61; function (
        listenerGUID
      ) {
        this._datafeed._logMessage('Unsubscribing ' &#43; listenerGUID);
        delete this._subscribers[listenerGUID];
      };

      Datafeed.Container &#61; function (updateFrequency) {
        this._configuration &#61; {
          supports_search: false,
          supports_group_request: false,
          supported_resolutions: [
            '1',
            '3',
            '5',
            '15',
            '30',
            '60',
            '120',
            '240',
            '360',
            '720',
            '1D',
            '3D',
            '1W',
            '1M',
          ],
          supports_marks: true,
          supports_timescale_marks: true,
          exchanges: ['gh'],
        };

        this._barsPulseUpdater &#61; new Datafeed.DataPulseUpdater(
          this,
          updateFrequency || 10 * 1000
        );

        //  this._quotesPulseUpdater &#61; new Datafeed.QuotesPulseUpdater(this);

        this._enableLogging &#61; true;
        this._callbacks &#61; {};

        this._initializationFinished &#61; true;
        this._fireEvent('initialized');
        this._fireEvent('configuration_ready');
      };

      Datafeed.Container.prototype._fireEvent &#61; function (event, argument) {
        if (this._callbacks.hasOwnProperty(event)) {
          var callbacksChain &#61; this._callbacks[event];
          for (var i &#61; 0; i < callbacksChain.length; &#43;&#43;i) {
            callbacksChain[i](argument);
          }

          this._callbacks[event] &#61; [];
        }
      };

      Datafeed.Container.prototype._logMessage &#61; function () {

      };

      Datafeed.Container.prototype.on &#61; function (event, callback) {
        if (!this._callbacks.hasOwnProperty(event)) {
          this._callbacks[event] &#61; [];
        }

        this._callbacks[event].push(callback);
        return this;
      };

      Datafeed.Container.prototype.onReady &#61; function (callback) {
        let that &#61; this;
        if (that._configuration) {
          setTimeout(function () {
            callback(that._configuration);
          }, 0);
        } else {
          this.on('configuration_ready', function () {
            callback(that._configuration);
          });
        }
      };

      Datafeed.Container.prototype.resolveSymbol &#61; function (
        symbolName,
        onSymbolResolvedCallback,
      ) {
        this._logMessage('GOWNO :: resolve symbol ' &#43; symbolName);
        Promise.resolve().then(() &#61;> {
          onSymbolResolvedCallback({
            name: this_vue.symbol,
            pricescale: parseInt(this_vue.decimal),
            minmov: 1, // minmov(最小波动), pricescale(价格精度), minmove2, fractional(分数)
            minmov2: 0, // 这是一个神奇的数字来格式化复杂情况下的价格。
            //  pricescale:8,
            pointvalue: 1,
            fractional: false,
            ticker: this_vue.symbol,
            description: '',
            type: 'bitcoin',
            volume_precision: 8,
            //  'exchange-traded': 'sdt',
            //  'exchange-listed': 'sdt',
            // 现在这两个字段都为某个交易所的略称。将被显示在图表的图例中以表示此商品。目前此字段不用于其他目的。
            has_intraday: true,
            // 设置是否支持周月线
            has_daily: true,
            // 设置是否支持周月线
            has_weekly_and_monthly: true,
            has_no_volume: false, // 布尔表示商品是否拥有成交量数据。
            session: '24x7',
            supported_resolutions: [
              '1',
              '3',
              '5',
              '15',
              '30',
              '60',
              '120',
              '240',
              '360',
              '720',
              '1D',
              '3D',
              '1W',
              '1M',
            ],
            data_status: 'streaming', // 数据状态(streaming(实时),endofday(已收盘),pulsed(脉冲),delayed_streaming(延迟流动中))
          });
        });
      };

      // 初始化数据
      Datafeed.Container.prototype.getBars &#61; function (
        symbolInfo,
        resolution,
        rangeStartDate,
        rangeEndDate,
        onHistoryCallback,
      ) {
        let interval &#61; localStorage.getItem('type') || '15min';
        let params &#61; {
          symbol: symbolInfo.name,
          period: interval,
          from: rangeStartDate,
          to: rangeEndDate,
        };
        markets.getHistoryKline(params).then((res) &#61;> {
          let array &#61; res.result;
          array.reverse();
          if (array && array.length > 0) {
            array.forEach((item) &#61;> {
              item.open &#61; Number(item.open);
              item.close &#61; Number(item.close);
              item.high &#61; Number(item.high);
              item.low &#61; Number(item.low);
              item.volume &#61; Number(item.vol);
              item.time &#61; Number(item.time * 1000);
            });
            onHistoryCallback(array, { noData: false });
            //  onHistoryCallback([], { noData: true });
          }
          if (!array || (array && array.length &#61;&#61; 0)) {
            onHistoryCallback([], { noData: true });
          }
        });
      };
      // 实时数据
      Datafeed.Container.prototype.subscribeBars &#61; function (
        symbolInfo,
        resolution,
        onRealtimeCallback,
      ) {
        //  this._barsPulseUpdater.subscribeDataListener(symbolInfo, resolution, onRealtimeCallback, listenerGUID, onResetCacheNeededCallback);
        this_vue.connect(onRealtimeCallback);
        this.onRealtimeCallback &#61; onRealtimeCallback;
      };

      Datafeed.Container.prototype.unsubscribeBars &#61; function (listenerGUID) {
        this._barsPulseUpdater.unsubscribeDataListener(listenerGUID);
      };

      return new Datafeed.Container();
    },

    updateWidget(item) {
      let type &#61; localStorage.getItem('type');
      this.$wsSend.getKline('unsub', type, this.symbol);
      this.symbolInfo &#61; {
        name: item,
        ticker: item,
        description: '',
        session: '24x7',
        supported_resolutions: [
          '1',
          '3',
          '5',
          '15',
          '30',
          '60',
          '120',
          '240',
          '360',
          '720',
          '1D',
          '3D',
          '1W',
          '1M',
        ],
        has_intraday: true,
        has_daily: true,
        has_weekly_and_monthly: true,
      };

      this.removeWidget();
      this.createWidget();
    },
    removeWidget() {

    },
  },
};
</script>

配置

index.js
import black_professional from &#34;./black_professional&#34;;
import dark_professional from &#34;./dark_professional&#34;;
import black_simple from &#34;./black_simple&#34;;
import dark_simple from &#34;./dark_simple&#34;;

export default {
    black_professional,
    dark_professional,
    black_simple,
    dark_simple,
    // loading_screen,
   
}

black_professional.js
const color &#61; {
  //整体背景色
  Kbg:&#34;#FFFFFF&#34;,
  //亮红色
  KbRed:&#34;#FA4A4A&#34;,
  //亮绿色
  KbGreen:&#34;#05B47F&#34;,
  //暗红色
  KdRed:&#34;#FA5050&#34;,
  //暗绿色
  KdGreen:&#34;#0AB985&#34;,
  //字体色
  Kfont:&#34;#A6ADB5&#34;,
  //选中字体色
  KSFont:&#34;#6E7682&#34;,
  //选中背景色
  KSBg:&#34;#DFE2E7&#34;,
  //坐标轴色
  KCoordinate:&#34;#A5ABB3&#34;,
  //网格线色
  KGridLines:&#34;#F7F8F8 &#34;,
  //日线颜色
  KDay:{
    &#34;day5&#34;:&#34;#965fc4&#34;,
    &#34;day10&#34;:&#34;#84aad5&#34;,
    &#34;day30&#34;:&#34;#55b263&#34;,
    &#34;day60&#34;:&#34;#b7248a&#34;,
  },
  //鼠标虚线颜色
  KMouse:&#34;#c5c6ca&#34;,
  //btn字体选中色
  KSBtnFont:&#34;#2483ff&#34;,
  //btn背景选中色
  KSBtnBg:&#34;rgba(229,235,245,.5)&#34;,
  //btn border
  KSBtnBorder:&#34;#e6ecf2&#34;,
  //面积图背景色
  KgArea1:&#34;rgba(243,243,243,0.6)&#34;,
  KgArea2:&#34;rgba(250,250,250,0.6)&#34;,
  //面积图边框色
  KbArea:&#34;#929aa5&#34;
}
const data &#61; {
  studies_overrides:{
    //柱状图颜色
      &#34;volume.volume.color.0&#34;: color.KdRed,  //第一根的颜色
      &#34;volume.volume.color.1&#34;: color.KdGreen,  //第二根的颜色
      &#34;volume.volume.transparency&#34;: 100,    //透明度
      &#34;volume.volume ma.color&#34;: &#34;#FFFFFF&#34;, //波浪图颜色
      &#34;volume.volume ma.transparency&#34;: 1, //波浪图透明度
      &#34;KDay&#34;: color.KDay,  
      // &#34;volume.volume ma.linewidth&#34;: 0,    
      // &#34;volume.show ma&#34;: true,    //是否显示
      // &#34;volume.options.showStudyArguments&#34;: true,
      // &#34;bollinger bands.median.color&#34;: &#34;#33FF88&#34;,
      // &#34;bollinger bands.upper.linewidth&#34;: 7,
      // // MACD样式
      // &#34;MACD.MACD.color&#34;: &#34;#F00&#34;,
      // &#34;MACD.Signal.color&#34;: &#34;#fe8&#34;,
      // &#34;MACD.Histogram.color&#34;: &#34;#0f0&#34;,
      // 'MACD.MACD.linewidth': 1,
  },
  disabled_features:[
    'show_hide_button_in_legend',
    'study_buttons_in_legend',
    'source_selection_markers',
    &#34;header_interval_dialog_button&#34;,
    &#34;header_symbol_search&#34;,//头部搜索
    &#34;header_saveload&#34;,//上传下载
    &#34;header_screenshot&#34;,//截图
    &#34;header_chart_type&#34;,// k线样式
    &#34;header_undo_redo&#34;,//撤销返回
    &#34;timeframes_toolbar&#34;,//下面的时间
    &#34;volume_force_overlay&#34;,//防止他们重叠
    &#34;header_compare&#34;,//图表对比
    &#34;header_resolutions&#34;,//todo: przetestowac//头部的时间
    'countdown',//倒计时
    'pane_context_menu',
    'scales_context_menu',

    
    &#34;show_interval_dialog_on_key_press&#34;,
    &#34;symbol_search_hot_key&#34;,
    &#34;study_dialog_search_control&#34;,
    &#34;display_market_status&#34;,
    
    
    &#34;symbol_info&#34;,//商品信息
    &#34;border_around_the_chart&#34;,
    &#34;main_series_scale_menu&#34;,
    &#34;star_some_intervals_by_default&#34;,
    &#34;datasource_copypaste&#34;,
    // &#34;right_bar_stays_on_scroll&#34;,

    &#34;go_to_date&#34;,
    &#34;compare_symbol&#34;,
    &#34;border_around_the_chart&#34;,
    &#34;timezone_menu&#34;,
    
    'chart_property_page_style',
    &#34;control_bar&#34;,//todo: przetestowac
    &#34;remove_library_container_border&#34;,
    &#34;use_localstorage_for_settings&#34;,
    &#34;save_chart_properties_to_local_storage&#34;
  ],
  enabled_features:[
    &#34;adaptive_logo&#34;, //小屏幕上隐藏 'charts byTradingView' 文本
    &#34;dont_show_boolean_study_arguments&#34;, //是否隐藏指标参数
    &#34;hide_last_na_study_output&#34;, //隐藏最后一次指标输出
    &#34;move_logo_to_main_pane&#34;, //logo在中间位置
    &#34;same_data_requery&#34;, //允许您使用相同的商品调用 setSymbol 来刷新数据
    // &#34;hide_left_toolbar_by_default&#34;, //第一次打开图表时隐藏左工具栏
    &#34;side_toolbar_in_fullscreen_mode&#34;, //使用此功能您可以在全屏模式下启用绘图工具栏
    &#34;disable_resolution_rebuild&#34;, //显示的时间与得到的数据时间一致
    &#34;seconds_resolution&#34;,//支持秒的周期
    'hide_last_na_study_output', // 隐藏指标后面的 n/a
    &#34;remove_library_container_border&#34;,
    &#34;constraint_dialogs_movement&#34;,//todo: nie do końca jestem pewien
    
  ],
  overrides:{
    &#34;symbolWatermarkProperties.color&#34;: color.Kbg,
      &#34;paneProperties.background&#34;: color.Kbg,
      &#34;paneProperties.vertGridProperties.color&#34;: color.KGridLines,
      &#34;paneProperties.horzGridProperties.color&#34;: color.KGridLines,
      &#34;paneProperties.crossHairProperties.color&#34;: color.KMouse,
      &#34;paneProperties.crossHairProperties.style&#34;: 2,
      // 数据列风格。 请参阅下面的支持的值
      //  Bars &#61; 0            #美国线
      //  Candles &#61; 1         #K线图
      //  Line &#61; 2            #线形图
      //  Area &#61; 3            #面积图
      //  Heiken Ashi &#61; 8     #平均K线图
      //  Hollow Candles &#61; 9  #空心K线图
      //  Renko &#61; 4           #转形图
      //  Kagi &#61; 5            #卡吉图
      //  Point&Figure &#61; 6    #点数图
      //  Line Break &#61; 7      #新价图
      &#34;mainSeriesProperties.style&#34;: 1,
      &#34;mainSeriesProperties.showCountdown&#34;: false,
      &#34;scalesProperties.showSeriesLastValue&#34;: true,
      &#34;mainSeriesProperties.visible&#34;: false,
      &#34;mainSeriesProperties.showPriceLine&#34;: true,
      &#34;mainSeriesProperties.priceLineWidth&#34;: 1,
      &#34;mainSeriesProperties.lockScale&#34;: false,
      &#34;mainSeriesProperties.minTick&#34;: &#34;default&#34;,
      &#34;mainSeriesProperties.extendedHours&#34;: false,
      &#34;volumePaneSize&#34;: &#34;medium&#34;,//底部视图大小 支持的值: large, medium, small, tiny
      editorFontsList: [&#34;Lato&#34;, &#34;Arial&#34;, &#34;Verdana&#34;, &#34;Courier New&#34;, &#34;Times New Roman&#34;],
      &#34;paneProperties.topMargin&#34;: 5,
      &#34;paneProperties.bottomMargin&#34;: 5,
      &#34;paneProperties.legendProperties.showLegend&#34;: true, //收起左上角指标
      &#34;paneProperties.leftAxisProperties.autoScale&#34;: true,
      &#34;paneProperties.leftAxisProperties.autoScaleDisabled&#34;: false,
      &#34;paneProperties.leftAxisProperties.percentage&#34;: false,
      &#34;paneProperties.leftAxisProperties.percentageDisabled&#34;: false,
      &#34;paneProperties.leftAxisProperties.log&#34;: false,
      &#34;paneProperties.leftAxisProperties.logDisabled&#34;: false,
      &#34;paneProperties.leftAxisProperties.alignLabels&#34;: true,
      // &#34;paneProperties.legendProperties.showStudyArguments&#34;: true,
      &#34;paneProperties.legendProperties.showStudyTitles&#34;: true,
      &#34;paneProperties.legendProperties.showStudyValues&#34;: true,
      &#34;paneProperties.legendProperties.showSeriesTitle&#34;: true,
      &#34;paneProperties.legendProperties.showSeriesOHLC&#34;: true,//开高低
      &#34;scalesProperties.showLeftScale&#34;: false,
      &#34;scalesProperties.showRightScale&#34;: true,
      &#34;scalesProperties.backgroundColor&#34;: color.KCoordinate,
      &#34;scalesProperties.lineColor&#34;: color.KCoordinate,
      &#34;scalesProperties.textColor&#34;: color.Kfont,
      &#34;scalesProperties.scaleSeriesOnly&#34;: false,
      &#34;mainSeriesProperties.priceAxisProperties.autoScale&#34;: true,
      &#34;mainSeriesProperties.priceAxisProperties.autoScaleDisabled&#34;: false,
      &#34;mainSeriesProperties.priceAxisProperties.percentage&#34;: false,
      &#34;mainSeriesProperties.priceAxisProperties.percentageDisabled&#34;: false,
      &#34;mainSeriesProperties.priceAxisProperties.log&#34;: false,
      &#34;mainSeriesProperties.priceAxisProperties.logDisabled&#34;: false,
      &#34;mainSeriesProperties.candleStyle.upColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.candleStyle.downColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.candleStyle.drawWick&#34;: true,
      &#34;mainSeriesProperties.candleStyle.drawBorder&#34;: true,
      &#34;mainSeriesProperties.candleStyle.borderUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.candleStyle.borderDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.candleStyle.wickUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.candleStyle.wickDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.candleStyle.barColorsOnPrevClose&#34;: false,
      &#34;mainSeriesProperties.hollowCandleStyle.upColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.hollowCandleStyle.downColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.hollowCandleStyle.drawWick&#34;: true,
      &#34;mainSeriesProperties.hollowCandleStyle.drawBorder&#34;: true,
      &#34;mainSeriesProperties.hollowCandleStyle.borderColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.hollowCandleStyle.borderUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.hollowCandleStyle.borderDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.hollowCandleStyle.wickUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.hollowCandleStyle.wickDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.haStyle.upColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.haStyle.downColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.haStyle.drawWick&#34;: true,
      &#34;mainSeriesProperties.haStyle.drawBorder&#34;: true,
      &#34;mainSeriesProperties.haStyle.borderColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.haStyle.borderUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.haStyle.borderDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.haStyle.wickUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.haStyle.wickDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.haStyle.barColorsOnPrevClose&#34;: false,
      &#34;mainSeriesProperties.barStyle.upColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.barStyle.downColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.barStyle.barColorsOnPrevClose&#34;: false,
      &#34;mainSeriesProperties.barStyle.dontDrawOpen&#34;: false,
      &#34;mainSeriesProperties.lineStyle.color&#34;: color.KCoordinate,
      &#34;mainSeriesProperties.lineStyle.linestyle&#34;: 0,
      &#34;mainSeriesProperties.lineStyle.linewidth&#34;: 1,
      &#34;mainSeriesProperties.lineStyle.priceSource&#34;: &#34;close&#34;,

      &#34;mainSeriesProperties.areaStyle.color1&#34;: color.KgArea2,
      &#34;mainSeriesProperties.areaStyle.color2&#34;: color.KgArea1,
      &#34;mainSeriesProperties.areaStyle.linecolor&#34;: color.KbArea,
      &#34;mainSeriesProperties.areaStyle.linestyle&#34;: 0,
      &#34;mainSeriesProperties.areaStyle.linewidth&#34;: 1,
      &#34;mainSeriesProperties.areaStyle.priceSource&#34;: &#34;close&#34;,
      &#34;mainSeriesProperties.areaStyle.transparency&#34;: 80,
  }
  
}


export default data;

black_simple.js
const color &#61; {
  //整体背景色
  Kbg:&#34;#FFFFFF&#34;,
  //亮红色
  KbRed:&#34;#ff575c&#34;,
  //亮绿色
  KbGreen:&#34;#3dcc89&#34;,
  //暗红色
  KdRed:&#34;#ff575c&#34;,
  //暗绿色
  KdGreen:&#34;#3dcc89&#34;,
  //字体色
  Kfont:&#34;#A6ADB5&#34;,
  //选中字体色
  KSFont:&#34;#6E7682&#34;,
  //选中背景色
  KSBg:&#34;#DFE2E7&#34;,
  //坐标轴色
  KCoordinate:&#34;#A5ABB3&#34;,
  //网格线色
  KGridLines:&#34;#F7F8F8 &#34;,
  //日线颜色
  KDay:{
    &#34;day5&#34;:&#34;rgb(240,185,11)&#34;,
    &#34;day10&#34;:&#34;rgb(16,170,8)&#34;,
    &#34;day30&#34;:&#34;rgb(255,0,255)&#34;,
  },
  //鼠标虚线颜色
  KMouse:&#34;#c5c6ca&#34;,
  //btn字体选中色
  KSBtnFont:&#34;#2483ff&#34;,
  //btn背景选中色
  KSBtnBg:&#34;rgba(229,235,245,.5)&#34;,
  //btn border
  KSBtnBorder:&#34;#e6ecf2&#34;,
  //面积图背景色
  KgArea1:&#34;rgba(243,243,243,0.6)&#34;,
  KgArea2:&#34;rgba(250,250,250,0.6)&#34;,
  //面积图边框色
  KbArea:&#34;#929aa5&#34;
}
const data &#61; {
  studies_overrides:{
    //柱状图颜色
    &#34;volume.volume.color.0&#34;: color.KdRed,  //第一根的颜色
    &#34;volume.volume.color.1&#34;: color.KdGreen,  //第二根的颜色
    &#34;volume.volume.transparency&#34;: 1,    //透明度
    &#34;volume.volume ma.color&#34;: &#34;#FFFFFF&#34;, //波浪图颜色
    &#34;volume.volume ma.transparency&#34;: 1, //波浪图透明度
    &#34;KDay&#34;: color.KDay,  
    // &#34;volume.volume ma.linewidth&#34;: 0,    
    // &#34;volume.show ma&#34;: true,    //是否显示
    // &#34;volume.options.showStudyArguments&#34;: true,
    // &#34;bollinger bands.median.color&#34;: &#34;#33FF88&#34;,
    // &#34;bollinger bands.upper.linewidth&#34;: 7,
    // // MACD样式
    // &#34;MACD.MACD.color&#34;: &#34;#F00&#34;,
    // &#34;MACD.Signal.color&#34;: &#34;#fe8&#34;,
    // &#34;MACD.Histogram.color&#34;: &#34;#0f0&#34;,
    // 'MACD.MACD.linewidth': 1,
  },
  disabled_features:[
    'property_pages',
    &#34;left_toolbar&#34;,//左部工具栏
    'header_settings',//指标
    'header_fullscreen_button',//全屏
    'legend_context_menu',
    'context_menus',
    'header_indicators',
    &#34;edit_buttons_in_legend&#34;,
    // 'legend_widget',
    'format_button_in_legend',
    'delete_button_in_legend',

    'show_hide_button_in_legend',
    'study_buttons_in_legend',
    'source_selection_markers',
    &#34;header_interval_dialog_button&#34;,
    &#34;header_symbol_search&#34;,//头部搜索
    &#34;header_saveload&#34;,//上传下载
    &#34;header_screenshot&#34;,//截图
    &#34;header_chart_type&#34;,// k线样式
    &#34;header_undo_redo&#34;,//撤销返回
    &#34;timeframes_toolbar&#34;,//下面的时间
    &#34;volume_force_overlay&#34;,//防止他们重叠
    &#34;header_compare&#34;,//图表对比
    &#34;header_resolutions&#34;,//todo: przetestowac//头部的时间
    'countdown',//倒计时
    'pane_context_menu',
    'scales_context_menu',

    
    &#34;show_interval_dialog_on_key_press&#34;,
    &#34;symbol_search_hot_key&#34;,
    &#34;study_dialog_search_control&#34;,
    &#34;display_market_status&#34;,
    
    
    &#34;symbol_info&#34;,//商品信息
    &#34;border_around_the_chart&#34;,
    &#34;main_series_scale_menu&#34;,
    &#34;star_some_intervals_by_default&#34;,
    &#34;datasource_copypaste&#34;,
    // &#34;right_bar_stays_on_scroll&#34;,

    &#34;go_to_date&#34;,
    &#34;compare_symbol&#34;,
    &#34;border_around_the_chart&#34;,
    &#34;timezone_menu&#34;,
    
    'chart_property_page_style',
    &#34;control_bar&#34;,//todo: przetestowac
    &#34;remove_library_container_border&#34;,
  ],
  enabled_features:[
    &#34;adaptive_logo&#34;, //小屏幕上隐藏 'charts byTradingView' 文本
    &#34;dont_show_boolean_study_arguments&#34;, //是否隐藏指标参数
    &#34;hide_last_na_study_output&#34;, //隐藏最后一次指标输出
    &#34;move_logo_to_main_pane&#34;, //logo在中间位置
    &#34;same_data_requery&#34;, //允许您使用相同的商品调用 setSymbol 来刷新数据
    &#34;hide_left_toolbar_by_default&#34;, //第一次打开图表时隐藏左工具栏
    &#34;side_toolbar_in_fullscreen_mode&#34;, //使用此功能您可以在全屏模式下启用绘图工具栏
    &#34;disable_resolution_rebuild&#34;, //显示的时间与得到的数据时间一致
    &#34;seconds_resolution&#34;,//支持秒的周期
    'hide_last_na_study_output', // 隐藏指标后面的 n/a
    &#34;remove_library_container_border&#34;,
    &#34;constraint_dialogs_movement&#34;,//todo: nie do końca jestem pewien
    
  ],
  overrides:{
    &#34;symbolWatermarkProperties.color&#34;: color.Kbg,
      &#34;paneProperties.background&#34;: color.Kbg,
      &#34;paneProperties.vertGridProperties.color&#34;: color.KGridLines,
      &#34;paneProperties.horzGridProperties.color&#34;: color.KGridLines,
      &#34;paneProperties.crossHairProperties.color&#34;: color.KMouse,
      &#34;paneProperties.crossHairProperties.style&#34;: 2,
      // 数据列风格。 请参阅下面的支持的值
      //  Bars &#61; 0            #美国线
      //  Candles &#61; 1         #K线图
      //  Line &#61; 2            #线形图
      //  Area &#61; 3            #面积图
      //  Heiken Ashi &#61; 8     #平均K线图
      //  Hollow Candles &#61; 9  #空心K线图
      //  Renko &#61; 4           #转形图
      //  Kagi &#61; 5            #卡吉图
      //  Point&Figure &#61; 6    #点数图
      //  Line Break &#61; 7      #新价图
      &#34;mainSeriesProperties.style&#34;: 1,
      &#34;mainSeriesProperties.showCountdown&#34;: false,
      &#34;scalesProperties.showSeriesLastValue&#34;: true,
      &#34;mainSeriesProperties.visible&#34;: false,
      &#34;mainSeriesProperties.showPriceLine&#34;: true,
      &#34;mainSeriesProperties.priceLineWidth&#34;: 1,
      &#34;mainSeriesProperties.lockScale&#34;: false,
      &#34;mainSeriesProperties.minTick&#34;: &#34;default&#34;,
      &#34;mainSeriesProperties.extendedHours&#34;: false,
      &#34;volumePaneSize&#34;: &#34;medium&#34;,//底部视图大小 支持的值: large, medium, small, tiny
      editorFontsList: [&#34;Lato&#34;, &#34;Arial&#34;, &#34;Verdana&#34;, &#34;Courier New&#34;, &#34;Times New Roman&#34;],
      &#34;paneProperties.topMargin&#34;: 5,
      &#34;paneProperties.bottomMargin&#34;: 5,
      &#34;paneProperties.legendProperties.showLegend&#34;: true, //收起左上角指标
      &#34;paneProperties.leftAxisProperties.autoScale&#34;: true,
      &#34;paneProperties.leftAxisProperties.autoScaleDisabled&#34;: false,
      &#34;paneProperties.leftAxisProperties.percentage&#34;: false,
      &#34;paneProperties.leftAxisProperties.percentageDisabled&#34;: false,
      &#34;paneProperties.leftAxisProperties.log&#34;: false,
      &#34;paneProperties.leftAxisProperties.logDisabled&#34;: false,
      &#34;paneProperties.leftAxisProperties.alignLabels&#34;: true,
      &#34;paneProperties.legendProperties.showStudyArguments&#34;: true,
      &#34;paneProperties.legendProperties.showStudyTitles&#34;: false,//MA为名字
      &#34;paneProperties.legendProperties.showStudyValues&#34;: true,
      &#34;paneProperties.legendProperties.showSeriesTitle&#34;: false,//商品名称
      &#34;paneProperties.legendProperties.showSeriesOHLC&#34;: true,//开高低
      &#34;scalesProperties.showLeftScale&#34;: false,
      &#34;scalesProperties.showRightScale&#34;: true,
      &#34;scalesProperties.backgroundColor&#34;: color.KCoordinate,
      &#34;scalesProperties.lineColor&#34;: color.KCoordinate,
      &#34;scalesProperties.textColor&#34;: color.Kfont,
      &#34;scalesProperties.scaleSeriesOnly&#34;: false,
      &#34;mainSeriesProperties.priceAxisProperties.autoScale&#34;: true,
      &#34;mainSeriesProperties.priceAxisProperties.autoScaleDisabled&#34;: false,
      &#34;mainSeriesProperties.priceAxisProperties.percentage&#34;: false,
      &#34;mainSeriesProperties.priceAxisProperties.percentageDisabled&#34;: false,
      &#34;mainSeriesProperties.priceAxisProperties.log&#34;: false,
      &#34;mainSeriesProperties.priceAxisProperties.logDisabled&#34;: false,
      &#34;mainSeriesProperties.candleStyle.upColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.candleStyle.downColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.candleStyle.drawWick&#34;: true,
      &#34;mainSeriesProperties.candleStyle.drawBorder&#34;: true,
      &#34;mainSeriesProperties.candleStyle.borderUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.candleStyle.borderDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.candleStyle.wickUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.candleStyle.wickDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.candleStyle.barColorsOnPrevClose&#34;: false,
      &#34;mainSeriesProperties.hollowCandleStyle.upColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.hollowCandleStyle.downColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.hollowCandleStyle.drawWick&#34;: true,
      &#34;mainSeriesProperties.hollowCandleStyle.drawBorder&#34;: true,
      &#34;mainSeriesProperties.hollowCandleStyle.borderColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.hollowCandleStyle.borderUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.hollowCandleStyle.borderDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.hollowCandleStyle.wickUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.hollowCandleStyle.wickDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.haStyle.upColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.haStyle.downColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.haStyle.drawWick&#34;: true,
      &#34;mainSeriesProperties.haStyle.drawBorder&#34;: true,
      &#34;mainSeriesProperties.haStyle.borderColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.haStyle.borderUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.haStyle.borderDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.haStyle.wickUpColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.haStyle.wickDownColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.haStyle.barColorsOnPrevClose&#34;: false,
      &#34;mainSeriesProperties.barStyle.upColor&#34;: color.KbGreen,
      &#34;mainSeriesProperties.barStyle.downColor&#34;: color.KbRed,
      &#34;mainSeriesProperties.barStyle.barColorsOnPrevClose&#34;: false,
      &#34;mainSeriesProperties.barStyle.dontDrawOpen&#34;: false,
      &#34;mainSeriesProperties.lineStyle.color&#34;: color.KCoordinate,
      &#34;mainSeriesProperties.lineStyle.linestyle&#34;: 0,
      &#34;mainSeriesProperties.lineStyle.linewidth&#34;: 1,
      &#34;mainSeriesProperties.lineStyle.priceSource&#34;: &#34;close&#34;,

      &#34;mainSeriesProperties.areaStyle.color1&#34;: color.KgArea2,
      &#34;mainSeriesProperties.areaStyle.color2&#34;: color.KgArea1,
      &#34;mainSeriesProperties.areaStyle.linecolor&#34;: color.KbArea,
      &#34;mainSeriesProperties.areaStyle.linestyle&#34;: 0,
      &#34;mainSeriesProperties.areaStyle.linewidth&#34;: 1,
      &#34;mainSeriesProperties.areaStyle.priceSource&#34;: &#34;close&#34;,
      &#34;mainSeriesProperties.areaStyle.transparency&#34;: 80,
  }
  
}


export default data;

dark_professional.js
const color &#61; {
  //整体背景色
  Kbg:&#34;#171B2B&#34;,
  //亮红色
  KbRed:&#34;#FA5252&#34;,
  //亮绿色
  KbGreen:&#34;#12B886&#34;,
  //暗红色
  KdRed:&#34;#662F39&#34;,
  //暗绿色
  KdGreen:&#34;#15524B&#34;,
  //字体色
  Kfont:&#34;#B2BAD6&#34;,
  //选中字体色
  KSFont:&#34;#3C68E9&#34;,
  //选中背景色
  KSBg:&#34;#FA5252&#34;,
  //坐标轴色
  KCoordinate:&#34;#49556B&#34;,
  //网格线色
  KGridLines:&#34;#1D2131&#34;,
  //日线颜色
  KDay:{
    &#34;day5&#34;:&#34;#965fc4&#34;,
    &#34;day10&#34;:&#34;#84aad5&#34;,
    &#34;day30&#34;:&#34;#55b263&#34;,
    &#34;day60&#34;:&#34;#b7248a&#34;,
  },
  //鼠标虚线颜色
  KMouse:&#34;#c5c6ca&#34;,
  //btn字体选中色
  KSBtnFont:&#34;#2483ff&#34;,
  //btn背景选中色
  KSBtnBg:&#34;rgba(37,42,68,.5)&#34;,
  //btn border
  KSBtnBorder:&#34;#000000&#34;,
  //面积图背景色
  KgArea1:&#34;rgba(22,34,53,0.6)&#34;,
  KgArea2:&#34;rgba(36,44,61,0.6)&#34;,
  //面积图边框色
  KbArea:&#34;#929aa5&#34;
}
const LINESTYLE_SOLID &#61; 0;
const LINESTYLE_DOTTED &#61; 1;
const LINESTYLE_DASHED &#61; 2;
const LINESTYLE_LARGE_DASHED &#61; 3;

const LINEEND_NORMAL &#61; 0;
const LINEEND_ARROW  &#61; 1;
const LINEEND_CIRCLE &#61; 2;

const data &#61; {
  studies_overrides:{
    //柱状图颜色
      &#34;volume.volume.color.0&#34;: color.KdRed,  //第一根的颜色
      &#34;volume.volume.color.1&#34;: color.KdGreen,  //第二根的颜色
      &#34;volume.volume.transparency&#34;: 100,    //透明度
      &#34;volume.volume ma.color&#34;: color.KdGreen, //波浪图颜色
      &#34;volume.volume ma.transparency&#34;: 1, //波浪图透明度
      &#34;KDay&#34;: color.KDay,
  },
  disabled_features:[
    'show_hide_button_in_legend',
    'study_buttons_in_legend',
    'source_selection_markers',
    &#34;header_interval_dialog_button&#34;,
    &#34;header_symbol_search&#34;,//头部搜索
    &#34;header_saveload&#34;,//上传下载
    &#34;header_screenshot&#34;,//截图
    &#34;header_chart_type&#34;,// k线样式
    &#34;header_undo_redo&#34;,//撤销返回
    &#34;timeframes_toolbar&#34;,//下面的时间
    &#34;volume_force_overlay&#34;,//防止他们重叠
    &#34;header_compare&#34;,//图表对比
    &#34;header_resolutions&#34;,//todo: przetestowac//头部的时间
    'countdown',//倒计时
    'pane_context_menu',
    'scales_context_menu',

    
    &#34;show_interval_dialog_on_key_press&#34;,
    &#34;symbol_search_hot_key&#34;,
    &#34;study_dialog_search_control&#34;,
    &#34;display_market_status&#34;,
    
    
    &#34;symbol_info&#34;,//商品信息
    &#34;border_around_the_chart&#34;,
    &#34;main_series_scale_menu&#34;,
    &#34;star_some_intervals_by_default&#34;,
    // &#34;datasource_copypaste&#34;,
    // &#34;right_bar_stays_on_scroll&#34;,

    &#34;go_to_date&#34;,
    &#34;compare_symbol&#34;,
    &#34;border_around_the_chart&#34;,
    &#34;timezone_menu&#34;,
    
    'chart_property_page_style',
    &#34;control_bar&#34;,//todo: przetestowac
    &#34;remove_library_container_border&#34;,
    &#34;save_chart_properties_to_local_storage&#34;,//可以禁用以禁止将图表属性存储到 localstorage
    &#34;items_favoriting&#34;,//禁用此功能会隐藏所有“收藏此项目”按钮
  ],
  enabled_features:[
    &#34;adaptive_logo&#34;, //小屏幕上隐藏 'charts byTradingView' 文本
    &#34;hide_last_na_study_output&#34;, //隐藏最后一次指标输出
    &#34;move_logo_to_main_pane&#34;, //logo在中间位置
    &#34;same_data_requery&#34;, //允许您使用相同的商品调用 setSymbol 来刷新数据
    // &#34;hide_left_toolbar_by_default&#34;, //第一次打开图表时隐藏左工具栏
    &#34;side_toolbar_in_fullscreen_mode&#34;, //使用此功能您可以在全屏模式下启用绘图工具栏
    &#34;disable_resolution_rebuild&#34;, //显示的时间与得到的数据时间一致
    &#34;seconds_resolution&#34;,//支持秒的周期
    'hide_last_na_study_output', // 隐藏指标后面的 n/a
    &#34;remove_library_container_border&#34;,
    &#34;constraint_dialogs_movement&#34;,//todo: nie do końca jestem pewien
    
  ],

  overrides:{
    &#34;symbolWatermarkProperties.color&#34;: color.Kbg,
    &#34;paneProperties.background&#34;: color.Kbg,
    &#34;paneProperties.vertGridProperties.color&#34;: color.KGridLines,
    &#34;paneProperties.horzGridProperties.color&#34;: color.KGridLines,
    &#34;paneProperties.crossHairProperties.color&#34;: color.KMouse,
    &#34;paneProperties.crossHairProperties.style&#34;: 2,
    // 数据列风格。 请参阅下面的支持的值
    //  Bars &#61; 0            #美国线
    //  Candles &#61; 1         #K线图
    //  Line &#61; 2            #线形图
    //  Area &#61; 3            #面积图
    //  Heiken Ashi &#61; 8     #平均K线图
    //  Hollow Candles &#61; 9  #空心K线图
    //  Renko &#61; 4           #转形图
    //  Kagi &#61; 5            #卡吉图
    //  Point&Figure &#61; 6    #点数图
    //  Line Break &#61; 7      #新价图
    // &#34;mainSeriesProperties.style&#34;: 1,
    // &#34;mainSeriesProperties.showCountdown&#34;: false,
    // &#34;scalesProperties.showSeriesLastValue&#34;: true,
    &#34;mainSeriesProperties.visible&#34;: false,
    &#34;mainSeriesProperties.showPriceLine&#34;: true,
    &#34;mainSeriesProperties.priceLineWidth&#34;: 1,
    &#34;mainSeriesProperties.lockScale&#34;: false,
    &#34;mainSeriesProperties.minTick&#34;: &#34;default&#34;,
    &#34;mainSeriesProperties.extendedHours&#34;: false,
    &#34;volumePaneSize&#34;: &#34;medium&#34;,//底部视图大小 支持的值: large, medium, small, tiny
    editorFontsList: [&#34;Lato&#34;, &#34;Arial&#34;, &#34;Verdana&#34;, &#34;Courier New&#34;, &#34;Times New Roman&#34;],
    &#34;paneProperties.topMargin&#34;: 5,
    &#34;paneProperties.bottomMargin&#34;: 5,
    &#34;paneProperties.leftAxisProperties.autoScale&#34;: false,
    &#34;paneProperties.leftAxisProperties.autoScaleDisabled&#34;: false,
    &#34;paneProperties.leftAxisProperties.percentage&#34;: false,
    &#34;paneProperties.leftAxisProperties.percentageDisabled&#34;: false,
    &#34;paneProperties.leftAxisProperties.log&#34;: false,
    &#34;paneProperties.leftAxisProperties.logDisabled&#34;: false,
    &#34;paneProperties.leftAxisProperties.alignLabels&#34;: true,
    &#34;paneProperties.legendProperties.showStudyArguments&#34;: true,
    &#34;paneProperties.legendProperties.showStudyTitles&#34;: true,
    &#34;paneProperties.legendProperties.showStudyValues&#34;: true,
    &#34;paneProperties.legendProperties.showSeriesTitle&#34;: true,
    &#34;paneProperties.legendProperties.showSeriesOHLC&#34;: true,//开高低
    &#34;paneProperties.legendProperties.showLegend&#34;: true, //收起左上角指标
    &#34;scalesProperties.showLeftScale&#34;: false,
    &#34;scalesProperties.showRightScale&#34;: true,
    &#34;scalesProperties.backgroundColor&#34;: color.KCoordinate,
    &#34;scalesProperties.lineColor&#34;: color.KCoordinate,
    &#34;scalesProperties.textColor&#34;: color.Kfont,
    &#34;scalesProperties.scaleSeriesOnly&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.autoScale&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.autoScaleDisabled&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.percentage&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.percentageDisabled&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.log&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.logDisabled&#34;: false,
    &#34;mainSeriesProperties.candleStyle.upColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.candleStyle.downColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.candleStyle.drawWick&#34;: true,
    &#34;mainSeriesProperties.candleStyle.drawBorder&#34;: true,
    &#34;mainSeriesProperties.candleStyle.borderUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.candleStyle.borderDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.candleStyle.wickUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.candleStyle.wickDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.candleStyle.barColorsOnPrevClose&#34;: false,
    &#34;mainSeriesProperties.hollowCandleStyle.upColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.hollowCandleStyle.downColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.hollowCandleStyle.drawWick&#34;: true,
    &#34;mainSeriesProperties.hollowCandleStyle.drawBorder&#34;: true,
    &#34;mainSeriesProperties.hollowCandleStyle.borderColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.hollowCandleStyle.borderUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.hollowCandleStyle.borderDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.hollowCandleStyle.wickUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.hollowCandleStyle.wickDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.haStyle.upColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.haStyle.downColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.haStyle.drawWick&#34;: true,
    &#34;mainSeriesProperties.haStyle.drawBorder&#34;: true,
    &#34;mainSeriesProperties.haStyle.borderColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.haStyle.borderUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.haStyle.borderDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.haStyle.wickUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.haStyle.wickDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.haStyle.barColorsOnPrevClose&#34;: false,
    &#34;mainSeriesProperties.barStyle.upColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.barStyle.downColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.barStyle.barColorsOnPrevClose&#34;: false,
    &#34;mainSeriesProperties.barStyle.dontDrawOpen&#34;: false,
    &#34;mainSeriesProperties.lineStyle.color&#34;: color.KCoordinate,
    &#34;mainSeriesProperties.lineStyle.linestyle&#34;: 0,
    &#34;mainSeriesProperties.lineStyle.linewidth&#34;: 1,
    &#34;mainSeriesProperties.lineStyle.priceSource&#34;: &#34;close&#34;,

    
    &#34;mainSeriesProperties.areaStyle.color1&#34;: color.KgArea2,
    &#34;mainSeriesProperties.areaStyle.color2&#34;: color.KgArea1,
    &#34;mainSeriesProperties.areaStyle.linecolor&#34;: color.KbArea,
    &#34;mainSeriesProperties.areaStyle.linestyle&#34;: 0,
    &#34;mainSeriesProperties.areaStyle.linewidth&#34;: 1,
    &#34;mainSeriesProperties.areaStyle.priceSource&#34;: &#34;close&#34;,
    &#34;mainSeriesProperties.areaStyle.transparency&#34;: 80,
}
  


}


export default data;

dark_simple.js
const color &#61; {
  //整体背景色
  Kbg:&#34;#171B2B&#34;,
  //亮红色
  KbRed:&#34;#ff575c&#34;,
  //亮绿色
  KbGreen:&#34;#3dcc89&#34;,
  //暗红色
  KdRed:&#34;#ff575c&#34;,
  //暗绿色
  KdGreen:&#34;#3dcc89&#34;,
  //字体色
  Kfont:&#34;#B2BAD6&#34;,
  //选中字体色
  KSFont:&#34;#3C68E9&#34;,
  //选中背景色
  KSBg:&#34;#FA5252&#34;,
  //坐标轴色
  KCoordinate:&#34;#49556B&#34;,
  //网格线色
  KGridLines:&#34;#1D2131&#34;,
  //日线颜色
  KDay:{
    &#34;day5&#34;:&#34;rgb(240,185,11)&#34;,
    &#34;day10&#34;:&#34;rgb(16,170,8)&#34;,
    &#34;day30&#34;:&#34;rgb(255,0,255)&#34;,
  },
  //鼠标虚线颜色
  KMouse:&#34;#c5c6ca&#34;,
  //btn字体选中色
  KSBtnFont:&#34;#2483ff&#34;,
  //btn背景选中色
  KSBtnBg:&#34;rgba(37,42,68,.5)&#34;,
  //btn border
  KSBtnBorder:&#34;#000000&#34;,
  //面积图背景色
  KgArea1:&#34;rgba(22,34,53,0.6)&#34;,
  KgArea2:&#34;rgba(36,44,61,0.6)&#34;,
  //面积图边框色
  KbArea:&#34;#929aa5&#34;
}

const data &#61; {
  studies_overrides:{
    //柱状图颜色
    &#34;volume.volume.color.0&#34;: color.KdRed,  //第一根的颜色
    &#34;volume.volume.color.1&#34;: color.KdGreen,  //第二根的颜色
    &#34;volume.volume.transparency&#34;: 0,    //透明度
    &#34;volume.volume ma.color&#34;: &#34;#FFFFFF&#34;, //波浪图颜色
    &#34;volume.volume ma.transparency&#34;: 0, //波浪图透明度
    &#34;KDay&#34;: color.KDay,    
    // &#34;volume.show ma&#34;: true,    //是否显示
    // &#34;volume.options.showStudyArguments&#34;: true,
    // &#34;bollinger bands.median.color&#34;: &#34;#33FF88&#34;,
    // &#34;bollinger bands.upper.linewidth&#34;: 7,
    // // MACD样式
    // &#34;MACD.MACD.color&#34;: &#34;#F00&#34;,
    // &#34;MACD.Signal.color&#34;: &#34;#fe8&#34;,
    // &#34;MACD.Histogram.color&#34;: &#34;#0f0&#34;,
    // 'MACD.MACD.linewidth': 1,

  },
  disabled_features:[
    'property_pages',
    &#34;left_toolbar&#34;,//左部工具栏
    'header_settings',//指标
    'header_fullscreen_button',//全屏
    'legend_context_menu',
    'context_menus',
    'header_indicators',
    &#34;edit_buttons_in_legend&#34;,
    // 'legend_widget',
    'format_button_in_legend',
    'delete_button_in_legend',

    'show_hide_button_in_legend',
    'study_buttons_in_legend',
    'source_selection_markers',
    &#34;header_interval_dialog_button&#34;,
    &#34;header_symbol_search&#34;,//头部搜索
    &#34;header_saveload&#34;,//上传下载
    &#34;header_screenshot&#34;,//截图
    &#34;header_chart_type&#34;,// k线样式
    &#34;header_undo_redo&#34;,//撤销返回
    &#34;timeframes_toolbar&#34;,//下面的时间
    &#34;volume_force_overlay&#34;,//防止他们重叠
    &#34;header_compare&#34;,//图表对比
    &#34;header_resolutions&#34;,//todo: przetestowac//头部的时间
    'countdown',//倒计时
    'pane_context_menu',
    'scales_context_menu',

    
    &#34;show_interval_dialog_on_key_press&#34;,
    &#34;symbol_search_hot_key&#34;,
    &#34;study_dialog_search_control&#34;,
    &#34;display_market_status&#34;,
    
    
    &#34;symbol_info&#34;,//商品信息
    &#34;border_around_the_chart&#34;,
    &#34;main_series_scale_menu&#34;,
    &#34;star_some_intervals_by_default&#34;,
    &#34;datasource_copypaste&#34;,
    // &#34;right_bar_stays_on_scroll&#34;,

    &#34;go_to_date&#34;,
    &#34;compare_symbol&#34;,
    &#34;border_around_the_chart&#34;,
    &#34;timezone_menu&#34;,
    
    'chart_property_page_style',
    &#34;control_bar&#34;,//todo: przetestowac
    &#34;remove_library_container_border&#34;,
  ],
  enabled_features:[
    &#34;adaptive_logo&#34;, //小屏幕上隐藏 'charts byTradingView' 文本
    &#34;dont_show_boolean_study_arguments&#34;, //是否隐藏指标参数
    &#34;move_logo_to_main_pane&#34;, //logo在中间位置
    &#34;same_data_requery&#34;, //允许您使用相同的商品调用 setSymbol 来刷新数据
    &#34;side_toolbar_in_fullscreen_mode&#34;, //使用此功能您可以在全屏模式下启用绘图工具栏
    &#34;disable_resolution_rebuild&#34;, //显示的时间与得到的数据时间一致
    &#34;seconds_resolution&#34;,//支持秒的周期
    'hide_last_na_study_output', // 隐藏指标后面的 n/a
    &#34;remove_library_container_border&#34;,
    &#34;constraint_dialogs_movement&#34;,//todo: nie do końca jestem pewien
    
  ],
  overrides:{
    &#34;symbolWatermarkProperties.color&#34;: color.Kbg,
    &#34;paneProperties.background&#34;: color.Kbg,
    &#34;paneProperties.vertGridProperties.color&#34;: color.KGridLines,
    &#34;paneProperties.horzGridProperties.color&#34;: color.KGridLines,
    &#34;paneProperties.crossHairProperties.color&#34;: color.KMouse,
    &#34;paneProperties.crossHairProperties.style&#34;: 2,
    // 数据列风格。 请参阅下面的支持的值
    //  Bars &#61; 0            #美国线
    //  Candles &#61; 1         #K线图
    //  Line &#61; 2            #线形图
    //  Area &#61; 3            #面积图
    //  Heiken Ashi &#61; 8     #平均K线图
    //  Hollow Candles &#61; 9  #空心K线图
    //  Renko &#61; 4           #转形图
    //  Kagi &#61; 5            #卡吉图
    //  Point&Figure &#61; 6    #点数图
    //  Line Break &#61; 7      #新价图
    &#34;mainSeriesProperties.style&#34;: 1,
    &#34;mainSeriesProperties.showCountdown&#34;: false,
    &#34;scalesProperties.showSeriesLastValue&#34;: true,
    &#34;mainSeriesProperties.visible&#34;: false,
    &#34;mainSeriesProperties.showPriceLine&#34;: true,
    &#34;mainSeriesProperties.priceLineWidth&#34;: 1,
    &#34;mainSeriesProperties.lockScale&#34;: false,
    &#34;mainSeriesProperties.minTick&#34;: &#34;default&#34;,
    &#34;mainSeriesProperties.extendedHours&#34;: false,
    &#34;volumePaneSize&#34;: &#34;medium&#34;,//底部视图大小 支持的值: large, medium, small, tiny
    &#34;editorFontsList&#34;: [&#34;Lato&#34;, &#34;Arial&#34;, &#34;Verdana&#34;, &#34;Courier New&#34;, &#34;Times New Roman&#34;],
    &#34;paneProperties.topMargin&#34;: 5,
    &#34;paneProperties.bottomMargin&#34;: 5,
    &#34;paneProperties.legendProperties.showLegend&#34;: true, //收起左上角指标
    &#34;paneProperties.leftAxisProperties.autoScale&#34;: false,
    &#34;paneProperties.leftAxisProperties.autoScaleDisabled&#34;: false,
    &#34;paneProperties.leftAxisProperties.percentage&#34;: false,
    &#34;paneProperties.leftAxisProperties.percentageDisabled&#34;: false,
    &#34;paneProperties.leftAxisProperties.log&#34;: false,
    &#34;paneProperties.leftAxisProperties.logDisabled&#34;: false,
    &#34;paneProperties.leftAxisProperties.alignLabels&#34;: true,
    &#34;paneProperties.legendProperties.showStudyArguments&#34;: true,
    &#34;paneProperties.legendProperties.showStudyTitles&#34;: false,//MA为名字
    &#34;paneProperties.legendProperties.showStudyValues&#34;: true,
    &#34;paneProperties.legendProperties.showSeriesTitle&#34;: false,//商品名称
    &#34;paneProperties.legendProperties.showSeriesOHLC&#34;: true,//开高低
    &#34;scalesProperties.showLeftScale&#34;: false,
    &#34;scalesProperties.showRightScale&#34;: true,
    &#34;scalesProperties.backgroundColor&#34;: color.KCoordinate,
    &#34;scalesProperties.lineColor&#34;: color.KCoordinate,
    &#34;scalesProperties.textColor&#34;: color.Kfont,
    &#34;scalesProperties.scaleSeriesOnly&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.autoScale&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.autoScaleDisabled&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.percentage&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.percentageDisabled&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.log&#34;: false,
    &#34;mainSeriesProperties.priceAxisProperties.logDisabled&#34;: false,
    &#34;mainSeriesProperties.candleStyle.upColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.candleStyle.downColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.candleStyle.drawWick&#34;: true,
    &#34;mainSeriesProperties.candleStyle.drawBorder&#34;: true,
    &#34;mainSeriesProperties.candleStyle.borderUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.candleStyle.borderDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.candleStyle.wickUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.candleStyle.wickDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.candleStyle.barColorsOnPrevClose&#34;: false,
    &#34;mainSeriesProperties.hollowCandleStyle.upColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.hollowCandleStyle.downColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.hollowCandleStyle.drawWick&#34;: true,
    &#34;mainSeriesProperties.hollowCandleStyle.drawBorder&#34;: true,
    &#34;mainSeriesProperties.hollowCandleStyle.borderColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.hollowCandleStyle.borderUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.hollowCandleStyle.borderDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.hollowCandleStyle.wickUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.hollowCandleStyle.wickDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.haStyle.upColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.haStyle.downColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.haStyle.drawWick&#34;: true,
    &#34;mainSeriesProperties.haStyle.drawBorder&#34;: true,
    &#34;mainSeriesProperties.haStyle.borderColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.haStyle.borderUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.haStyle.borderDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.haStyle.wickUpColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.haStyle.wickDownColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.haStyle.barColorsOnPrevClose&#34;: false,
    &#34;mainSeriesProperties.barStyle.upColor&#34;: color.KbGreen,
    &#34;mainSeriesProperties.barStyle.downColor&#34;: color.KbRed,
    &#34;mainSeriesProperties.barStyle.barColorsOnPrevClose&#34;: false,
    &#34;mainSeriesProperties.barStyle.dontDrawOpen&#34;: false,
    &#34;mainSeriesProperties.lineStyle.color&#34;: color.KCoordinate,
    &#34;mainSeriesProperties.lineStyle.linestyle&#34;: 0,
    &#34;mainSeriesProperties.lineStyle.linewidth&#34;: 1,
    &#34;mainSeriesProperties.lineStyle.priceSource&#34;: &#34;close&#34;,

    
    &#34;mainSeriesProperties.areaStyle.color1&#34;: color.KgArea2,
    &#34;mainSeriesProperties.areaStyle.color2&#34;: color.KgArea1,
    &#34;mainSeriesProperties.areaStyle.linecolor&#34;: color.KbArea,
    &#34;mainSeriesProperties.areaStyle.linestyle&#34;: 0,
    &#34;mainSeriesProperties.areaStyle.linewidth&#34;: 1,
    &#34;mainSeriesProperties.areaStyle.priceSource&#34;: &#34;close&#34;,
    &#34;mainSeriesProperties.areaStyle.transparency&#34;: 80,
}

  
}


export default data;

tabs.js
export default [
{
    value: &#34;1min&#34;,
    period: &#34;1&#34;,
    text: &#34;Time&#34;,
    chartType: 3,
    type: &#34;min&#34;,
  },
  {
    value: &#34;1&#34;,
    period: &#34;1m&#34;,
    text: &#34;1min&#34;,
    chartType: 1,
    type: &#34;1min&#34;,
  },
  {
    value: &#34;5&#34;,
    period: &#34;5m&#34;,
    text: &#34;5min&#34;,
    chartType: 1,
    type: &#34;5min&#34;,
  },
  {
  	value: &#34;15&#34;,
  	period: &#34;15m&#34;,
  	text: &#34;15min&#34;,
  	chartType: 1,
  	type:&#34;15min&#34;
  },
  {
    value: &#34;30&#34;,
    period: &#34;30m&#34;,
    text: &#34;30min&#34;,
    chartType: 1,
    type: &#34;30min&#34;,
  },
  {
    value: &#34;60&#34;,
    period: &#34;60分&#34;,
    text: &#34;1h&#34;,
    chartType: 1,
    type: &#34;60min&#34;,
  },
  {
    value: &#34;240&#34;,
    period: &#34;240分&#34;,
    text: &#34;4h&#34;,
    chartType: 1,
    type: &#34;4hour&#34;,
  },
  {
    value: &#34;1D&#34;,
    period: &#34;1D&#34;,
    text: &#34;1day&#34;,
    chartType: 1,
    type: &#34;1day&#34;,
  },
  {
    value: &#34;1W&#34;,
    period: &#34;1W&#34;,
    text: &#34;1week&#34;,
    chartType: 1,
    type: &#34;1week&#34;,
  },
  {
    value: &#34;1M&#34;,
    period: &#34;1M&#34;,
    text: &#34;1mon&#34;,
    chartType: 1,
    type: &#34;1mon&#34;,
  },
];

                               

声明:本文内容不代表斑马投诉网站观点,内容仅供参考,不构成投资建议。投资有风险,选择需谨慎! 如涉及内容、版权等问题,请联系我们,我们会在第一时间作出调整!

相关文章