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

Pinescript error version is not supported

I have the code below, is a simple strategy and somehow I manage to it up, can anyone fix this? It was working fine until I added time and ADX parts to it // This source code is subject to the terms of the Mozilla Public License 2.0 at…
-2
votes
1 answer

When strategy says long Entire chart turns green , short entire chart red

Dont want like thisTitle says it all, i want like this When strategy says long Entire chart turns green, previous signal should not matter , It should not paint zebra , green red green... Gradient background even better if possible. Complete chart…
-2
votes
1 answer

connecting tradingview strategy to 3commas using escape characters

hi so i have tweeked an already existing strategy, that uses v2 pine for swing trades, it looks profitable, but i am unable to connect it to 3commas using 1 alert to long or close long, i tried to make an escape charechter to make the strategy need…
-2
votes
1 answer

pinescript coding buy only over 200ma

i have RSI strategy which buys when oversold. is there a way to code that only submits buy order if stock is above 200 ma. i have taken two courses on pine script but can not work out how to do it.
-3
votes
0 answers

TradingView Library supporting < 1D resolutions

I have an old (2018/2019) implementation of the Trading View library that I'm trying to fix. It only works in 1D (1 Day) or greater time frames, as the UI has greyed-out the shorter time periods. However, my server is setup to handle 1 minute, 1…
Aaron Kreider
  • 1,705
  • 5
  • 22
  • 44
-3
votes
0 answers

I have a problem with my Trading algorithm, using Pine Editor, I cannot understand it and I need help combining more than one indicator in 1 strategy

//@version=5 // Step 1. Script settings indicator(title="Donchian Channel", overlay=true) // Channel settings dcLen = input.int(96, title="Channel Length", minval=2) // Visual settings showMid = input.bool(false, title="Show Midpoint…
-3
votes
0 answers

Is this a Tradingview bug? In the TV strategy, my problem is that the buy signal is displayed normally on the chart, but no alert appears

enter image description hereI want to implement buying by entering a certain price in the tradingview strategy, and I can also achieve one-click close all through the Pine Script, this is my code, now the problem is that the buy signal will be…
Bruce
  • 1
  • 2
-3
votes
1 answer

Stopped - Too many triggering error Tradingview . Why is this happening?

In the strategy I created; This is how the Strategy Login and Exit alarms fail. How can I solve this problem? The strategy uses pyramiding. enter image description here enter image description here enter image description here
-3
votes
1 answer

Pinescript short position not closing

code extract The code is shown in the picture above. It is only opening one position as shown in the second picture output
-3
votes
2 answers

Tradingview Invite only scripts

Greeting,, Is there any a way to copy invite only scripts from tradingview? I want to copy a script and add some modifications
-3
votes
1 answer

How to code this Trading View indicator in Pine Script

How do I code the following for Trading View? if a bars high - low is greater than 0.05 but less than 0.13 then plot the number 5 if a bars high - low is greater than 0.14 but less than 0.16 then plot the number 4 if a bars high - low is greater…
RNB
  • 29
  • 4
-3
votes
1 answer

Need help converting pine script from version 2 to version 5

I am new to TradingView Pine scripting. I am seeking for help with a pine script which is on version 2 right now but I am trying convert it into Version 5 and is having so many compilation errors. I would really appreciate any help. Thank you all in…
-3
votes
1 answer
-3
votes
1 answer

How to delete a tag that shows up only on inspect element on my website

I have embedded a widget on my website which has a watermark which can't be removed (can't even pay to remove it) Here's the code i have embedded:
Meta Matt
  • 1
  • 1
-3
votes
1 answer

Tradingview's Strategy tester

I programmed a strategy with Pine but upon running it and looking at the list of executed trades in the Strategy Tester, the results are puzzling to me. The first trade was a long position of 5 contracts bought at 103.067$ and hit its target of…
1 2 3
95
96