7,307 questions
0
votes
0
answers
52
views
Why do the values in the labels keep changing as the candle moves?
I have some signals that are generated through logic within my indicator. They are plotted as “dots, triangles, or arrows” or other shapes. What I wanted was a way to “monitor” the indicator signals. ...
0
votes
1
answer
45
views
Undeclared identifier "label" TradingView PineEditor v6
Trying to get better at my buying and selling decisions. Thus I want to add my buy and sells to a tradingView and try to analyze them. But I keep getting the following error:
Here is a part of my ...
0
votes
1
answer
29
views
Why are my Daily MA50/100/200 lines jagged instead of smooth even with smoothing turned off?
I’ve written a Pine Script to display the Daily 50/100/200 Moving Averages on lower timeframes (like 1H or 15m).
I’m pulling the data using request.security() to lock it to the 1D timeframe so it ...
1
vote
1
answer
55
views
TradingView Self-managing alerts delay
I use the alert in my code to send alerts, and I want to be alerted more often than once per bar. So I set the freq to All, but I also want to restrict the amount of alerts to not be blocked.
I ...
0
votes
1
answer
36
views
Pine Script request.security weird outcome (calculates future dividend to history)
When using request.security function in Pine Script, like in the script below, I find weird outcomes when there is dividend at play.
I used the function a lot for crypto... no dividends, so no problem ...
0
votes
0
answers
37
views
ta.dev is expecting a bool input?
Using Pine v6, I get an error on line 2 that I don't understand.
float bar_hh = ta.highest(2)
float bar_h1 = ta.dev(bar_hh, 2) ? na : bar_hh
bar_hh is float.
Still, the error I get is complaining ...
-2
votes
0
answers
29
views
Trading View - Pinescript
I want to edit the RSI range. I can share pics of the desired output, I am unable to duplicate the output. The indicator is custom made. Need help
I tried creating a custom script of my own by ...
0
votes
0
answers
37
views
How to get security_lower_tf 1hr data from previous 1D candle, not current
My indicator is on the daily timeframe and I'm using the security_lower_tf to gather the 1hr volume data. The problem is that security_lower_tf only returns as many hours there are in the current/...
0
votes
1
answer
45
views
Weighted smoothing based on Pascal's triangle
This code causes an erroLir Line Cintinuation error. Some reason it does not recognize the colon at the end of the case statements
//@version=6
indicator("Smooth1 with Series Input", ...
0
votes
0
answers
36
views
Pine Script session indicator plotting different candles across timeframes and not resetting sessions properly
I am trying to write a Pine Script indicator that draws trading sessions as a single candle (based on user-defined start and end times).
The indicator should:
Plot session candles consistently across ...
0
votes
1
answer
42
views
Weird issue with request.security(syminfo.tickerid, "M", open[12]) statement
Bear with the length of this but it is confusing the heck out of me. When I run this statement in trading view on a Daily Chart:
open1 = request.security(syminfo.tickerid, "M", open[12])
and ...
0
votes
0
answers
45
views
Pine Script v6: How to make indicator legend background transparent to match pane background?
I've created a Pine Script indicator with a custom pane background colour using bgcolor(). The background displays correctly, but the indicator legend area (showing indicator name and values) has its ...
0
votes
0
answers
36
views
Plotting Higher timeframe Linear Regression Channel on current timeframe
I am trying to plot weekly timeframe Linear regression channel on my daily chart
the values look fine, only the starting point is not correct. I even tried using the lineStart variable in the function ...
0
votes
0
answers
60
views
Array does not keep his content via barstate.isnew in realtime
I wrote a simple indicator to test push/pop upon array.
//@version=6
indicator("My script test unshift array", overlay=true)
var t = array.new_int()
if barstate.isnew
if array.size(t) &...
-1
votes
0
answers
42
views
The backtest result in treadviewn did not record the alarm output
The position was opened correctly, and it was open in the treadview, and I was tracking it in real time. The asset price moved 50% in favor of the position and then turned against it, close to the ...