Questions tagged [tradingview-api]

TradingView is a financial web-platform and a social network for traders. Use this tag for questions related to the programming API of TradingView products: Charting Library, Social Tools, Widgets. If you have questions about the Pine Script language use the [pine-script] tag. Do not use this tag for questions about the website.

TradingView is a financial web-platform and a social network for traders. Use this tag for questions related to the programming API of TradingView products: Charting Library, Social Tools, Widgets. If you have questions about the Pine Script language use the pine-script tag. Do not use this tag for questions about the website.

1436 questions
6
votes
0 answers

How can i integrate tradingview chart with pyqt?

i want to integrate https://www.tradingview.com/widget/advanced-chart/ with my application. Primarily i just want to be able to display the chart and be able to click the buttons etc inside a pyqt app normally but i would probably then also want to…
n00p
  • 269
  • 4
  • 11
5
votes
1 answer

Trading view charting library week start by default from Monday I want to change it to Sunday

I am using the trading view charting library and the issue is that all of the stocks are Saudi Arabian so in Saudi Arabia week starts on Sunday, and in the library, the week begins on Monday so when I click on weekdays from the tab, the footer show…
Noman
  • 594
  • 1
  • 18
5
votes
1 answer

How to add custom indicator in trading view Charting library in reactjs

I have trading view charting library i'm working on it but now i want to add custom indicator in it but i don't know how to do.
Noman
  • 594
  • 1
  • 18
5
votes
1 answer

How to modify default style of tradingview widget indicators?

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:…
Nicolas Torres
  • 171
  • 1
  • 4
5
votes
2 answers

accessing private websocket data from tradingview in python

I am able to get live ticker data and the prior 500-100 candle chart data with this code but I am unable to get data that isn't delayed for CME_MINI:ESH2021. TradingView puts a 600 second delay I believe on the public stream. I do pay for the data…
PaulRydberg
  • 51
  • 1
  • 3
5
votes
1 answer

TradingView Lightweight Chart price seems to not scale correctly

I just added the real time data of bitcoin to my chart. There has been a peak that is so high even tradingview can't handle it... At least, on my chart. This is how it looks like: As you can see at the second of june bitcoin went up so high that it…
Allart
  • 830
  • 11
  • 33
5
votes
1 answer

How do I receive Tradingview alert Webhooks in Python

I'm trying to have alerts sent via webhook (TradingView's new feature) to a python program, and use them to make trades with Alpaca. I tried using ngrok plus this script I found on Github: https://github.com/Robswc/tradingview-webhooks-bot After…
Wayne Filkins
  • 317
  • 1
  • 5
  • 14
5
votes
4 answers

How to create responsive Tradingview Lightweight Chart?

I am new to Tradingview charting library and I want to create like responsive chart. The problem is, trading view charting library requires to specify width and height. Here is the code. const chart = LightweightCharts.createChart(e, { width:…
dkregen
  • 448
  • 2
  • 6
  • 16
4
votes
3 answers

Pine Script : Entering after x consecutive Green Bars / Candles

I am trying to enter a strategy after "X" consecutive bars. greenCandle = barstate.isconfirmed and (close > open) G = input(11, minval=1) strategy.entry("buy", true, 1, when = greenCandle[G] and close[0]>open[0]) This gives me an entry 11 bars…
hello11
  • 115
  • 4
  • 15
4
votes
1 answer

tradingview library allow symbol change: false not working

Trading view widget is working fine except one parameter allow_symbol_change: false,. I tried this and its not working at all. Code: - const widgetOptions: ChartingLibraryWidgetOptions = { symbol: this.props.symbol as string, …
dev
  • 109
  • 5
4
votes
2 answers

i want to integrate trading view library in my project but this error comes

I am getting this error TypeError: Cannot read properties of undefined (reading 'UDFCompatibleDatafeed')
Noman
  • 594
  • 1
  • 18
4
votes
1 answer

Tradinview api: automaticly add users to private Indicator

I was wondering if Tradingview offers an API call to manage users and give rights to private indicator scripts? I would like to publish an Indicator as "invite-only": I would like to setup a Link on my Website, where users can add there Username,…
4
votes
1 answer

Creating shape or marks in custom indicator, (tradingview charting library (pinejs))

is there any way to create shape or create marks on chart in custom indicator using tradingview charting library. I am using this way to create custom indicators. Thanks in advance.
4
votes
3 answers

Calculate RSI indicator according to tradingview?

I would like to calculate RSI 14 in line with the tradingview chart. According to there wiki this should be the solution: https://www.tradingview.com/wiki/Talk:Relative_Strength_Index_(RSI) I implemented this is in a object called RSI: Calling…
Justme
  • 211
  • 2
  • 9
4
votes
0 answers

How to convert my online pine scripts to indicators for the charting library?

I've been through hundreds of sites, articles, repositories and chat rooms to try and find out how I could convert my scripts from the TV website into custom studies for the charting library. Most of the sites or guides say "send us your scripts and…
4UmNinja
  • 510
  • 4
  • 14
1
2
3
95 96