7,290 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
47
views
Line is displayed on all timeframes greater than 1H, not but 1H and below
I am writing a basic indicator which displays the pivot(high+low+close/3) according to the timeframe.
the issue is arising for the 12M timeframe.
basically the 12M pivots are displayed for all chart ...
0
votes
0
answers
41
views
Bars get squashed when linefill is enabled
I encountered a bug when filling the colour between two vertical lines.
As soon as I enable fill, candlesticks get squashed.
I made this short script to demonstrate the problem.
//@version=6
indicator(...
0
votes
0
answers
60
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
69
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
120
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
147
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
87
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
104
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
74
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
69
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
56
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
61
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
81
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
68
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
80
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 ...