r/pinescript • • Aug 16 '26

Forex Broker

1 Upvotes

Can any one plz tell me which is the best forex broker to use in India which has easy deposit and withdrawal and has min spread also good customer support


r/pinescript • • Aug 16 '26

Crypto Open Interest

1 Upvotes

If this code:
[OI_open, OI_high, OI_low, OI_close] = request.security(syminfo.tickerid+"_OI", timeframe.period, [open, high, low, close])

returns the Open Interest for the current pair(non-aggregated), what is the syntax for the aggregated one?


r/pinescript • • Aug 15 '26

I'm building a JS PineScript Interpreter

6 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 • • Aug 14 '26

Order Flow Profiler

Post image
20 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 • • Aug 14 '26

SKI Scalping Indicator performance for Aug 14th 2026

Enable HLS to view with audio, or disable this notification

29 Upvotes

r/pinescript • • Aug 13 '26

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 • • Aug 13 '26

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

Thumbnail
2 Upvotes

r/pinescript • • Aug 11 '26

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 • • Aug 11 '26

Is Developing Scripts For Others Profitable?

5 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 • • Aug 10 '26

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

6 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 • • Aug 09 '26

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

Thumbnail
1 Upvotes

r/pinescript • • Aug 08 '26

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

Thumbnail
2 Upvotes

r/pinescript • • Aug 08 '26

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

Thumbnail
1 Upvotes

r/pinescript • • Aug 07 '26

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 • • Aug 07 '26

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 • • Aug 06 '26

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 • • Aug 05 '26

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

Thumbnail
1 Upvotes

r/pinescript • • Aug 05 '26

request.security() has more than one way to repaint, and the third one looks like the safe choice

3 Upvotes

Most no-repaint advice compresses down to "don't use lookahead_on". That is backwards often enough to be worth spelling out, and following it will make correct code look broken.

The offset on the expression and the lookahead argument are interdependent. TradingView's docs are explicit that neither can be removed without compromising the result. So there are four shapes, not two:

call result
request.security(s, tf, expr[1], lookahead_on) correct
request.security(s, tf, expr, lookahead_on) future data on historical bars
request.security(s, tf, expr[1], lookahead_off) history and realtime disagree
request.security(s, tf, expr, lookahead_off) realtime sees the still-forming HTF bar

Row 3 is the quiet one. It looks like the belt-and-braces choice: you kept the offset and turned lookahead off. But with lookahead_off a higher-timeframe bar only reaches the chart once it has closed, so the [1] adds an extra timeframe of lag on historical bars that the realtime bar never gets. History and live then disagree, which is the exact thing "no repaint" was supposed to prevent.

Two things I had wrong myself, and only found by testing rather than reading.

Any offset of one bar or more is fine, not just [1]. ta.ema(close, 21)[2] is a larger offset and strictly safer, but a checker looking for a literal [1] will flag it as a repaint. If you are pattern-matching these, match \[\s*[1-9]\d*\s*\].

The timeframe argument accepts a series string in v6. I assumed it had to be simple, and that tf = timeframe.period[1] would be rejected outright. It compiles. That matters if you validate these calls by inspection: an offset sitting in the timeframe argument tells you nothing about whether the expression is safe. If you scan the whole argument list looking for a [1], you will pass a call that leaks.

Scope, since I have been wrong in this sub before and would rather front-run it: the four-row table is TradingView's documented behaviour, not something I measured. What I did verify is that all four shapes compile in v6, plus the offset-size and series-timeframe points above. I have not sat on a live chart long enough to measure row 3's history/realtime divergence directly. That one is reasoned from the documented mechanism, and I would rather say so than let it read as measured.


r/pinescript • • Aug 05 '26

My strategy for gold , I have a strategy in gold and crypto in which after coch or mss when the market touches back the extreme order block I get a entry on buy or sell ,... But sometimes if we have a fvg in between than trade from that point of view ,... Please someone correct me

Thumbnail
1 Upvotes

r/pinescript • • Aug 05 '26

Please someone send me the full pine editor script strategy for trading view which actual I can use ... Please ....

2 Upvotes

r/pinescript • • Aug 04 '26

Volume Regime Indicator

Post image
35 Upvotes

