pine-scripts

CASOON Open Source

Experiments in technical analysis, written in Pine Script.

A loose collection of TradingView indicators and strategies in Pine Script v6 for market structure, trend, momentum and confluence. Most of it is unfinished. One habit runs through all of it: checking whether a script's inputs carry a signal on the instrument it runs on, not only whether its maths is correct.

ExperimentalMITPine Script v6TradingView
Excerpt of a TradingView chart of Natural Gas (XNGUSD, Capital.com), 1 hour, mid to late April, with the Smooth Trend Radar indicator: a smoothed baseline that turns teal in uptrends and red in downtrends, triangle labels at trend flips and baseline rejections, and for the last flip a short setup with entry at 2.7766, stop loss at 2.8249 and three take-profit levels down to 2.6615, with shaded risk and reward zones.
Smooth Trend Radar on Natural Gas, 1h: baseline, flip and rejection labels, SL/TP levels of the last flip.

Experimental, not advice

These scripts are for learning and chart analysis. They do not recommend any trade, no page here claims a signal is profitable, and a backtest says nothing about future results. Many indicators are drafts that have not been checked on real charts, and quality varies widely. Trading involves substantial risk of loss; decisions and their consequences are your own.

indicator directories, each with its own page
95
scripts with a declared Data Contract so far
42
catalogued indicators not, or barely, checked on real charts
64 of 96
scripts published on TradingView
6

What it does

Quickstart

From choosing an indicator to a first alert. The walkthrough in the documentation covers each step.

  1. Pick an indicator by the question you want answered, from the index or the sidebar.
  2. Check its data requirements: the Data Contract in the header, or the README.
  3. Paste the .pine file into the Pine Editor, or add the published version on TradingView.
  4. Create an alert from its named conditions; messages carry a stable code per indicator.
Alert message formattext
<code> · <event> · {{ticker}} {{interval}}

CPM4 · WATCH LONG · {{ticker}} {{interval}}
CPM4 · LONG · {{ticker}} {{interval}}

Frequently asked questions

What is this repository exactly?

A running collection of experimental TradingView indicators and strategies in Pine Script v6, not a finished product catalog. Quality is treated as an ongoing process, including whether an indicator’s inputs carry a real signal on the instrument it runs on.

How do I use one of the indicators?

Open the .pine file for the indicator you want, copy its contents, then in TradingView use Pine Script Editor → Paste → Add to Chart.

What does the "Data Contract" in a script header mean?

It states which data the indicator needs — price, volume, open interest or a reference market — and gives a verdict: CFD-degraded, Reference-required or Exchange-only, so you know whether it fits your instrument before adding it.

Are the strategies ready to trade?

No single status applies to all of them. Each strategy under strategies/ is standalone and hand-maintained, and its status — for example "Promising" or "Not ready — not yet backtested" — is listed in the README and its own assessment file.

Is anything here financial advice?

No. The scripts are for learning and chart analysis, no page claims a signal is profitable, and a backtest says nothing about future results. Trading involves substantial risk of loss.