7,300 questions
-1 votes
0 answers
23 views
Code help to read ta.lowest and ta.highest figures for dol
enter image description here I have a script which reads lowest lows and highest high. What I want help with is to do a draw on liquidity alert where a candle low is below previous ta.lowest low and ...
0 votes
0 answers
51 views
How to plot with offset in multi-timeframe script?
I am developing pinescript indicator with multi timeframe support indicator("My indicator", timeframe = "") I want to plot somevalue with offset plot(somevalue, offset = 5) This ...
0 votes
1 answer
60 views
Broker emulator triggers stop loss order even though price action should not trigger it
Entry price is at the blue rectangle, and exit ( stop loss ) price is at the purple rectangle. This image exactly denotes what the broker emulator executed. According to the documentation https://www....
0 votes
1 answer
105 views
Other Time Frame values are strange
I am new in pine script and just tring to print the value of RSI of two different timeframes eg "D" (Daily) and "60" (Hourly) using the following code but whenever I change the ...
-1 votes
1 answer
139 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
68 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
89 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
66 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
1 answer
65 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 ...
0 votes
0 answers
52 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
56 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
59 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
62 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
69 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
50 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 ...