Questions tagged [pine-editor]
28 questions
2
votes
0 answers
Buttons or hyperlinks on chart to change settings
I've been searching around and don't think this is possible yet but would be nice to have.
Looking for a way to turn visibility on and off for options in a script faster. Currently you have to click through the cog, then on to inputs or style to…

user3200254
- 21
- 2
2
votes
2 answers
Pine Script - Buy/Sell indicator for TradingView that meets multiple conditions
I am trying to build a BUY/SELL Indicator for TradingView by using three indicators, EMA, MACD and Supertrend.
Condition 1: The Fast EMA crosses up the Slow EMA.
Condition 2: The MACD line is above the Signal Line.
Condition 3: Supertrend is in…

Amlan Dutta
- 372
- 3
- 7
- 17
1
vote
1 answer
Is it possible to group together plots in pine editor?
I have an indicator that has an 8 sma ribbon and 4 other MAs. Is it possible to divide these into two groups with check boxes in the settings dialog box so I can hide the ribbon so my charts don't look cluttered?
I'm new to coding, any help is…

CrypticSins
- 11
- 1
1
vote
1 answer
Calculate RSI gain/difference in Pine Editor?
By using the command "crossover" I can successfully display the intersections of the RSI-value and the RSI-sma.
rsiValue = rsi(close, 14)
rsiSMA = sma(rsiValue, 14)
bgcolor(color=crossover(rsiValue, rsiSMA) ? #ffc1cc : na,…

282solutions
- 35
- 4
1
vote
0 answers
Tradingview Occasional False Alarms
There is an indicator that I have shared the codes below. The alarms I set are working incorrectly. It can send fake signals without showing "buy" or "sell" on the screen. How can we make this work only after typing buy and sell on the screen and…

KZMKBL
- 11
- 1
0
votes
0 answers
unable to perform strategy.entry in pine editor
Im trying to make custom qty size whenever a trade should be preformed.
i was able to get to the lot size that should be traded, but it dosent open trades anymore.
Spent a couple of hours on this also searched the web, no solution...
would…

Gaming World
- 29
- 4
0
votes
1 answer
Keep Plotcandle active all the time Pine Script Ver 5
I want to change the candlestick chart color based on the SuperTrend indicator. I did but there is a problem.
The candlestick colors change only if I put my mouse on the SuperTrend line.
I want these colors to stay all the time.
Here are my…
0
votes
1 answer
Pine Script - Setting up Alerts on TradingView for Trading Bot
I am trying to setup alerts for TradingView with my strategy to use on a trading bot.
I want to add alerts for:
Buying Long
Closing Long
Buying Short
Closing Short
when I try adding alerts I don't get the buy/sell conditions in the "Add Alerts"…
0
votes
0 answers
Coloring column's chart in TradingView, positive and negative values
I'm using economic data in TradingView in column type chart. The values can be positive and negative (differently of prices values that can not be negative).
I need a Pine Editor script for to color bars based on positive and negative values.
I…

Daniel Arges
- 345
- 3
- 13
0
votes
1 answer
How can I fix the 'end of line without line continuation' error in TradingView's Pine Editor?
I have no idea why I keep getting this error on the line with the longFillColor… I tried adding the colon & I tried splitting the code across multiple lines, but to no avail. It says that it is a syntax error, but I'm unable to locate the…

W3C0d3
- 3
- 3
0
votes
0 answers
Tradingview pine script Extreme from specified time range
I'm working on a script to show the extremes (highest high and lowest low) from a specific time range, for example last X days, or between two timestamp inputs.
I want to get a single value for high and low that I can plot as a horizontal line on a…

cornisto
- 119
- 2
- 9
0
votes
1 answer
How to limit number of bars automatically in my indicator?
I'm fairly new to the pine script and working on a slightly complex indicator with multiple parameters. I want my indicator to change bar colour up to last 500 bars only starting from bar index. It will change colour of the bar depending on the…

Sanket Kolte
- 5
- 3
0
votes
0 answers
What is wrong with this script for trading view?
I've been trying to create an indicator in tradingview and wrote out the strategy code, I believed this to be correct but tradingview can not compile the script. What am I missing or doing wrong?
`// This source code is subject to the terms of the…

spork
- 1
0
votes
2 answers
Creating Moving Average crossover in TradingView Pine Editor
i want to create a pine script in trading view for a moving average crossover between a EMA of length 5 and SMMA (Smoothed Moving Average) of length 7
I was able to create for the 5 EMA but couldnt find how to input the smoothed moving…

Ranjith
- 1
0
votes
1 answer
How can I code a function to show/hide QMI indicator on the settings ? PINESCRIPT
`Experts, I wanted to add a function I can hide/unhide this indicator. so far I tried using
showzigzaglen(true, "QMI", "inline=01")
plot(showzigzaglen ? zigzaglen : na)
it's not hiding the indicator from the settings or turning it off, I'm trying…