Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

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(...
Rostfrei's user avatar
  • 492
0 votes
0 answers
59 views

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 ...
Oto Zars's user avatar
  • 821
0 votes
1 answer
68 views

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....
Rostfrei's user avatar
  • 492
0 votes
1 answer
117 views

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 ...
Prosenjit's user avatar
  • 173
-1 votes
1 answer
146 views

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. ...
Stonks's user avatar
  • 11
0 votes
1 answer
77 views

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 ...
Rshiny Learner's user avatar
1 vote
1 answer
97 views

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 ...
M.Parent's user avatar
  • 194
0 votes
1 answer
74 views

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 ...
Foto Koen's user avatar
0 votes
1 answer
69 views

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 ...
M.Parent's user avatar
  • 194
0 votes
0 answers
55 views

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/...
AWP's user avatar
  • 1
0 votes
1 answer
57 views

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", ...
Pat's user avatar
  • 1
0 votes
0 answers
69 views

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 ...
Kourosh's user avatar
0 votes
1 answer
67 views

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 ...
LetsMakeMoney's user avatar
0 votes
0 answers
76 views

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 ...
paul28's user avatar
  • 21
0 votes
0 answers
53 views

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 ...
Kunthu Dhadda's user avatar
0 votes
0 answers
78 views

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) &...
Eugeny's user avatar
  • 53
2 votes
1 answer
112 views

TradingView has a Net Income indicator: I'd like to show "Net Income year-over-year percent change". Here's a pine script program that appears to implement this: //@version=6 indicator(&...
dharmatech's user avatar
  • 9,739
0 votes
0 answers
119 views

I want to create an indicator and require the previous trading day close. Currently I receive wrong values, which are closing prices from further in the past and not yesterday. I am testing this ...
Nek's user avatar
  • 1
0 votes
1 answer
82 views

I found a Manual Fib indicator on the Web. The indicator however duplicate the labels at every Fib level. Can someone please help. I tried label,delete but are to inexperienced to make it work. My ...
user21637228's user avatar
0 votes
2 answers
85 views

I have started on a project in pine script: trying to create the 10 minute chart as an indicator. For the first step, I have decided to plot all finalized/closed candles (for the most accurate data), ...
Blake Zuidema's user avatar
0 votes
0 answers
98 views

I am working on a mean reversion strategy for bitcoin to automate trades on an Indian crypto Exchange. The pine script is supposed to generate buy, sell, buy side target hit, buy side sl alerts and ...
Raj's user avatar
  • 1
0 votes
1 answer
82 views

I have written a code to mark out pivot Zones. I am able to plot the zones and remove the ones that are broken. I want to remove the overlapping levels and keep the newer ones amongst the overlapping ...
Kunthu Dhadda's user avatar
-2 votes
0 answers
101 views

My strategy, on the chart, shows visible wins. Yet, on the metrics of the strategy in TradingView, it shows no wins. For example, this is a short the strategy has taken. For clarity, the red line is ...
Ben's user avatar
  • 303
0 votes
1 answer
74 views

I made a simple script that take a trade with an order bracket with Take profit and stop loss and when price go up to 50% of Take profit, i sell 70% of the contract and set the new stop loss at break ...
Maxime Girou's user avatar
  • 1,570
-1 votes
1 answer
130 views

I know nothing about coding but I am creating an indicator in Pine Editor. I want a triangle to appear above or below a candle when certain criteria are met. I've got it to do this using chatgpt but ...
Clare's user avatar
  • 1
0 votes
0 answers
89 views

I have a profitable indicator that displays market structue break when I candle breaks. I am tray to print a triangle about the actually breaking candle but it prints about 10-14 bars latter. I am ...
Keith Power's user avatar
  • 14.2k
0 votes
1 answer
78 views

