mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 12:38:06 +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 (Bbi) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `Math.Max(Math.Max(p1, p2), Math.Max(p3, p4))` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [bbi.pine](bbi.pine) |
|
||||
|
||||
- BBI (Bulls Bears Index) computes the arithmetic mean of four Simple Moving Averages with geometrically spaced periods (3, 6, 12, 24 by default).
|
||||
- Parameterized by `p1` (default defaultp1), `p2` (default defaultp2), `p3` (default defaultp3), `p4` (default defaultp4).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Brar) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [brar.pine](brar.pine) |
|
||||
|
||||
- BRAR is a dual-output sentiment oscillator from the Japanese technical analysis tradition that decomposes market pressure into two independent rati...
|
||||
- Parameterized by `period` (default 26).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Coppock) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | 1 bar |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [coppock.pine](coppock.pine) |
|
||||
|
||||
- The Coppock Curve is a long-term momentum oscillator that applies a Weighted Moving Average to the sum of two Rate of Change calculations at differ...
|
||||
- Parameterized by `longRoc` (default 14), `shortRoc` (default 11), `wmaPeriod` (default 10).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Crsi) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | 1 bar |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [crsi.pine](crsi.pine) |
|
||||
|
||||
- Connors RSI is a composite momentum oscillator that combines three independent measurements of price behavior into a single bounded (0-100) output:...
|
||||
- Parameterized by `rsiperiod` (default 3), `streakperiod` (default 2), `rankperiod` (default 100).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Cti) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [cti.pine](cti.pine) |
|
||||
|
||||
- The Correlation Trend Indicator computes the Pearson correlation coefficient between the price series and a linear time index over a rolling window...
|
||||
- Parameterized by `period` (default 20).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Deco) |
|
||||
| **Output range** | $0$ to $1$ |
|
||||
| **Warmup** | 1 bar |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [deco.pine](deco.pine) |
|
||||
|
||||
- The Decycler Oscillator (DECO) is a DSP-based oscillator developed by John F.
|
||||
- Parameterized by `shortperiod` (default 30), `longperiod` (default 60).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Dem) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period + 1` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [dem.pine](dem.pine) |
|
||||
|
||||
- DEM (DeMarker Oscillator) is a bounded [0, 1] momentum oscillator that measures sequential demand pressure by comparing each bar's high and low aga...
|
||||
- Parameterized by `period` (default 14).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Dosc) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `rsiPeriod + sigPeriod` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [dosc.pine](dosc.pine) |
|
||||
|
||||
- The Derivative Oscillator applies a four-stage signal processing pipeline to extract momentum inflection points: RSI via Wilder's smoothing, double...
|
||||
- Parameterized by `rsiperiod` (default 14), `ema1period` (default 5), `ema2period` (default 3), `sigperiod` (default 9).
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
| **Outputs** | Single series (DPO line) |
|
||||
| **Output range** | Unbounded (centered on zero) |
|
||||
| **Warmup** | `period + floor(period / 2) + 1` bars |
|
||||
| **PineScript** | [dpo.pine](dpo.pine) |
|
||||
|
||||
### Key takeaways
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Dymoi) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | 1 bar |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [dymoi.pine](dymoi.pine) |
|
||||
|
||||
- DYMOI is a volatility-adaptive RSI: when recent price swings are large relative to longer-term swings, the RSI period shortens and the indicator be...
|
||||
- Parameterized by `baseperiod` (default 14), `shortperiod` (default 5), `longperiod` (default 10), `minperiod` (default 3), `maxperiod` (default 30).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Efficiency Ratio) |
|
||||
| **Output range** | $0$ to $1$ |
|
||||
| **Warmup** | `period + 1` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [er.pine](er.pine) |
|
||||
|
||||
- ER measures the signal-to-noise ratio of price movement: net directional change divided by total path length.
|
||||
- Clamped to $[0, 1]$; division by zero (zero noise) returns $0$.
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
| **Outputs** | Dual: Bull Power (primary), Bear Power (property) |
|
||||
| **Output range** | Unbounded (centered around 0) |
|
||||
| **Warmup** | `period` bars |
|
||||
| **PineScript** | [eri.pine](eri.pine) |
|
||||
|
||||
### Key takeaways
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
| **Outputs** | Single series (EMA-smoothed Force Index) |
|
||||
| **Output range** | Unbounded (centered around 0) |
|
||||
| **Warmup** | `period` bars |
|
||||
| **PineScript** | [fi.pine](fi.pine) |
|
||||
|
||||
### Key takeaways
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Gator) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `Math.Max(jawPeriod + jawShift, Math.Max(teethPeriod + teethShift, lipsPeriod + lipsShift))` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [gator.pine](gator.pine) |
|
||||
|
||||
- The Williams Gator Oscillator is a dual-histogram visualization of the Alligator indicator's convergence and divergence.
|
||||
- Parameterized by `jawperiod` (default 13), `jawshift` (default 8), `teethperiod` (default 8), `teethshift` (default 5), `lipsperiod` (default 5), `lipsshift` (default 3).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (IMI) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [imi.pine](imi.pine) |
|
||||
|
||||
- The Intraday Momentum Index measures buying and selling pressure using the open-to-close relationship within each bar, rather than the close-to-clo...
|
||||
- Parameterized by `period` (default 14).
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
| **Outputs** | Single series (percentage deviation from SMA) |
|
||||
| **Output range** | Unbounded (centered around 0) |
|
||||
| **Warmup** | `period` bars |
|
||||
| **PineScript** | [kri.pine](kri.pine) |
|
||||
|
||||
### Key takeaways
|
||||
|
||||
|
||||
@@ -8,11 +8,10 @@
|
||||
| **Outputs** | Multiple series (KstValue, Signal) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `Math.Max(Math.Max(r1, r2), Math.Max(r3, r4))
|
||||
| **PineScript** | [kst.pine](kst.pine) |
|
||||
+ Math.Max(Math.Max(s1, s2), Math.Max(s3, s4))
|
||||
+ sigPeriod - 2` bars |
|
||||
|
||||
### TL;DR
|
||||
|
||||
- The Know Sure Thing is a multi-timeframe momentum oscillator that computes four Rate of Change values at progressively longer lookback periods, smo...
|
||||
- Parameterized by `r1` (default 10), `r2` (default 15), `r3` (default 20), `r4` (default 30), `s1` (default 10), `s2` (default 10), `s3` (default 10), `s4` (default 15), `sigPeriod` (default 9).
|
||||
- Output range: Varies (see docs).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Lrsi) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `4` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [lrsi.pine](lrsi.pine) |
|
||||
|
||||
- Laguerre RSI is an adaptive oscillator invented by John Ehlers that replaces standard RSI's Wilder-smoothed gain/loss averages with a 4-stage casca...
|
||||
- Parameterized by `gamma` (default 0.5).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (MARKETFI) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `> 1` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [marketfi.pine](marketfi.pine) |
|
||||
|
||||
- The Market Facilitation Index answers a single question with arithmetic directness: how much price moved per unit of volume traded?
|
||||
- No configurable parameters; computation is stateless per bar.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Mstoch) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | 1 bar |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [mstoch.pine](mstoch.pine) |
|
||||
|
||||
- The MESA Stochastic applies John Ehlers' Roofing Filter as a preprocessing stage before computing a stochastic oscillator, then smooths the stochas...
|
||||
- Parameterized by `stochlength` (default 20), `hplength` (default 48), `sslength` (default 10).
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
| **Outputs** | Single series (percentage of up-bars) |
|
||||
| **Output range** | $0$ to $100$ |
|
||||
| **Warmup** | `period` bars |
|
||||
| **PineScript** | [psl.pine](psl.pine) |
|
||||
|
||||
### Key takeaways
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Qqe) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `rsiPeriod + smoothFactor + darPeriod * 2` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [qqe.pine](qqe.pine) |
|
||||
|
||||
- Quantitative Qualitative Estimation applies a multi-stage smoothing pipeline to RSI and then constructs dynamic volatility-based trailing bands aro...
|
||||
- Parameterized by `rsiPeriod` (default 14), `smoothFactor` (default 5), `qqeFactor` (default 4.236).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Reflex) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [reflex.pine](reflex.pine) |
|
||||
|
||||
- REFLEX is a zero-lag oscillator that measures the reversal tendency of price by comparing a Super-Smoother-filtered price against a linear extrapol...
|
||||
- Parameterized by `period`.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (ReverseEma) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [reverseema.pine](reverseema.pine) |
|
||||
|
||||
- The Reverse EMA applies an 8-stage cascaded Z-transform inversion to a compensated EMA, progressively extracting and subtracting the accumulated la...
|
||||
- Parameterized by `period`.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Rvgi) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [rvgi.pine](rvgi.pine) |
|
||||
|
||||
- The Relative Vigor Index measures the conviction of a price move by comparing closing strength (close minus open) to the total intrabar range (high...
|
||||
- Parameterized by `period` (default 10).
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
| **Outputs** | Dual series (K line, D signal line) |
|
||||
| **Output range** | $-100$ to $+100$ |
|
||||
| **Warmup** | `kPeriod + kSmooth + dSmooth` bars |
|
||||
| **PineScript** | [smi.pine](smi.pine) |
|
||||
|
||||
### Key takeaways
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Squeeze) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [squeeze.pine](squeeze.pine) |
|
||||
|
||||
- Squeeze Momentum combines Bollinger Band and Keltner Channel width analysis to detect low-volatility compression ("squeeze") states, while simultan...
|
||||
- Parameterized by `period` (default 20), `bbmult` (default 2.0), `kcmult` (default 1.5).
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Stc) |
|
||||
| **Output range** | $0$ to $100$ |
|
||||
| **Warmup** | 1 bar |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [stc.pine](stc.pine) |
|
||||
|
||||
- The Schaff Trend Cycle is a cyclometric oscillator that applies double-Stochastic normalization to MACD, extracting the cyclical phase hidden withi...
|
||||
- Parameterized by `kperiod` (default 10), `dperiod` (default 3), `fastlength` (default 23), `slowlength` (default 50), `smoothing` (default stcsmoothing.ema).
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
| **Outputs** | Dual series (%K line, %D signal line) |
|
||||
| **Output range** | $0$ to $100$ |
|
||||
| **Warmup** | `kLength` bars |
|
||||
| **PineScript** | [stoch.pine](stoch.pine) |
|
||||
|
||||
### Key takeaways
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
| **Outputs** | Dual series (%K line, %D signal line) |
|
||||
| **Output range** | $0$ to $100$ |
|
||||
| **Warmup** | `kLength` bars |
|
||||
| **PineScript** | [stochf.pine](stochf.pine) |
|
||||
|
||||
### Key takeaways
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
| **Outputs** | Dual series (%K line, %D signal line) |
|
||||
| **Output range** | $0$ to $100$ |
|
||||
| **Warmup** | `rsiWarmup + stochLength - 1 + kSmooth - 1 + dSmooth - 1` bars |
|
||||
| **PineScript** | [stochrsi.pine](stochrsi.pine) |
|
||||
|
||||
### Key takeaways
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (TdSeq) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `comparePeriod + 1` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [td_seq.pine](td_seq.pine) |
|
||||
|
||||
- TD Sequential is Tom DeMark's exhaustion counting system that identifies potential trend reversals through two phases: a 9-count Setup phase that d...
|
||||
- No configurable parameters; computation is stateless per bar.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
| **Outputs** | Single series (Trendflex) |
|
||||
| **Output range** | Varies (see docs) |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [trendflex.pine](trendflex.pine) |
|
||||
|
||||
- The Trendflex indicator combines a 2-pole Butterworth low-pass pre-filter (Super Smoother) with an O(1) cumulative slope measurement and exponentia...
|
||||
- Parameterized by `period`.
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
| **Outputs** | Single series (Williams %R line) |
|
||||
| **Output range** | $-100$ to $0$ |
|
||||
| **Warmup** | `period` bars |
|
||||
| **PineScript** | [willr.pine](willr.pine) |
|
||||
|
||||
### Key takeaways
|
||||
|
||||
|
||||
Reference in New Issue
Block a user