mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 04:28: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:
@@ -9,8 +9,8 @@ indicator("Logarithmic Transformation (LOG)", "Logtrans", overlay=false)
|
||||
//@optimized for performance and dirty data
|
||||
logT(series float source) =>
|
||||
if na(source)
|
||||
runtime.error("Parameter 'source' cannot be na.")
|
||||
if source <= 0
|
||||
na
|
||||
else if source <= 0
|
||||
na
|
||||
else
|
||||
math.log(source)
|
||||
@@ -18,10 +18,10 @@ logT(series float source) =>
|
||||
// ---------- Main loop ----------
|
||||
|
||||
// Inputs
|
||||
i_source = input(close, "Source")
|
||||
i_source = input.source(close, "Source")
|
||||
|
||||
// Calculation
|
||||
transformedSource = logT(i_source)
|
||||
|
||||
// Plot
|
||||
plot(transformedSource, "Log Transformation", color=color.green, color=color.yellow, linewidth=2)
|
||||
plot(transformedSource, "Logtrans", color=color.yellow, linewidth=2)
|
||||
|
||||
Reference in New Issue
Block a user