Mismatched input "end of line without line continuation" expecting ")"[pine] newSupBox := box.new(----the error is on the line newSupBox := box.new(. the library says that box.new ...
rufayoade's user avatar
0 votes
0 answers
191 views

I wanted to make an indicator for my trading Group that detects and alerts a thing called " 2 Candle Rejection". its a concept used by a couple of traders to determine if a Fair Value gap ...
Julien Sylvan Pohl's user avatar
0 votes
1 answer
267 views

I am new to pinescript and wrote this simple script to show me daily, weekly and monthly candle open lines by piecing together information I could find. This works well but I would like to add input ...
hushedapple's user avatar
0 votes
1 answer
368 views

I get an error message at line 47 "historical offset beyond historical buffer" when in replay mode. Is there any easier way to show what I want to see and get this error worked? I want to ...
Michael76's user avatar
0 votes
0 answers
41 views

When conditions are met this code places a limit order at sessionLowPrice. The order executes at a higher price at the end of the bar. Three bars later price actually hits my limit price. Any way ...
US1 Trader's user avatar
0 votes
1 answer
328 views

I am trying to combine two Pine Script indicators (LuxAlgo Reversal Signals and VuManChu B Divergences) into a single script. I have recently migrated the script to Pine Script v6. I am consistently ...
서아트's user avatar
0 votes
1 answer
76 views

I've got the entry and initial stop loss called 'initialStopLossShort'. After price moves below a certain price level (here it's below BR1 which is defined earlier) I'd like to change the stop loss ...
US1 Trader's user avatar
0 votes
0 answers
71 views

I'm developing a trading strategy using Pine Script on TradingView, and I've utilized Pineify to generate the initial code. The strategy is based on Supertrend indicators and includes specific entry ...
hjkf24's user avatar
  • 1
0 votes
0 answers
39 views

I'm having problems with Strategies created with strategy.percent_of_equity, default_qty_value=100. Some trades don't seem to be entered. To demonstrate this, I have created a very simple Strategy in ...
rinogo's user avatar
  • 9,303
1 vote
0 answers
62 views

I have found a script for generating a polynomial regression, which I have adapted to my needs and which basically works. However, in order to be able to use the script the way I want to, I need a ...
Mike's user avatar
  • 11
0 votes
1 answer
165 views

Hi I'm new to this forum and pine script but I would be very grateful if someone could help me with this problem or link me to a previous post about this. I figured there is probably a simple way to ...
Speculator James's user avatar
0 votes
1 answer
164 views

I'm having issues with supply and demand zone labels. // === ENTRY SIGNAL LOGIC === bullish = close > open and close > emaFast bearish = close < open and close < emaFast inDemandZone = ...
Gave up 's user avatar
0 votes
0 answers
61 views

so I have written a script for a trading view strategy and am very happy with the outcome. I have attached this to an EA to which buy, sell and close signals come through great! I have a problem with ...
jamie mckenzie's user avatar
1 vote
1 answer
129 views

{{alertcondition.message}} does not work: My Alert Script (pineversion=5): INalIDAMlong = input.string("long", title="long Alert", group="Alert Messages") ...
Nils Wohlfarth's user avatar
0 votes
0 answers
210 views

I'm working on a Pine Script strategy on TradingView that generates buy/sell signals using custom logic based on vwap and EMA crossover. The core signals are already implemented using strategy.entry() ...
Vishnu G's user avatar
0 votes
0 answers
29 views

I need the loop to return the same value for a smaller time frame, If 1H = 3 All candles of smaller time frames should be 3, as shown in the image where each TF presents a different value. What is ...
Renato 2000's user avatar
0 votes
1 answer
83 views

I want to check in the current Timeframe (as example 5 min ), the supertrend in the 60min timeframe. But the supertrend delivers allways opposite results. If it is true the backcolor should be blue. I ...
Werner's user avatar
  • 7
0 votes
0 answers
41 views

I have tried to create a trading view indicator based on below logic: Pre-Market High is more than 50% of previous day market closing price Today's market session price is more than 20% of Today's ...
dr shabnam khan's user avatar
0 votes
1 answer
55 views

This indicator, when used on the M15 timeframe, only plots the boxes back to 4th April. Why is this? If I removed the second box, it plots as far back as Feb 26th. I know TV indicators can only plot a ...
Matt W's user avatar
  • 12.7k
1 vote
0 answers
75 views

I do have built a strategy that waits for a certain trigger, sends an entry order and either manages that trade once filled or cancels that entry order after one day (kind of emulating an order ...
user30449074's user avatar
0 votes
1 answer
138 views

This code produces a rectangle which covers the height of the chart, though the candles are correct. It should only cover from the low to the high of the previous M15 candle. Why is this happening? I ...
Matt W's user avatar
  • 12.7k
0 votes
1 answer
61 views

From my formula, I have calculated a future time in UNIX format (Eg = 1748457000000). My current UNIX time is time (eg = 1746157500000). This difference is approximately 27.18 days (round to 27 days). ...
Kunthu Dhadda's user avatar
0 votes
0 answers
29 views

I added an array MacierzNr to add hhllNr values ( 11 10 01 00 corresponding to hhlltxt HH HL LH LL ). When I display an array it shows digits: 0 and 1 - I don't know why. How is it possible that the 0 ...
Tomasz Nadwor's user avatar
0 votes
0 answers
34 views

//@version=5 indicator("Double", overlay = true, max_bars_back = 500) prd1 = 8 prd2 = 20 float ph1 = ta.highestbars(high[1], prd1) == 0 ? high : na float pl1 = ta.lowestbars(low[1], prd1) == ...
Tomasz Nadwor's user avatar

1
2 3 4 5
146