PINE LIBRARY
Actualizado utils

Library "utils"
ma_smooth(alg, src, len) Calculates various moving averages
Parameters:
alg: Smoothing algorithm to use [RMA, SMA, EMA, WMA]
src: Source data
len: Length of moving average
ma_smooth(alg, src, len) Calculates various moving averages
Parameters:
alg: Smoothing algorithm to use [RMA, SMA, EMA, WMA]
src: Source data
len: Length of moving average
Notas de prensa
Update displayed chartNotas de prensa
v3Notas de prensa
v4Added:
vma(alg, src, len) Calculates various moving averages
Parameters:
alg: Smoothing algorithm to use [RMA, SMA, EMA, WMA]
src: Source data
len: Length of moving average
Removed:
ma_smooth(alg, src, len) Calculates various moving averages
Notas de prensa
v5Added:
sig(val) Clamps a value between 0 and 1 on a sigmoid curve
Parameters:
val: Input data
siga(val) Clamps a value between -1 and 1 on a sigmoid curve
Parameters:
val: Input data
Notas de prensa
v6Added:
sigaw(val, weight)
Clamps a series between -1 and 1 on a sigmoid curve with a tunable weight
Parameters:
val (float): Input series
weight (float): Sigmoid weight
Updated:
vma(alg, src, len)
Calculates various moving averages
Parameters:
alg (string): Smoothing algorithm to use (opt: ["SMA", "EMA", "RMA", "WMA", "DEMA", "TEMA", "VWMA", "HMA", "LSMA"])
src (float): Source data
len (simple int): Length of moving average
sig(val)
Clamps a series between 0 and 1 on a sigmoid curve
Parameters:
val (float): Input series
siga(val)
Clamps a series between -1 and 1 on a sigmoid curve
Parameters:
val (float): Input series
Biblioteca Pine
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Exención de responsabilidad
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Biblioteca Pine
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Exención de responsabilidad
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.