mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 13:08:04 +00:00
fix(docs): correct .md documentation across errors, dynamics, filters, forecasts, momentum, numerics, oscillators, reversals, statistics, trends, volatility, volume
Deep review of all indicator categories verified .md headers against .cs WarmupPeriod, parameters, inputs, and outputs. Fixes include warmup corrections, parameter documentation, output type accuracy, and Pine Script alignment.
This commit is contained in:
@@ -12,8 +12,6 @@ indicator("Price Volume Divergence (PVD)", "PVD", overlay=false)
|
||||
//@returns Smoothed divergence value
|
||||
//@optimized for performance and dirty data
|
||||
pvd(simple int price_period, simple int volume_period, simple int smoothing_period, series float c=close, series float vol=volume ) =>
|
||||
if smoothing_period <= 0
|
||||
runtime.error("Smoothing period must be greater than 0")
|
||||
float close_price = nz(c, close)
|
||||
float volume_val = math.max(nz(vol, 0.0), 1.0)
|
||||
float prev_close = bar_index < price_period ? close_price[math.max(bar_index, 1)] : close_price[price_period]
|
||||
|
||||
Reference in New Issue
Block a user