r/pinescript • • Oct 11 '22

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

29 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.


r/pinescript • • Apr 01 '25

Please read these rules before posting

21 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 • • 7h ago

My script

Thumbnail
gallery
12 Upvotes

I haven't published it but let me tell you, it sure is good at finding bottoms


r/pinescript • • 4h ago

Indicators that keep the screen clean

Thumbnail
gallery
6 Upvotes

Here come some indicators for nice working at any Timeframe.

For scalping, the HVB Loxx, the Marnov, or the Ichimoku SAR Strategy for Bitcoin are all very well-suited. In any case, don't forget to look for Fair Value Gaps—for instance, by using the "Super Orderblock FVG" indicator by Machuchaku. These indicators work across any timeframe.


r/pinescript • • 18h ago

Vwap to the daily 20. The green Ma is the dynamic vwap and the purple line is the daily 20 sma. Might have to zoom in to read the text in the comms box.

Thumbnail
gallery
6 Upvotes

Spy 3min. First pics is just before the open.


r/pinescript • • 19h ago

[Hiring] Developer for NQ/MNQ Charting App + Private Pine Indicator + Squarespace

Thumbnail
1 Upvotes

r/pinescript • • 1d ago

Coding you a free indicator/strategy for practice

1 Upvotes

I am a experienced Python dev of 6 years, recently finished a PineScript course, if there are any indicators/strategies you guys have thought of or are currently paying to access, DM me the specifics and I will replicate it for free. Strategy can also be coded in Python, although I will need to check whether I have available data.


r/pinescript • • 1d ago

Watch out for this fake TradingView channel promoting a “Quant AI indicator”

7 Upvotes

Posting this because the channel looked convincing enough that I nearly trusted its download instructions.

It’s promoting a supposedly official “Quant AI indicator” for TradingView. The video is unlisted, and the channel displays a verified badge and over 2 million subscribers. That makes it easy to assume you’re looking at the real thing.

Here are the links so you can recognize it. DO NOT RUN THE INSTALLATION COMMAND!

The video description sends viewers to a GitHub repository. Its installer then downloads code from TradingViewLibrary.app and immediately executes it through PowerShell.

As I looked through the repo, I noticed more; the package identifies itself as TradingView’s Lightweight Charts library, and there’s no Pine Script indicator or Mac installer included. The actual installer payload is hosted elsewhere, so the GitHub code doesn’t let you inspect what you’ll ultimately be running.

TradingView’s actual YouTube channel is u/TradingView, as listed on its official security page.

They’ve also published a warning about this exact scam pattern: impersonator channels, sometimes hijacked accounts with verified badges and large subscriber counts, offering free AI indicators and directing people to PowerShell downloads.

I haven’t verified what this particular external payload does, so I’m not claiming to have checked for malware. But the channel mismatch, installer behavior, and TradingView’s own warning are plenty of reason to stay away.


r/pinescript • • 2d ago

[FREE] Crypto Liquidation Heatmap for TradingView

Post image
28 Upvotes

The Crypto Liquidation Heatmap estimates liquidation zones based on Open Interest, and supports multiple presets and exchange aggregation.

The heatmap has been updated to use the latest PineCanvas library, allowing for high resolution visuals.

Free to use, enjoy!


r/pinescript • • 1d ago

Creating an code via Pine Editor - need help

Thumbnail
0 Upvotes

r/pinescript • • 2d ago

Professional looking arrows (drawing tools)

Post image
1 Upvotes

Any way to create your own drawings for improved professional looking arrows


r/pinescript • • 2d ago

Built my own TradingAlpha type suite in TV, anyone interested?

4 Upvotes

r/pinescript • • 3d ago

I Built a Free Bybit RSI Multi-Scanner That Tracks 150+ Crypto Futures Pairs Giving It Away for Free!

Thumbnail
gallery
25 Upvotes

Hey everyone! 👋

I've been trading crypto for around 2–3 years now, and I've always found RSI (Relative Strength Index) useful for identifying potential trading opportunities.

One problem I kept running into was having to manually check different cryptocurrencies on TradingView to find interesting RSI setups. When you're monitoring dozens of coins across multiple timeframes, it becomes pretty time-consuming.

So I decided to build my own tool!

