Skip to main content

Questions tagged [pine-script-v5]

Always use the [pine-script] tag in conjunction with this tag. Use this tag ONLY for questions relating to Pine Script version 5 code.

pine-script-v5
0 votes
0 answers
9 views

Trend lines create label if it touches trend line

I found one code and I wanted label creation if it touches the trend line. Could someone please help me here. Eg below in the image. I tried modifying the code but I am not getting the results as ...
Mayur Sabane's user avatar
0 votes
0 answers
11 views

Pine Script 5. How to draw lines (High, Low) for individual quarters of the year?

`Indicator of quarterly lines "Quarter & lines". Quarters of the year. Horizontal lines of the quarters. : Lines of Conditional Quarters in a year: Day. Month - Day. Month 1st pair of ...
Dmitriy Dim's user avatar
0 votes
0 answers
11 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
0 answers
14 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
0 votes
0 answers
5 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
0 answers
12 views

Pine Script to display Pivot point and CPR

<pre><code> // © munnababu //@version=5 your textindicator("Pivot Points with CPR", "Pivots", overlay=true, max_lines_count=500, your textmax_labels_count=500) ...
Munna Aravinda Babu's user avatar
0 votes
0 answers
8 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
0 votes
0 answers
27 views

How to set chart link in Alert condition

I make little modification in my post. I just want to add chart link on my alertcondition. It could be useful for those who trade with many pairs / instruments. volEMA = ta.ema(volume, emaLength) ...
Seeschon's user avatar
  • 428
0 votes
0 answers
13 views

How to compare two strategies in one pine script v5

I have a script for a buy/sell strategy with data output. This is done for one MA. It is working fine and gives the desired data. However, since I'm on the basic plan, I cannot have many indicators/...
Celly's user avatar
  • 325
0 votes
0 answers
21 views

Pine Script request.security higher timeframe issue with Backtesting results

In a nutshell: I'm developing a multi-timeframe trading strategy in Pine Script. The strategy uses two moving averages (44-period and 777-period) calculated on the 1-hour timeframe to determine a &...
Pokeas's user avatar
  • 1
0 votes
0 answers
33 views
+100

Cannot call operator with argument. An argument of 'series string' type was used but a 'simple string' is expected with request.security

I know this question has been asked many times, but some have got work around to this. I am facing issue when I want to get the current price of the index and add 2 strike above or 2 strike below ...
naim shaikh's user avatar
  • 1,003
0 votes
0 answers
14 views

pine script strategy.exit() stop not working on a live chart

On historical bars the stop works fine but on a live chart the stop doesnt work correctly. If the stop level is met it will close on bar close. The take profit exits at the correct limit price, but ...
Jesse's user avatar
  • 1
0 votes
1 answer
13 views

How can I get the prices of the previous days at the end of the exchange in pinescript?

I tried to use the following code line to get the average of the previous 365 days, but it returns the lasts 365 bar prices: ta.sma(close, 365) How can I get the prices of the previous days at the end ...
Alexandre César Barbosa's user avatar
-2 votes
0 answers
9 views

Pinescript, ni fractal in inside bar

can you help edit this script, i don't know how to edit a script i only use ai, but my problem is i want the bar that created an inside bar and it's preceding bar, if it not crossed it's high or low ...
Crypto Mark's user avatar
0 votes
1 answer
31 views

Pine Script Backtester Misinterprets strategy.order Scaling as Separate Trades

I'm developing a Pine Script strategy on TradingView with scaling entries positions. While strategy.order should ideally scale into an existing position, the backtester seems to interpret each ...
Pokeas's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
179