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,8 +8,7 @@
| **Outputs** | Single series (Acf) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [acf.pine](acf.pine) |
- The Autocorrelation Function (ACF) measures the correlation of a time series with a lagged copy of itself.
- Parameterized by `period`, `lag` (default 1).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Beta) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period + 1` bars |
### TL;DR
| **PineScript** | [beta.pine](beta.pine) |
- Beta measures the volatility of an asset in relation to the overall market.
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (CMA) |
| **Output range** | Varies (see docs) |
| **Warmup** | `1` bars |
### TL;DR
| **PineScript** | [cma.pine](cma.pine) |
- The Cumulative Moving Average (CMA) calculates the arithmetic mean of ALL data points seen so far, not just a fixed window.
- Parameterized by `source`.
@@ -8,8 +8,7 @@
| **Outputs** | Single series (ADF statistic) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period + 1` bars |
### TL;DR
| **PineScript** | [cointegration.pine](cointegration.pine) |
- The Cointegration indicator measures the long-run equilibrium relationship between two price series using the Engle-Granger two-step method with an...
- Parameterized by `period` (default 20).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Pearson r) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [correlation.pine](correlation.pine) |
- The Pearson Correlation Coefficient measures the linear relationship between two variables, returning a value from -1 (perfect negative correlation...
- Parameterized by `period` (default 20).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Cov) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [covariance.pine](covariance.pine) |
- Covariance measures the joint variability of two random variables.
- Parameterized by `period`, `ispopulation` (default false).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Entropy) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [entropy.pine](entropy.pine) |
- Shannon Entropy measures the unpredictability or randomness of a time series over a sliding window.
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Geomean) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [geomean.pine](geomean.pine) |
- The Geometric Mean computes the nth root of the product of n positive values over a sliding window.
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Granger) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period + 1` bars |
### TL;DR
| **PineScript** | [granger.pine](granger.pine) |
- The Granger Causality test asks a precise, falsifiable question: does knowing the history of series X improve your ability to predict series Y, bey...
- Parameterized by `period` (default 20).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Harmean) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [harmean.pine](harmean.pine) |
- The Harmonic Mean computes the reciprocal of the arithmetic mean of reciprocals over a sliding window.
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Hurst) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period + 1` bars |
### TL;DR
| **PineScript** | [hurst.pine](hurst.pine) |
- The Hurst Exponent ($H$) quantifies long-range dependence in a time series through Rescaled Range (R/S) analysis.
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Iqr) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [iqr.pine](iqr.pine) |
- The Interquartile Range measures the spread of the middle 50% of a sorted dataset within a rolling window.
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Jb) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [jb.pine](jb.pine) |
- The Jarque-Bera test quantifies departure from normality by combining skewness and excess kurtosis into a single chi-squared statistic.
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Kurtosis) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [kurtosis.pine](kurtosis.pine) |
- Kurtosis measures the **tailedness** of a probability distribution.
- Parameterized by `period`, `ispopulation` (default false).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (LinReg) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [linreg.pine](linreg.pine) |
- The Linear Regression Curve plots the end point of the linear regression line for each bar.
- Parameterized by `period`, `offset` (default 0).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (MeanDev) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [meandev.pine](meandev.pine) |
- ````markdown
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Median) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [median.pine](median.pine) |
- The Rolling Median is a robust statistic that represents the middle value of a dataset within a moving window.
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Mode) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [mode.pine](mode.pine) |
- The **Mode** is a rolling statistical indicator that identifies the most frequently occurring value within a sliding window of recent observations.
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Pacf) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [pacf.pine](pacf.pine) |
- The Partial Autocorrelation Function (PACF) measures the correlation between a time series and its lagged values, after removing the effects of all...
- Parameterized by `period`, `lag` (default 1).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Percentile) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [percentile.pine](percentile.pine) |
- The Rolling Percentile computes the value below which a given percentage of observations fall within a sliding window.
- Parameterized by `period`, `percent` (default 50.0).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Polyfit) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [polyfit.pine](polyfit.pine) |
- Polynomial Fitting computes a rolling polynomial regression of configurable degree over a lookback window, returning the fitted value at the curren...
- Parameterized by `period`, `degree` (default 2).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Quantile) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [quantile.pine](quantile.pine) |
- The Rolling Quantile computes the value below which a given fraction of observations fall within a sliding window.
- Parameterized by `period`, `quantilelevel` (default 0.25).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Skew) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [skew.pine](skew.pine) |
- Skewness measures the asymmetry of the probability distribution of a real-valued random variable about its mean.
- Parameterized by `period`, `ispopulation` (default false).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Spearman) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [spearman.pine](spearman.pine) |
- Spearman's ρ (rho) measures the strength and direction of monotonic association between two variables.
- Parameterized by `period` (default 20).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (StdDev) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [stddev.pine](stddev.pine) |
- Standard Deviation measures the amount of variation or dispersion of a set of values.
- Parameterized by `period`, `ispopulation` (default false).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Stderr) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [stderr.pine](stderr.pine) |
- `Stderr` computes the standard error of an OLS regression fit over a rolling window.
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Sum) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [sum.pine](sum.pine) |
- The Sum indicator calculates a rolling window summation using the Kahan-Babuška algorithm (also known as "improved Kahan" or "second-order compensa...
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Theil) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [theil.pine](theil.pine) |
- The Theil T Index is an information-theoretic measure of inequality (or concentration) within a distribution of positive values.
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Trim) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [trim.pine](trim.pine) |
- The Trimmed Mean Moving Average computes a rolling average after discarding a configurable percentage of the most extreme values from each tail of ...
- Parameterized by `period`, `trimpct` (default 10.0).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Variance) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [variance.pine](variance.pine) |
- Variance measures how far a set of numbers is spread out from their average value.
- Parameterized by `period`, `ispopulation` (default false).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Wavg) |
| **Output range** | $0$ to $1$ |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [wavg.pine](wavg.pine) |
- The Weighted Average computes a rolling linearly-weighted mean where the most recent observation receives weight $N$ and the oldest receives weight...
- Parameterized by `period`.
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Wins) |
| **Output range** | Varies (see docs) |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [wins.pine](wins.pine) |
- The Winsorized Mean Moving Average computes a rolling average after replacing (not discarding) the most extreme values in each tail with the bounda...
- Parameterized by `period`, `winpct` (default 10.0).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Zscore) |
| **Output range** | Unbounded |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [zscore.pine](zscore.pine) |
- The Z-Score measures how many population standard deviations a value lies from the rolling mean over a lookback window.
- Parameterized by `period` (default 14).
+1 -2
View File
@@ -8,8 +8,7 @@
| **Outputs** | Single series (Ztest) |
| **Output range** | Unbounded |
| **Warmup** | `period` bars |
### TL;DR
| **PineScript** | [ztest.pine](ztest.pine) |
- ZTEST computes the **one-sample t-statistic**, measuring how many standard errors the rolling sample mean deviates from a hypothesized population m...
- Parameterized by `period` (default 30), `mu0` (default 0.0).