Skip to main content
The 2024 Developer Survey results are live! See the results

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.

-1 votes
0 answers
7 views

How to code a tradingview indicator that calculate How much the price have changed on each green candles streak with plotting the result

How to code a tradingview indicator that calculate How much the price have changed on each green candles streak with plotting the result And samething for red candles straks candles streak : means no ...
Hanafi Yacine's user avatar
0 votes
0 answers
3 views

Apply different customized indicator for different tickers in tradingview

I have created 2 customized indexes-indicators one for big 4 techs and other for 4 big banks. I would like to be able to tell trandingview which one to use depending on the working-ticker displayed. ...
mariano.b.'s user avatar
0 votes
1 answer
17 views

PineScript not executing strategy.* for futures even when conditions are met

I have been pulling my hair out on this one and support was no help. I have a strategy that executes for BCT and Stocks, but does not execute for ES or MNQ futures, even though the conditions are met. ...
TurboPascalRox's user avatar
0 votes
0 answers
13 views

Pinescript - Premarket high low query

I would like to query the highest and lowest price from the premarket session and draw a line at these two prices. I tried this: if session.ispremarket pmHigh := high pmLow := low x1 = line....
Max's user avatar
  • 37
0 votes
0 answers
13 views

calc_on_every_tick breaks with too many alerts

I have a strategy which needs to alert on the actual candle where the buy/sell signal occurs. By default Trading View only alerts on the next candle, so I've tried adding calc_on_every_tick which did ...
Null isTrue's user avatar
  • 1,896
0 votes
0 answers
13 views

How to select bar range for indicator calculation in pinescript? Converting volume profile to interactive custom range volume profile

I'm trying to rework the volume profile script to an interactive one where I can select a custom bar range for volume profile calculation similar to the paid version on tradingview. I already made the ...
Krystian Niemiec's user avatar
-1 votes
0 answers
12 views

Pinescript: Probability Table for Reaching Specific Price Levels

I can't calculate the probabilities of the price reaching certain levels based on the last X closed trades The part of the code that handles counting and calculating probabilities. // Parameters ...
Simone Rossi's user avatar
0 votes
0 answers
8 views

tradingview-lightweight-android apis not getting updated

I have a page in jetpack-compose in which I show a financial chart, using tradingview-lightweightchart-android library(which is just a wrapper around webview and tradingview-lightweight-chart). The ...
Arman TabibZadeh's user avatar
-4 votes
0 answers
27 views

pinescript inside bar and mother candle [closed]

my problem is that i can't get rid of the fractals within the mother candle's ranges, there are always some still appearing. because I would like that as long as the mother candle is not crossed, its ...
Crypto Mark's user avatar
0 votes
0 answers
5 views

Express server not receiving webhook requests from TradingView

I have set up an Express server to handle webhook requests from TradingView, but the requests don't seem to be reaching my server. Below is my server code and the steps I've taken to debug the issue. ...
최태혁's user avatar
0 votes
0 answers
42 views

Tradingview advanced not showing

Working on integrating tradingview advanced on nextjs 14, but the chart is unable to show I've setup my trading widget by using the default parameters and trying other parameters but still unable to ...
miracle godwin's user avatar
0 votes
1 answer
30 views

Alert Condition Not Firing Correctly

Wrote an strategy and having an issue with same type of alert (buy or sell) firing multiple times in a row i.e buy, sell, sell, buy, buy, buy, sell I need only one alert (for buy or sell) to fire at a ...
Null isTrue's user avatar
  • 1,896
0 votes
1 answer
24 views

Pine Script Nadaraya-Watson How to draw multiple lines based on two values ​in a single indicator?

I wish to have double band lines for 2 and 3 at the same time by giving the "mult" parameter more than once in the nadaraya-watson indicator. I tried merging the code block but it always ...
Eserxm's user avatar
  • 1
-1 votes
0 answers
9 views

Pinescript Code Merger error: line not visible

I wanted to multiplex an indicator belonging to Nadaraya Watson and get results based on two different values. For this, I named and combined the variables in the second code blog differently, but ...
Eserxm's user avatar
  • 1
0 votes
1 answer
12 views

Multiple HTF EMA

Why daily EMA20 is a stepping line not a smooth one. like weekly or monthly EMA string custTime = na if timeframe.isdaily or timeframe.isminutes custTime:=input.timeframe("D","Daily&...
Harender Singh's user avatar

15 30 50 per page
1
2 3 4 5
103