Questions tagged [pine-script-v4]

Pine Script is a scripting language designed by TradingView. It allows users to create custom indicators and run them on their servers.

Pine is a lightweight language focused on the specific task of developing indicators and strategies. Most of TradingView’s built-in indicators have been coded in Pine.

See documentation of Pine Script v4

665 questions
-1
votes
1 answer

Why cant I merge trading view indicators on PineScript V1 Code and V5 code which keeps giving me errors?

Can anyone kindly tell me what im doing wrong when I try to merge two Indicators on Tradingview? One indicator code is V5 and the other is V1. Why is it not possible to merge them into one indicator? I have no idea what I'm doing as I'm new to all…
-1
votes
1 answer

How can i see candle length on chart through pine script

I want to see the length of every candle on the chart through pine-script I don't know how to write pine-script please help me out
-1
votes
1 answer

How to write code which detect high (highest point of candle) of biggest candle in a particular time range in Pine-Script?

I need help in getting the highest point of biggest candle in a particular time range of any previous session irrespective of my current session.
-1
votes
1 answer

EMA mean reversion Algo : Short Trade

I am very new to pine script and trying to generate an EMA mean reversion algo. Conditions are as follows TimeFrame: 10mins, Time 9:15 a.m to 10:15.a.m otherwise no entry Candle low should be far away and above from the user input EMA (example…
-1
votes
1 answer

How to plot horizontal lines on high and low of the 9.30 candle in 1minute char time frame

How to plot horizontal lines for high and low on the candle formed at 9.30 in 1 minute timeframe in pinescript.
-1
votes
2 answers

PineScript: How to translate priceline on y-axis by priceline? Keeps Flatlining ෴ -> _____

How can I get the last price in Pine Script? That number. I need it as a float instead of series float. Doing this: //@version=5 indicator(title="EURUSD") inputEURUSD = input.symbol("EURUSD") EURUSDprice = request.security(inputEURUSD,…
Nils Riga
  • 90
  • 2
  • 15
-1
votes
2 answers
-1
votes
1 answer

How do I show only last crossover?

I have an indicator which does crossovers and cross unders. It's displayed as a background color. Currently it displays all crosses. With what pinescript can I edit it, so it will only show the last one? Thank you very much!
KZZ
  • 1
  • 2
-1
votes
1 answer

Pine script is their is standalone compiler offline

I have pine script and I would like to run them on multiple csv files, is their a way I can run them offline or standalone compiler or can i run multiple csv files all at one time.
Anna
  • 11
-2
votes
0 answers

Pine Script - Built - In variable are not working correctly when fetching via request.security() function?

Challenging Question For All Pine Script Developers Out There Please Help : I wanted to draw boxes. Condition of drawing a box is : Going from right to left in chart. If a candle whose ATR(14) is more than the previous candle ATR(14) mark it as…
-2
votes
0 answers

I have writen a pine code that i am going to use in trade view, it says a Error at 4:15 Syntax error at input '('

//@version=5 // Define the sell signal def sellSignal(): return crossunder(close, BollingerBands( source=close, length=20, window_dev=2.5, matype="sma", )) // Define the buy signal def…
-2
votes
1 answer

Please edit this script Tradingview keeps giving error for line 3 Compilation error Line 3: Could not find function or function reference 'indicator'

//@version=5 indicator("Support Resistance Channels") study("Support Resistance Channels", "sr_channels", overlay = true, max_bars_back = 501) // Input parameters prd = input(defval = 10, title="Pivot Period", minval = 4, maxval = 30, group =…
-2
votes
1 answer

Need modification in Rsi strategy indicator of tradingview

Hi i want a modified pine editor script of RSI STRATEGY INDICATOR ,I want to set the target and stoploss in percentage from the entry price . example Buy Entry price=100 then the stoploss should be -1% of entry price(100), and target should be +5%…
Amer
  • 18
  • 3
-2
votes
1 answer

Need someone who understands pine editor

Need someone who understands pine editor. My indicator has no version. can anyone make version 5? I tried to make every version but I couldn't do it because I don't have any coding knowledge. //www.askincantum.com study(title = "instagram:…
-2
votes
1 answer

indicator like block with hma and rsi

I use this indocator "Efmus System : 10 indicators in 1" Here the link https://www.tradingview.com/script/Q9xternm-Efmus-System-10-indicators-in-1/ There is not the source code and i want to change somes indicator inside this indicator. I have try…
chprot
  • 29
  • 5
1 2 3
44
45