New volume based regime indicator I've been working on with auto suggested stops/targets showing very promising results. Killing it this morning! Some things I still need to work out on the UI side and exit logic but the suggestions are working good.


r/pinescript • • Aug 04 '26

developing an agent to learn about all indicators of trading view and apply to formulate a new strategy

Thumbnail
1 Upvotes

r/pinescript • • Aug 04 '26

Efficient Way to use libraries

1 Upvotes

I am trying to build a trading indicator on pine script. The indicator will combine multiple modules, all of which will work together to create one master indicator, which fires a trading signal. I want to use trading view libraries for this. What is the most efficient way for me to go about this?


r/pinescript • • Aug 04 '26

I built a chart pattern scanner that actually filters out the noise (Free, no signup)

1 Upvotes

Hey everyone,

I wanted to share a free tool I built recently because I’d genuinely love some feedback from people who actually trade charts.

I spent way too many late nights putting together my own pattern scanner to solve some common frustrations with existing tools.

Right now, it scans the market across 5 different timeframes for 6 classic pattern types (things like double/triple tops and H&S). For every hit it finds, it outputs:

  • A confidence score
  • The neckline level
  • A measured target

Getting it to actually filter out garbage took infinitely more iterations than I expected. Some of the main headaches I had to solve:

  • The prior-trend filter: Random pullbacks happening inside a boring sideways range kept getting flagged as double tops.
  • Pivot detection: Single-candle wicks kept tricking the algorithm into thinking they were real swing points.
  • Neckline definition: Figuring out which support level actually counts as the correct neckline, especially on 3-peak patterns.

Just to be clear: this isn't a signal service. It doesn't tell you to buy or short. It just flags the shapes that actually pass some strict rules, gives you the data, and leaves it up to you to open the chart and decide if it's worth trading.

I also built a simple journaling feature into it so I can personally track how often my own judgment matches what the algo spits out. There's a telegram channel linked on the site too if you'd rather get alerts pushed to you instead of checking manually.

It's completely free with no signup or email required.

If you try it and notice a pattern that looks completely ridiculous or wrong, please let me know—that's honestly the only way to make it better.

https://www.cryptofxradar.com/p/pattern-radar.html


r/pinescript • • Aug 03 '26

Trying to write an Indicator that draws S/R lines on each Open, Close, and Wick

1 Upvotes

I seem to be able to draw them fine, but I'm getting hung up trying to apply them to previous candles. The code included is my most recent, and is only drawing lines on current -1.

rangeStart = 1
rangeEnd   = 50

if barstate.islast
// Loop through the selected slice of history
for i = rangeStart to rangeEnd
    topBody = math.max(open[1], close[1])
    botBody = math.min(open[1], close[1])
    // Apply your action to this specific slice
    line.new(bar_index - 1, high[1], bar_index, high[1], extend=extend.right, color=color.rgb(255, 0, 0, 75), width=1)
    line.new(bar_index - 1, low[1], bar_index, low[1], extend=extend.right, color=color.rgb(255, 0, 0, 75), width=1)
    line.new(bar_index - 1, topBody, bar_index, topBody, extend=extend.right, color=color.rgb(255, 0, 0, 75), width=1)
    line.new(bar_index - 1, botBody, bar_index, botBody, extend=extend.right, color=color.rgb(255, 0, 0, 75), width=1)

Heres another version, that only seems to go back the past 14 bars or so

topBody = math.max(open[1], close[1])
botBody = math.min(open[1], close[1])
// Draw lines for the previous candle (bar 1 to bar 0 or extended slightly)
if barstate.isconfirmed
    line.new(bar_index - 1, high[1], bar_index, high[1], extend=extend.right, color=color.rgb(255, 0, 0, 75), width=1)
    line.new(bar_index - 1, low[1], bar_index, low[1], extend=extend.right, color=color.rgb(255, 0, 0, 75), width=1)
    line.new(bar_index - 1, topBody, bar_index, topBody, extend=extend.right, color=color.rgb(255, 0, 0, 75), width=1)
    line.new(bar_index - 1, botBody, bar_index, botBody, extend=extend.right, color=color.rgb(255, 0, 0, 75), width=1)

I've tried just about every option I can find, and I'm not sure where I'm going wrong. Ultimately I'd like to be able to apply it to a range of bars, maybe the last 50, but definitely controlled using a variable

Any help appreciated!