docs: add PineScript links to all indicator .md files, docsify .pine renderer with comprehensive Prism v6 syntax highlighting

- Added PineScript row to property tables in 375 .md files linking to companion .pine files
- Docsify plugin intercepts .pine link clicks, fetches and renders content as syntax-highlighted code blocks
- Comprehensive Prism.languages.pine grammar covering 18 token categories: annotations, types, qualifiers, namespaces, OHLCV builtins, functions, keywords, operators
- Custom CSS tokens using GitHub dark palette for Pine-specific visual differentiation
This commit is contained in:
Miha Kralj
2026-03-11 15:36:23 -07:00
parent 567fa89465
commit 19f956521d
396 changed files with 606 additions and 816 deletions
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Alma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [alma.pine](alma.pine) |
| **Signature** | [alma_signature](alma_signature.md) |
### TL;DR
- ALMA is a Finite Impulse Response (FIR) filter that applies a Gaussian window to price data.
- Parameterized by `period`, `offset` (default 0.85), `sigma` (default 6.0).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Blma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [blma.pine](blma.pine) |
| **Signature** | [blma_signature](blma_signature.md) |
### TL;DR
- The Blackman Window Moving Average (BLMA) applies a triple-cosine window function from digital signal processing to financial time series.
- Parameterized by `period`.
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Bwma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [bwma.pine](bwma.pine) |
| **Signature** | [bwma_signature](bwma_signature.md) |
### TL;DR
- BWMA is a Finite Impulse Response (FIR) filter that applies a Bessel-derived window function to weight price data.
- Parameterized by `period`, `order` (default 0).
- Output range: Tracks input.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Conv) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [conv.pine](conv.pine) |
- CONV (Convolution Moving Average) is the ultimate tool for the signal processing purist.
- Parameterized by double[] kernel.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Crma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [crma.pine](crma.pine) |
| **Signature** | [crma_signature](crma_signature.md) |
### TL;DR
- CRMA fits a degree-3 polynomial $y = a_0 + a_1 x + a_2 x^2 + a_3 x^3$ to the most recent $N$ bars via ordinary least squares, then returns the fitt...
- Parameterized by `period`.
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Dwma) |
| **Output range** | Tracks input |
| **Warmup** | `(period * 2) - 1` bars |
| **PineScript** | [dwma.pine](dwma.pine) |
| **Signature** | [dwma_signature](dwma_signature.md) |
### TL;DR
- DWMA (Double Weighted Moving Average) is exactly what it says on the tin: a Weighted Moving Average of a Weighted Moving Average.
- Parameterized by `period`.
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Fwma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [fwma.pine](fwma.pine) |
| **Signature** | [fwma_signature](fwma_signature.md) |
### TL;DR
- The Fibonacci Weighted Moving Average applies the Fibonacci sequence as FIR filter weights, assigning exponentially growing importance to recent bars.
- Parameterized by `period` (default 10).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Gwma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [gwma.pine](gwma.pine) |
| **Signature** | [gwma_signature](gwma_signature.md) |
### TL;DR
- GWMA is a Finite Impulse Response (FIR) filter that applies a centered Gaussian window to price data.
- Parameterized by `period`, `sigma` (default 0.4).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Hamma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [hamma.pine](hamma.pine) |
| **Signature** | [hamma_signature](hamma_signature.md) |
### TL;DR
- HAMMA is a Finite Impulse Response (FIR) filter that applies a Hamming window to price data.
- Parameterized by `period` (default 10).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Hanma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [hanma.pine](hanma.pine) |
| **Signature** | [hanma_signature](hanma_signature.md) |
### TL;DR
- HANMA is a Finite Impulse Response (FIR) filter that applies a Hanning (Hann) window to price data.
- Parameterized by `period` (default 10).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Hend) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [hend.pine](hend.pine) |
| **Signature** | [hend_signature](hend_signature.md) |
### TL;DR
- HEND is a symmetric FIR filter derived from the Henderson (1916) closed-form weight formula, designed to pass cubic polynomial trends without disto...
- Parameterized by `period` (default 7).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Hma) |
| **Output range** | Tracks input |
| **Warmup** | `period + sqrtPeriod - 1` bars |
| **PineScript** | [hma.pine](hma.pine) |
| **Signature** | [hma_signature](hma_signature.md) |
### TL;DR
- HMA (Hull Moving Average) is a solution to the eternal struggle between smoothness and lag.
- Parameterized by `period`.
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Ilrs) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [ilrs.pine](ilrs.pine) |
| **Signature** | [ilrs_signature](ilrs_signature.md) |
### TL;DR
- ILRS computes the linear regression slope over a rolling window, then accumulates it via discrete integration (running sum) to reconstruct a smooth...
- Parameterized by `period` (default 14).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Kaiser) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [kaiser.pine](kaiser.pine) |
| **Signature** | [kaiser_signature](kaiser_signature.md) |
### TL;DR
- KAISER applies the Kaiser-Bessel window function as FIR filter weights, providing a single parameter ($\beta$) that continuously controls the trade...
- Parameterized by `period` (default 14), `beta` (default 3.0).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Lanczos) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [lanczos.pine](lanczos.pine) |
| **Signature** | [lanczos_signature](lanczos_signature.md) |
### TL;DR
- LANCZOS applies the normalized sinc function $\text{sinc}(x) = \sin(\pi x)/(\pi x)$ as a symmetric FIR window, producing a moving average with near...
- Parameterized by `period` (default 14).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Lsma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [lsma.pine](lsma.pine) |
| **Signature** | [lsma_signature](lsma_signature.md) |
### TL;DR
- LSMA (Least Squares Moving Average), also known as the Moving Linear Regression or Endpoint Moving Average, calculates the least squares regression...
- Parameterized by `period`, `offset` (default 0).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Nlma) |
| **Output range** | Tracks input |
| **Warmup** | 1 bar |
| **PineScript** | [nlma.pine](nlma.pine) |
| **Signature** | [nlma_signature](nlma_signature.md) |
### TL;DR
- NLMA uses a two-phase damped cosine kernel with $5P - 1$ taps (where $P$ is the user period).
- Parameterized by `period` (default 14).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Nyqma) |
| **Output range** | Tracks input |
| **Warmup** | 1 bar |
| **PineScript** | [nyqma.pine](nyqma.pine) |
| **Signature** | [nyqma_signature](nyqma_signature.md) |
### TL;DR
- NYQMA combines a primary LWMA (Linear Weighted Moving Average) with a secondary LWMA applied to the first, using lag-compensating extrapolation: $\...
- Parameterized by `period` (default 89), `nyquistperiod` (default 21).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Parzen) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [parzen.pine](parzen.pine) |
| **Signature** | [parzen_signature](parzen_signature.md) |
### TL;DR
- PARZEN applies the Parzen (de la Vallée-Poussin) window function as FIR filter weights, producing a moving average with exceptional sidelobe suppre...
- Parameterized by `period` (default 14).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Pma) |
| **Output range** | Tracks input |
| **Warmup** | `(period * 2) - 1` bars |
| **PineScript** | [pma.pine](pma.pine) |
| **Signature** | [pma_signature](pma_signature.md) |
### TL;DR
- PMA (Predictive Moving Average) is a lag-cancellation filter that uses linear extrapolation of dual WMA (Weighted Moving Average) cascades to predi...
- Parameterized by `period`.
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Pwma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [pwma.pine](pwma.pine) |
| **Signature** | [pwma_signature](pwma_signature.md) |
### TL;DR
- PWMA (Parabolic Weighted Moving Average) applies a parabolic ($i^2$) weighting scheme to the data window.
- Parameterized by `period`.
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Qrma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [qrma.pine](qrma.pine) |
| **Signature** | [qrma_signature](qrma_signature.md) |
### TL;DR
- QRMA fits a second-degree polynomial $y = a + bx + cx^2$ to the most recent $N$ bars via ordinary least squares, then returns the fitted value at t...
- Parameterized by `period`.
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Rain) |
| **Output range** | Tracks input |
| **Warmup** | 1 bar |
| **PineScript** | [rain.pine](rain.pine) |
| **Signature** | [rain_signature](rain_signature.md) |
### TL;DR
- RAIN recursively applies SMA 10 times, producing 10 layers of progressively smoother price representation, then computes a weighted average across ...
- Parameterized by `period`.
- Output range: Tracks input.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Rwma) |
| **Output range** | Tracks input |
| **Warmup** | `> period` bars |
### TL;DR
| **PineScript** | [rwma.pine](rwma.pine) |
- RWMA weights each bar's contribution to the average by its price range (high minus low), giving greater influence to volatile bars and less to narr...
- Parameterized by `period` (default 14).
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Sgma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [sgma.pine](sgma.pine) |
| **Signature** | [sgma_signature](sgma_signature.md) |
### TL;DR
- SGMA is a Finite Impulse Response (FIR) filter that uses polynomial fitting to smooth data while preserving higher moments (peaks, valleys, and inf...
- Parameterized by `period` (default 9), `degree` (default 2).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Sinema) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [sinema.pine](sinema.pine) |
| **Signature** | [sinema_signature](sinema_signature.md) |
### TL;DR
- The Sine-Weighted Moving Average (SINEMA) applies sine-wave weighting to data points within the lookback window.
- Parameterized by `period`.
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Sma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [sma.pine](sma.pine) |
| **Signature** | [sma_signature](sma_signature.md) |
### TL;DR
- The Simple Moving Average (SMA) is the unweighted arithmetic mean of the last $N$ data points.
- Parameterized by `period`.
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (SP15) |
| **Output range** | Tracks input |
| **Warmup** | `Period` bars |
| **PineScript** | [sp15.pine](sp15.pine) |
| **Signature** | [sp15_signature](sp15_signature.md) |
### TL;DR
- SP15 is a fixed-coefficient symmetric FIR filter with 15 weights: $[-3, -6, -5, 3, 21, 46, 67, 74, 67, 46, 21, 3, -5, -6, -3]$ divided by 320.
- No configurable parameters; computation is stateless per bar.
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Swma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [swma.pine](swma.pine) |
| **Signature** | [swma_signature](swma_signature.md) |
### TL;DR
- SWMA applies triangular (symmetric) weights that peak at the center of the window and taper linearly to the edges.
- Parameterized by `period` (default 4).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Trima) |
| **Output range** | Tracks input |
| **Warmup** | `p1 + p2 - 1` bars |
| **PineScript** | [trima.pine](trima.pine) |
| **Signature** | [trima_signature](trima_signature.md) |
### TL;DR
- The Triangular Moving Average (TRIMA) places the majority of its weight on the middle of the data window, tapering off linearly towards the ends.
- Parameterized by `period`.
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Tsf) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [tsf.pine](tsf.pine) |
| **Signature** | [tsf_signature](tsf_signature.md) |
### TL;DR
- TSF projects the least-squares regression line one bar forward, providing a statistically grounded forecast of the next bar's value.
- Parameterized by `period` (default 14).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Tukey_w) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [tukey_w.pine](tukey_w.pine) |
| **Signature** | [tukey_w_signature](tukey_w_signature.md) |
### TL;DR
- TUKEY_W applies the Tukey (tapered cosine) window as FIR filter weights, offering a single parameter $\alpha$ that controls the fraction of the win...
- Parameterized by `period` (default 20), `alpha` (default 0.5).
- Output range: Tracks input.
+1 -2
View File
@@ -8,10 +8,9 @@
| **Outputs** | Single series (Wma) |
| **Output range** | Tracks input |
| **Warmup** | `period` bars |
| **PineScript** | [wma.pine](wma.pine) |
| **Signature** | [wma_signature](wma_signature.md) |
### TL;DR
- The Weighted Moving Average (WMA) assigns a linearly decreasing weight to data points.
- Parameterized by `period`.
- Output range: Tracks input.