mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 21:18:04 +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 (Yzv) |
|
||||
| **Output range** | $\geq 0$ |
|
||||
| **Warmup** | `period` bars |
|
||||
|
||||
### TL;DR
|
||||
| **PineScript** | [yzv.pine](yzv.pine) |
|
||||
|
||||
- Yang-Zhang Volatility is a sophisticated volatility estimator that combines overnight (close-to-open) returns with Rogers-Satchell intraday volatil...
|
||||
- Parameterized by `period` (default 20).
|
||||
|
||||
@@ -27,7 +27,7 @@ yzv(int length) =>
|
||||
raw_rma_val := (nz(raw_rma_val[1]) * (length - 1) + s_sq_daily) / length
|
||||
e_comp_val := (1.0 - rma_alpha) * e_comp_val
|
||||
smoothed_s_sq := e_comp_val > EPSILON_YZV ? raw_rma_val / (1.0 - e_comp_val) : raw_rma_val
|
||||
result = math.sqrt(smoothed_s_sq)
|
||||
result = math.sqrt(math.max(0.0, nz(smoothed_s_sq)))
|
||||
result
|
||||
|
||||
// Inputs
|
||||
|
||||
Reference in New Issue
Block a user