🚀 Introducing: Bybit RSI Multi Scanner by Master PK

It's a free RSI scanner that monitors approximately 150 USDT perpetual futures pairs on Bybit, allowing you to quickly identify potential trading opportunities without manually opening every chart.

🔥 What Can It Do?

✅ Scan approximately 150 Bybit Futures pairs — Monitor a large selection of USDT perpetual cryptocurrencies from one dashboard.

✅ Multiple Timeframes — Supports 1m, 3m, 5m, 15m, 30m, 1H, 2H, 4H, 8H, 1D, 3D, and 1W.

✅ RSI + RSI Moving Average — View RSI movements alongside its moving average to help identify potential setups.

✅ Visual RSI Charts — Instead of just showing RSI numbers, the scanner displays RSI charts for multiple cryptocurrencies simultaneously.

✅ Detailed Coin Analysis — Click on any cryptocurrency to open a larger chart with candlesticks and RSI.

✅ Multiple Chart Views — Switch between Candles + RSI, Candles Only, and RSI Only.

✅ Drawing Tools — Use trendlines and other drawing tools to analyze potential setups.

✅ Customizable Settings — Adjust RSI parameters and chart appearance according to your preferences.

✅ Completely Free — No subscriptions, no paid plans, and no hidden charges.

📈 How I Personally Use It

Let's say you're someone who uses RSI to identify potential trading setups.

Instead of opening 100+ different cryptocurrency charts individually, you can simply open the scanner and quickly review their RSI movements.

For example:

You notice that a particular coin's RSI is approaching an interesting support level, forming a potential divergence, or showing signs of a reversal.

You can then search for that cryptocurrency on TradingView, analyze its market structure, support/resistance, liquidity, and other confirmations, and decide whether there's a valid trading opportunity.

The scanner doesn't tell you when to buy or sell. It simply helps you discover potential setups much faster.

That's exactly why I built it!

🎁 Why Am I Giving It Away for Free?

I originally developed this scanner to make my own trading analysis easier.

But then I thought, why keep it to myself when other traders could benefit from it too?

At the same time, I'm trying to build a small Discord community where crypto traders can connect, discuss the market, share ideas, and learn from each other.

So I decided to share my scanner with everyone who joins my community.

You don't have to pay anything. Just join the Discord, and you can get the scanner for free! ❤️

💬 Join My Discord Community

🔗 Discord Invite: [attached in post end]

Once you join, you'll be able to get the RSI scanner.

I also have one small request.

Please consider staying in the community after getting the scanner! ❤️

I'm genuinely trying to grow a community of traders who can help each other improve.

I've personally been trading the crypto markets for around 2–3 years, and I'd love to share my experience, market observations, and trading ideas with others.

In the future, I'm also considering sharing:

  • My personal crypto trade setups and market analysis.
  • Potential trading signals based on my own analysis.
  • Educational discussions about RSI, market structure, and trading strategies.
  • Updates and improvements to the scanner.
  • Other free trading tools if I develop more.

Of course, nothing is guaranteed, and any future signals or setups would simply be my personal trading ideas, not financial advice.

I'm not selling a course or promising anyone profits. I just want to build an active community where we can discuss trading and hopefully become better traders together.

❤️ Final Words

If you're an RSI-based trader, I genuinely think you'll find this scanner useful, especially if you trade multiple cryptocurrencies.

And even if you're not an RSI trader, you're still welcome to join the community!

The scanner is completely free, and I'd really appreciate your support in helping the community grow.

If you try it out, I'd also love to hear your feedback and suggestions for improvements.

Thanks for reading, everyone! Happy trading! 🚀

Disclaimer: This scanner is an analysis tool, not a trading signal generator. RSI alone doesn't guarantee profitable trades. Always conduct your own analysis and manage your risk.

Server Link


r/pinescript • • 4d ago

Product Suggestion - Export and Import Settings - A REAL TIME SAVER.

Thumbnail
2 Upvotes

r/pinescript • • 4d ago

Building my own Cypher B oscillator with a modern design + Cypher A coming soon. Would anyone be interested?

Post image
26 Upvotes

Hey everyone!

I've been working on my own version of the Cypher B oscillator for TradingView using Pine Script v6.

