mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 19:48:05 +00:00
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:
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (ACCEL) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `3` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [accel.pine](accel.pine) |
|
||||
|
||||
- ACCEL measures the rate of change of velocity—the acceleration of a time series.
|
||||
- No configurable parameters; computation is stateless per bar.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Betadist) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [betadist.pine](betadist.pine) |
|
||||
|
||||
- BETADIST computes the cumulative distribution function of the Beta distribution applied to a min-max normalized price series.
|
||||
- Parameterized by `period` (default 50), `alpha` (default 2.0), `beta` (default 2.0).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Binomdist) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [binomdist.pine](binomdist.pine) |
|
||||
|
||||
- BINOMDIST computes the cumulative distribution function of the Binomial distribution, mapping a min-max normalized price to a success probability $...
|
||||
- Parameterized by `period` (default 50), `trials` (default 20), `threshold` (default 10).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Change) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period + 1` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [change.pine](change.pine) |
|
||||
|
||||
- CHANGE calculates the percentage change between the current value and a value N periods ago.
|
||||
- Parameterized by `period` (default 1).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Cwt) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | windowSize (2K+1) bars, where K = round(3 × scale) |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [cwt.pine](cwt.pine) |
|
||||
|
||||
- CWT computes the magnitude of the Continuous Wavelet Transform at a specified scale using the Morlet wavelet, providing a time-frequency decomposit...
|
||||
- Parameterized by `scale` (default 10.0), `omega0` (default 6.0).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Decay) |
|
||||
| **Output range** | Same as input (overlay) |
|
||||
| **Warmup** | `1` bar |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [decay.pine](decay.pine) |
|
||||
|
||||
- DECAY (Linear Decay) tracks the maximum of the current input and the previous output minus a fixed absolute step of `1/period`.
|
||||
- Parameterized by `period` (default 5).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Dwt) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `bufferSize` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [dwt.pine](dwt.pine) |
|
||||
|
||||
- The Discrete Wavelet Transform decomposes a price series into multi-resolution frequency components using the a trous (with holes) stationary Haar ...
|
||||
- Parameterized by `levels` (default 4), `output` (default 0).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Edecay) |
|
||||
| **Output range** | Same as input (overlay) |
|
||||
| **Warmup** | `1` bar |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [edecay.pine](edecay.pine) |
|
||||
|
||||
- EDECAY (Exponential Decay) tracks the maximum of the current input and the previous output multiplied by a decay factor of `(period-1)/period`.
|
||||
- Parameterized by `period` (default 5).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Expdist) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [expdist.pine](expdist.pine) |
|
||||
|
||||
- The Exponential Distribution CDF transforms a min-max normalized price into the cumulative distribution function of the exponential distribution, p...
|
||||
- Parameterized by `period` (default 50), `lambda` (default 3.0).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (EXPTRANS) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `0` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [exptrans.pine](exptrans.pine) |
|
||||
|
||||
- The Exponential (EXP) transformer applies the natural exponential function $e^x$ to each value in a time series.
|
||||
- No configurable parameters; computation is stateless per bar.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Fdist) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [fdist.pine](fdist.pine) |
|
||||
|
||||
- The F-Distribution CDF transforms a min-max normalized price into the cumulative distribution function of the F-distribution (Fisher-Snedecor distr...
|
||||
- Parameterized by `d1` (default 1), `d2` (default 1), `period` (default 14).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Fft) |
|
||||
| **Output range** | [minPeriod, maxPeriod] |
|
||||
| **Warmup** | windowSize bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [fft.pine](fft.pine) |
|
||||
|
||||
- The FFT indicator computes the dominant cycle period in a price series using a radix-2 Cooley-Tukey Fast Fourier Transform with a Hanning window.
|
||||
- Parameterized by `windowSize` (default 64), `minPeriod` (default 4), `maxPeriod` (default 32).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Gammadist) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [gammadist.pine](gammadist.pine) |
|
||||
|
||||
- The Gamma Distribution CDF transforms a min-max normalized price into the cumulative distribution function of the gamma distribution, producing an ...
|
||||
- Parameterized by `alpha` (default 2.0), `beta` (default 1.0), `period` (default 14).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Highest) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [highest.pine](highest.pine) |
|
||||
|
||||
- HIGHEST calculates the maximum value over a rolling lookback window.
|
||||
- Parameterized by `period`.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Ifft) |
|
||||
| **Output range** | Varies (overlays on price) |
|
||||
| **Warmup** | windowSize bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [ifft.pine](ifft.pine) |
|
||||
|
||||
- The IFFT indicator reconstructs a smoothed version of the price series using a true forward FFT → spectral truncation → inverse FFT pipeline.
|
||||
- Parameterized by `windowSize` (default 64), `numHarmonics` (default 5).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (JERK) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `4` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [jerk.pine](jerk.pine) |
|
||||
|
||||
- JERK measures the rate of change of acceleration—called "jerk" in physics.
|
||||
- No configurable parameters; computation is stateless per bar.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Lineartrans) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `0` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [lineartrans.pine](lineartrans.pine) |
|
||||
|
||||
- The Linear transformer applies an affine transformation $y = \text{slope} \cdot x + \text{intercept}$ to each value in a time series.
|
||||
- Parameterized by `slope` (default 1.0), `intercept` (default 0.0).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Lognormdist) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [lognormdist.pine](lognormdist.pine) |
|
||||
|
||||
- The Log-Normal Distribution CDF transforms a min-max normalized price into the cumulative distribution function of the log-normal distribution, pro...
|
||||
- Parameterized by `mu` (default 0.0), `sigma` (default 1.0), `period` (default 14).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (LOGTRANS) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `0` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [logtrans.pine](logtrans.pine) |
|
||||
|
||||
- The LOG transformer applies the natural logarithm function $\ln(x)$ to input values.
|
||||
- No configurable parameters; computation is stateless per bar.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Lowest) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [lowest.pine](lowest.pine) |
|
||||
|
||||
- LOWEST calculates the minimum value over a rolling lookback window.
|
||||
- Parameterized by `period`.
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
| **Output range** | Streaming: 0 to period-1 (bars-ago); Batch span: absolute array index |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
|
||||
- MAXINDEX finds the position (index) of the maximum value within a rolling lookback window.
|
||||
- Parameterized by `period` (minimum 2).
|
||||
- Streaming mode outputs bars-ago offset (0 = current bar holds the max, period-1 = oldest bar).
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
| **Output range** | Streaming: 0 to period-1 (bars-ago); Batch span: absolute array index |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
|
||||
- MININDEX finds the position (index) of the minimum value within a rolling lookback window.
|
||||
- Parameterized by `period` (minimum 2).
|
||||
- Streaming mode outputs bars-ago offset (0 = current bar holds the min, period-1 = oldest bar).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Normalize) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [normalize.pine](normalize.pine) |
|
||||
|
||||
- The Normalize transformer applies min-max scaling to map any value series into the bounded range [0, 1] based on the observed minimum and maximum w...
|
||||
- Parameterized by `period` (default 14).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Normdist) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [normdist.pine](normdist.pine) |
|
||||
|
||||
- The Normal Distribution CDF transforms a z-score normalized price into the cumulative distribution function of the Gaussian distribution, producing...
|
||||
- Parameterized by `mu` (default 0.0), `sigma` (default 1.0), `period` (default 14).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Poissondist) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [poissondist.pine](poissondist.pine) |
|
||||
|
||||
- The Poisson Distribution CDF computes the probability $P(X \le k)$ for a Poisson random variable whose rate parameter $\lambda$ is derived from the...
|
||||
- Parameterized by `lambda` (default 1.0), `period` (default 14), `threshold` (default 5).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (RELU) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `0` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [relu.pine](relu.pine) |
|
||||
|
||||
- The Rectified Linear Unit (ReLU) activation function applies `max(0, x)` to each value, passing positive inputs unchanged while zeroing negative ones.
|
||||
- No configurable parameters; computation is stateless per bar.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Sigmoid) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `0` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [sigmoid.pine](sigmoid.pine) |
|
||||
|
||||
- The Sigmoid (Logistic) transformer maps any real-valued input to the bounded range (0, 1) using the standard logistic function.
|
||||
- Parameterized by `k` (default 1.0), `x0` (default 0.0).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (SLOPE) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `2` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [slope.pine](slope.pine) |
|
||||
|
||||
- SLOPE measures the instantaneous rate of change—the velocity of a time series.
|
||||
- No configurable parameters; computation is stateless per bar.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (SQRTTRANS) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `0` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [sqrttrans.pine](sqrttrans.pine) |
|
||||
|
||||
- The Square Root (SQRT) transformer applies $\sqrt{x}$ to each value in a time series.
|
||||
- No configurable parameters; computation is stateless per bar.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Tdist) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [tdist.pine](tdist.pine) |
|
||||
|
||||
- The Student's t-Distribution CDF transforms a min-max normalized price into the cumulative distribution function of Student's t-distribution, produ...
|
||||
- Parameterized by `nu` (default 10), `period` (default 14).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Weibulldist) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [weibulldist.pine](weibulldist.pine) |
|
||||
|
||||
- The Weibull Distribution CDF transforms a min-max normalized price into the cumulative distribution function of the Weibull distribution, producing...
|
||||
- Parameterized by `k` (default 1.5), `lambda` (default 1.0), `period` (default 14).
|
||||
|
||||
Reference in New Issue
Block a user