How to modify default style of tradingview widget indicators?

Viewed 996

Right now, I know how to define default inputs for indicators of the widget (see code below). But I want to define default styles. I have not found the right way to do it. Anyone knows?

 var chart = new TradingView.widget(
    {
      autosize: true,
      symbol: "OANDA:EURUSD",
      interval: "3",
      timezone: "America/Bogota",
      theme: "dark",
      style: "1",
      locale: "en",

      hide_side_toolbar: true,
      hide_top_toolbar: false,
      toolbar_bg: "#f1f3f6",
      enable_publishing: false,
      allow_symbol_change: true,
      details: false,

      hidevolume: true,

      studies: [

        {
          id: "IchimokuCloud@tv-basicstudies",
          version: 2.0

        },
        {
          id: "Stochastic@tv-basicstudies",
          inputs: {
            K: 3,
          }
        }
      ],
      container_id: "tradingview_7f23e"
    }
  );
1 Answers

You should pay for tradingview and check the documentation. but

studies_overrides: {
    "volume.volume.color.0": "#00FFFF",
},

i think is your answer. search for studies_overrides

Related