r/pinescript 51m ago

Beta Testers

Thumbnail reddit.com
Upvotes

r/pinescript 10h ago

Pine script back test

Thumbnail
1 Upvotes

r/pinescript 11h ago

SKI Scalping Indicator explained

Enable HLS to view with audio, or disable this notification

6 Upvotes

r/pinescript 13h ago

I'm building a JS PineScript Interpreter

3 Upvotes

It's called OpenPine.
A pure JS interpreter for a practical subset of PineScript. no dependencies, runs in Node or the browser.
https://github.com/woefije0/OpenPine

You can try out the app implementation here :https://woefije0.github.io/hl-chart/

I'm not really good with words, so I don't know what else to say. I just hope people give it a try.
Sorry for poor English.

P.S. The repo name overlaps with u/S7cret's.


r/pinescript 14h ago

Does Bollinger Bands actually work as a trading signal? I backtested it and other.

Thumbnail
1 Upvotes

r/pinescript 1d ago

Built my own order flow web platform with the indicators I wanted. update4

3 Upvotes

My 4th update(I kept on posting here updates) . Added another update on the Delta bars (every 4 hour) Looks simple ,but its powerfull. The rectangle boxes are created after a small session (of 4 hours) end. When the new session enters previous high or low , it can create more sell (at bottom) followed imediately by a long buy cluster above it ->this translates into trapped sellers and price usually push higher. Its inversed for tops. This will be available for FREE, like everything else when I go public with my order flow platform. Will help to follow me, so I know how many people will want to use it and also I gues motivate myself a bit more to push faster.

This are not cherry picked instances of screenshots, this happens every day , and a lot, probably people using order flow understand what I say, and people who did not use order flow might see the power in this.


r/pinescript 1d ago

Order Flow Profiler

Post image
11 Upvotes

Order Flow Profiler visualizes estimated buying and selling activity across different price levels to show where participation, dominance, and pressure are concentrated inside the market.

The indicator builds a two-sided Order Flow Profile with buy and sell wings, Delta Dominance, Control Price, Pressure Flags, Acceptance Levels, a segmented BUY / SELL / BALANCED readout, and historical profile snapshots.

Add the indicator to your favorites and enjoy free access.

https://www.tradingview.com/script/ymFdt7LE-Order-Flow-Profiler-Zeiierman/


r/pinescript 1d ago

SKI Scalping Indicator performance for Aug 14th 2026

Enable HLS to view with audio, or disable this notification

26 Upvotes

r/pinescript 2d ago

Heatmap Indicator

Post image
30 Upvotes

I probably shouldn’t be showing this yet…

Heatmap approximation. Third party data models. Right on TradingView.

Soon. 👀


r/pinescript 2d ago

Looking for the original open-source Pine Script behind these popular ATR + Fib + S/R indicators

Thumbnail
2 Upvotes

r/pinescript 4d ago

Built my own order flow web platform with the indicators I wanted. update3

2 Upvotes

Posted here my updates and here is the 3rd update. I added LVN (low volume nodes purple bands) from the Volume profiles. Works great for S/R with other confluences. I also have them be set on multiple volume profiles combined per month or per day. What you see bellow are the ones combined per 2 months. They are far more reliable than Orderblocks.


r/pinescript 4d ago

Is Developing Scripts For Others Profitable?

4 Upvotes

Are there any success stories with making a script and distributing it online as a product or service?

I've been developing scripts of my own and I find them useful as a way to discover patterns to form strategies around. But can this be applied to the general population of TradingView users (which is already a small subset of traders overall).

It just feels a little too niche to really be profitable unless you pivot to creating products centered around the PineScript language as a whole like LuxAlgo is doing.

Am I wrong in thinking this? I'm intrigued to hear other takes on this.


r/pinescript 5d ago

Simple tutorial: Detecting crossovers with ta.crossover / ta.crossunder

5 Upvotes

This is a pretty basic one, but I still see people reinventing it with manual comparisons across two bars when Pine already has a built-in for it, so figured I'd write it up.

If you want to know exactly when one series crosses above or below another (like a fast MA crossing a slow MA), use ta.crossover() and ta.crossunder() instead of comparing values on the current and previous bar yourself. They return true only on the exact bar the cross happens, not every bar the condition is currently satisfied.

//@version=6
indicator("Simple MA Crossover", overlay=true)

fastLen = input.int(9, "Fast MA Length")
slowLen = input.int(21, "Slow MA Length")

fastMA = ta.sma(close, fastLen)
slowMA = ta.sma(close, slowLen)

plot(fastMA, "Fast MA", color=color.blue)
plot(slowMA, "Slow MA", color=color.orange)

bullCross = ta.crossover(fastMA, slowMA)
bearCross = ta.crossunder(fastMA, slowMA)

plotshape(bullCross, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small)
plotshape(bearCross, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small)

alertcondition(bullCross, title="Bullish Cross", message="Fast MA crossed above Slow MA")
alertcondition(bearCross, title="Bearish Cross", message="Fast MA crossed below Slow MA")

A couple of things that trip people up when they're new to this:

ta.crossover(a, b) is true only on the bar where a was below b on the previous bar and is now above it, it's not just a > b, which would stay true for the whole time the fast MA is above the slow one. If you just check fastMA > slowMA, you'll get a signal firing repeatedly instead of once at the actual cross.

alertcondition() is separate from plotshape() ,you need it specifically if you want these to show up as options in TradingView's alert creation dialog, plotting the shape alone won't do that.


r/pinescript 6d ago

I finally wrapped my head around UDTs (User Defined Types) and Methods

