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
-1
votes
1 answer

How do i ensure no signal repaint in this pinescript code?

I have this script and I believe it repaints.What changes can I make so that it doesn't repaint on tradingview, please explain in detail why and if you could reference me to the necessary resources? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x x x…
-1
votes
1 answer

fill between two lines

I’m trying to get a fill between two horizontal lines. However, I also want these two lines to start at the begining of the trading day and stop in the future (at the ending of the trading day ideally). On one hand, line.new can plot lines in the…
Cochon
  • 1
-1
votes
1 answer

Pseudocode for Swing Trading script

Can anybody please explain this code in simple words: no=input(3,title="Swing") res=highest(high,no) sup=lowest(low,no) avd=iff(close>res[1],1,iff(close
CuriousDev
  • 1,255
  • 1
  • 21
  • 44
-1
votes
1 answer

TradingView - pine script for exit strategy

Dears, I'm new in Pine Script and looking for your kind help. I have this beginner-level script that gives (buy signal) when fast MA crossed over slow MA and kept higher than crossing price for 3 days which I call it confirmed bars. However, I'm not…
mkoism
  • 63
  • 1
  • 1
  • 3
-1
votes
1 answer

Is there any way to import the tradingview chart into my ios app?

I found an embed code in the "Advanced Real-Time Chart Widget" section in Tradingview. How can I export this to a screen of my application on xcode.
CAE
  • 11
  • 2
-1
votes
1 answer

Pine Editor Trading View global variables one value for every bar

Is there a option to create a variable what holds the same value over all bars. I would like to calculate a value in on a bar and use it on the next bar.
-1
votes
1 answer

Does anyone know of a Python script which mimics TradingView's editor?

Please let me know if this question is not allowed, as I got a warning when asking it. I'm looking for a Python script which mimics TradingView's pine script editor. What I mean by this is TradingView's editor goes through each candle on the…
Wayne Filkins
  • 317
  • 1
  • 5
  • 14
-2
votes
0 answers

Pine Script - Built - In variable are not working correctly when fetching via request.security() function?

Challenging Question For All Pine Script Developers Out There Please Help : I wanted to draw boxes. Condition of drawing a box is : Going from right to left in chart. If a candle whose ATR(14) is more than the previous candle ATR(14) mark it as…
-2
votes
0 answers

tradingview // Backtest 3 Line Strike Strategy problem chatgpt

I asked chatgpt to create a strategy for me based on the three strike lines. He did it without any problem, but then I get stuck because the strategy doesn't take buy and sell orders. On the indications in the form of triangles, after several…
julian
  • 1
  • 2
-2
votes
1 answer

Pine script - Price Change between Previous day close and current day's open price

can someone please provide a code to check for price change between previous day close (at 3:40pm) and current day's open price (at 9:05 am)
Akash
  • 63
  • 1
  • 5
-2
votes
1 answer

issue with code could not run in Pine Script? “Undeclared identifier” error

Every time I tried to run the code I got this message. 10:32:09 PM Error at 4:37 Undeclared identifier 'input.' 10:32:09 PM Error at 4:32 The 'input' function does not have an argument with the name 'type' 10:32:09 PM Error at 6:5 Could not find…
-2
votes
1 answer

python selenium click on button not working correctly, normal click by mouse is OK

I use python to automate tradingview and I remove all alerts and set a new alert but it is not working. There appears a popup with two buttons Yes and No. Manual clicking by mouse is OK but using Selenium to click on the button but is not…
-2
votes
1 answer

Want value as number, number is that bar number of highest intraday price of stock from opening

Image to clear what output is neededhad tried multiple logic to get exact bar number from opening of market where stock price was highest/lowest, Please suggest a better whole code. e.g. attached image, where i want value 11 as output for day low…
-2
votes
1 answer

My stop loss isn't working on my pine script for tradingview

I'm very new to coding and made the following parameters to automate my trading strategy. My stop loss just isn't working and I have no explanation as to why. Also I think my TP and SL are flipped, but even if flipped the TP works just the SL…
-2
votes
1 answer

Trading View Volume Indikator

Is it possible to get the Value of the first Volume Bar and safe it in a variable? Thanks. Ist it possible to safe the Value of the first Vol. Bar abd safe it in an variable?
Alex
  • 1