tradingview / charting-library-examples

Examples of Charting Library integrations with other libraries, frameworks and data transports
MIT License
1.33k stars 744 forks source link

How to custom EMA length ? #215

Closed ghost closed 3 years ago

ghost commented 3 years ago

First, i am very sorry for asking question here.

I want to add 2 EMA: 34 and 89 to TradingView widget, but how can i custom the EMA length ? I search the internet and also in https://github.com/tradingview but nothing worked.

There is the code:

<div class="tradingview-widget-container">
  <div id="tradingview_cf4f3"></div>
  <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
  <script type="text/javascript">
  new TradingView.widget(
  {
  "width": 600,
  "height": 600,
  "symbol": "BINANCE:BTCUSDT",
  "interval": "D",
  "timezone": "Asia/Ho_Chi_Minh",
  "theme": "light",
  "style": "1",
  "locale": "en",
  "toolbar_bg": "#f1f3f6",
  "enable_publishing": false,
  "hide_top_toolbar": true,
  "studies": [
    "MAExp@tv-basicstudies",
    "MAExp@tv-basicstudies"
  ],
  "studies_overrides": {
      // custom EMA length
   },
  "container_id": "tradingview_cf4f3"
}
  );
  </script>
</div>

Thank for your help.

timocov commented 3 years ago

This repo is not for tradingview's widget. If you'd like to get help with widget, please contact website's support instead.