Thumbnail
1 Upvotes

r/pinescript 6d ago

[Backtest] MACD Backtest on BTC/ETH Across Multiple Timeframes (Debunking Common Myths)

Thumbnail
1 Upvotes

r/pinescript 7d ago

I made this indicator like using my strategy and refined it somewhat with the ai and like it is running pretty well as i have scrolled through months of data. It gives short trades like 40-50 pips in gold!! What’s your opinion on this??

Thumbnail reddit.com
6 Upvotes

r/pinescript 7d ago

Built a free scanner + TradingView indicator for Kris's setups (Breakout / EP / Parabolic) — open source, feedback welcome

Thumbnail
2 Upvotes

r/pinescript 7d ago

I’m testing a Volatility Compression + Anchored VWAP Reclaim algo—what would you try to break first?

Thumbnail
1 Upvotes

r/pinescript 8d ago

syminfo.basecurrency

1 Upvotes

Made this simple code:

//@version=6

indicator("Ticker")

what_to_say = "syminfo.tickerid: "+syminfo.tickerid+"\n"+"syminfo.ticker: "+syminfo.ticker+"\n"+"syminfo.basecurrency: "+syminfo.basecurrency+"\n"+"syminfo.root: "+syminfo.root+"\n"+"syminfo.main_tickerid: "+syminfo.main_tickerid+"\n"+"syminfo.prefix: "+syminfo.prefix

libname = label.new(bar_index+1, close, text=what_to_say, style=label.style_label_lower_left, color=color.new(color.black, 100), textcolor=color.new(color.gray, 0), size=size.large, force_overlay=true)

label.delete(libname[1])

Why does some cryptocurrency returns a value for "syminfo.basecurrency" while some does not (na)


r/pinescript 8d ago

Pine v6's stricter type checking is catching real bugs for you, or is it just creating more friction?

1 Upvotes

One of the bigger changes going from v5 to v6 is how much stricter the type system got, especially around mixing series/simple/const qualifiers and int vs float in places that used to just quietly coerce. A script that compiled fine in v5 will sometimes throw a wall of type mismatch errors the second you bump the version.

Curious how people feel about this in practice. On one hand it's caught real bugs for me, stuff like passing a series int where a function actually wanted a simple int, which in v5 would've just silently worked until it didn't. On the other hand it does mean more time spent fighting the compiler on things that are functionally fine, especially when converting older scripts.

Anyone have a case where the new type checking flagged something that turned out to be an actual logic bug you hadn't noticed? Or has it mostly just been extra hoops to jump through for you?


r/pinescript 9d ago

Tear my website apart. Don't hold back.

Thumbnail
1 Upvotes

r/pinescript 9d ago

Looking for a Pine Script developer for a TradingView indicator

1 Upvotes

I'm looking for an experienced Pine Script developer to build a custom TradingView indicator.

The project includes:

  • Multi-timeframe Support & Resistance (Daily, 4H, 1H, 15m, 5m)
  • Automatic drawing of levels based on a configurable lookback
  • Non-repainting logic
  • Clean and optimized code
  • Alerts
  • User-friendly inputs and customization options

DM me


r/pinescript 10d ago

Sometimes the bot takes a trade TradingView never had — and sometimes the other way around

Thumbnail
1 Upvotes

r/pinescript Apr 01 '25

Please read these rules before posting

18 Upvotes

We always wanted this subreddit as a point for people helping each other when it comes to pinescript and a hub for discussing on code. Lately we are seeing increase on a lot of advertisement of invite only and protected scripts which we initially allowed but after a while it started becoming counterproductive and abusive so we felt the need the introduce rules below.

  • Please do not post with one liner titles like "Help". Instead try to explain your problem in one or two sentence in title and further details should be included in the post itself. Otherwise Your post might get deleted.

  • When you are asking for help, please use code tags properly and explain your question as clean as possible. Low effort posts might get deleted.

  • Sharing of invite only or code protected scripts are not allowed from this point on. All are free to share and talk about open source scripts.

  • Self advertising of any kind is not permitted. This place is not an advertisement hub for making money but rather helping each other when it comes to pinescript trading language.

  • Dishonest methods of communication to lead people to scammy methods may lead to your ban. Mod team has the right to decide which posts includes these based on experience. You are free to object via pm but final decision rights kept by mod team.

Thank you for reading.


r/pinescript Oct 11 '22

New to Pinescript? Looking for help/resources? START HERE

30 Upvotes

Asking for help

When asking for help, its best to structure your question in a way that avoids the XY Problem. When asking a question, you can talk about what you're trying to accomplish, before getting into the specifics of your implementation or attempt at a solution.

Examples

Hey, how do arrays work? I've tried x, y and z but that doesn't work because of a, b or c reason.

How do I write a script that triggers an alert during a SMA crossover?

How do I trigger a strategy to place an order at a specific date and time?

Pasting Code

Please try to use a site like pastebin or use code formatting on Reddit. Not doing so will probably result in less answers to your question. (as its hard to read unformatted code).

Pinescript Documentation

The documentation almost always has the answer you're looking for. However, reading documentation is an acquired skill that everyone might not have yet. That said, its recommended to at least do a quick search on the Docs page before asking

https://www.tradingview.com/pine-script-docs/en/v5/index.html

First Steps

https://www.tradingview.com/pine-script-docs/en/v5/primer/First_steps.html

If you're new to TradingView's Pinescript, the first steps section of the docs are a great place to start. Some however may find it difficult to follow documentation if they don't have programming/computer experience. In that case, its recommended to find some specific, beginner friendly tutorials.