CORVO-AI commited on
Commit
d8eea4e
·
verified ·
1 Parent(s): 48068f3

Update templates/chart.html

Browse files
Files changed (1) hide show
  1. templates/chart.html +12 -3
templates/chart.html CHANGED
@@ -27,10 +27,9 @@
27
  const theme = "{{ theme|e }}";
28
  // indicators is an array
29
  const indicators = {{ indicators|tojson|safe }};
30
-
31
  const fullSymbol = exchange + ":" + symbol;
32
 
33
- new TradingView.widget({
34
  autosize: true,
35
  symbol: fullSymbol,
36
  interval: interval,
@@ -45,7 +44,17 @@
45
  save_image: false,
46
  hide_volume: false,
47
  container_id: "tradingview_widget_container",
48
- studies: indicators
 
 
 
 
 
 
 
 
 
 
49
  });
50
  </script>
51
  </body>
 
27
  const theme = "{{ theme|e }}";
28
  // indicators is an array
29
  const indicators = {{ indicators|tojson|safe }};
 
30
  const fullSymbol = exchange + ":" + symbol;
31
 
32
+ const widget = new TradingView.widget({
33
  autosize: true,
34
  symbol: fullSymbol,
35
  interval: interval,
 
44
  save_image: false,
45
  hide_volume: false,
46
  container_id: "tradingview_widget_container",
47
+ studies: indicators,
48
+
49
+ // Option A: add empty bars to the right (shifts chart left)
50
+ right_offset: 20 // try increasing to 30–50 if you need more room
51
+ // Some builds accept camelCase:
52
+ // rightOffset: 20
53
+
54
+ // Option B (fallback): comment out right_offset above and use this:
55
+ // overrides: {
56
+ // "paneProperties.rightMargin": 80 // pixels of right padding
57
+ // }
58
  });
59
  </script>
60
  </body>