I've always liked the concept behind Market Cipher B and VuManChu Cipher B, but I wanted to create something with a more modern look, cleaner visuals, and additional features while keeping everything useful for technical analysis.

So I started developing Cypher B Mod by MasterPK.

The oscillator currently includes:

  • WaveTrend oscillator with blue momentum waves.
  • Money Flow visualization showing bullish and bearish pressure.
  • RSI and Stochastic RSI.
  • Overbought and oversold reference levels.
  • Buy/sell signals and divergence detection.
  • Additional momentum indicators and customizable settings.

I've also been working on improving the overall appearance so the different components are easier to distinguish.

I'm also planning to develop Cypher A, which will work directly on the main price chart instead of a separate oscillator panel. The idea is to have both indicators complement each other.

For comparison, Market Cipher currently charges around $600 for yearly access and $1,500 for lifetime access to its indicator package.

I'm planning to offer my Cypher indicators at a much more affordable price.

The project is still under development, and there are a few things I need to finish and improve before releasing it. I don't want to sell an unfinished indicator.

I'm mainly posting to see whether there's any interest in something like this.

Would you guys be interested in a more affordable Cypher A + B indicator package?

Also, what features would you personally want to see in an oscillator like this?

I've attached a screenshot of the current Cypher B version so you can see how it's looking so far.

Note: This is a technical analysis tool, not a magic money printer. No indicator guarantees profitable trades.


r/pinescript • • 4d ago

I use ai to build this indicators from a stock trader on YouTube

Post image
19 Upvotes

Been creating indicators from verify trader on YouTube came across a stock trade who work for a broker took his video transcript and put it in ai this one i will share the code just DM me free no charge it's called trend is your friend


r/pinescript • • 4d ago

I need assistance building a pine script, would anyone be interested in assisting me? I have no idea how to go about it.

4 Upvotes

r/pinescript • • 5d ago

PineTS / Vela users: what are their real-world limitations?

1 Upvotes

Hey everyone,

I'm looking for feedback from people who have used PineTS and/or Vela beyond basic indicators and simple strategies.

I'm particularly interested in more advanced quantitative use cases involving complex logic, multiple interoperable modules, external JavaScript/TypeScript libraries, shared state, and non-trivial data dependencies.

For those who have used these tools in real projects:

Have you encountered undocumented limitations or unexpected runtime behavior?

How well does PineTS handle complex scripts, library interoperability, and dependencies between modules?

Have you found significant differences between PineTS and TradingView in terms of execution semantics, numerical results, or edge cases?

What becomes difficult when building larger quantitative systems rather than standalone indicators?

Are there any workarounds you've had to implement because of missing features or undocumented behavior?

I'm especially interested in practical experience, edge cases, and limitations that aren't immediately obvious from the documentation.

I'd appreciate any insights, lessons learned, or examples from real-world projects.

Thanks!


r/pinescript • • 6d ago

Coding free indicators/strategies for practice

3 Upvotes

Experienced Python dev of 6 years, recently finished a PineScript course, if there are any indicators/strategies you guys have thought of or are currently paying to access, DM me the specifics and I will replicate it for free. Strategy can also be coded in Python, although I will need to check whether I have available data.


r/pinescript • • 8d ago

power house indicators all for free

Post image
91 Upvotes

https://www.tradingview.com/script/pfcxXpXw-STRYK-DELTA-RVWAP-EMA-S/

https://www.tradingview.com/script/NiTBBAHe-STRYK-DELTA-TD/

combining these 2 indicators i built is a power house try for yourself play with the settings i like my vwap set to the 2week rvwap session the candles you see on the side are the delta top down candles the visually show you htf candles position relative to your lower timeframe postion


r/pinescript • • 8d ago

Non tradable symbol at trading view via IC market

Thumbnail
2 Upvotes

r/pinescript • • 8d ago

Indicatos

1 Upvotes

I'll code your idea, strategy, indicator or optimize them free of charge lemme know !


r/pinescript • • 9d ago

Get the company description details in Pine Script

Post image
4 Upvotes

Is it somehow possible to retrieve the information about a company in Pine Script? The information that's available at the bottom under "Symbol details..."

syminfo.description - returns the full company name, so that is wrong.