PINE LIBRARY
已更新 ma_function

Library "ma_function"
TODO: This library is a package of various MAs.
ma_function(name, source, length) This function provides the MA specified in the argument.
Parameters:
name: MA's name
source: Source value
length: Look back periods
Returns: Ma value
TODO: This library is a package of various MAs.
ma_function(name, source, length) This function provides the MA specified in the argument.
Parameters:
name: MA's name
source: Source value
length: Look back periods
Returns: Ma value
版本注释
v2. Added some MAs.版本注释
v3Fixed a typo.
Added calc() : a syntax sugar of ma_function
版本注释
v4Updated:
ma_function(name, source, length)
This function provides the MA specified in the argument.
Parameters:
name: MA's name
source: Source value
length: Look back periods
Returns: MA value
calc()
版本注释
v5Added:
sma(x, y)
Parameters:
x (float)
y (int)
ema(src, length)
Parameters:
src (float)
length (int)
kama(xPrice, Length)
Parameters:
xPrice (float)
Length (int)
zlema(src, length)
Parameters:
src (float)
length (int)
mav(source, length)
Parameters:
source (float)
length (int)
dema(src, len)
Parameters:
src (float)
len (int)
tema(src, len)
Parameters:
src (float)
len (int)
hma(src, len)
Parameters:
src (float)
len (int)
tma(source, length)
Parameters:
source (float)
length (int)
ama(source, length, fast, slow)
Parameters:
source (float)
length (int)
fast (int)
slow (int)
rma(src, length)
Parameters:
src (float)
length (int)
bwma(src, length, beta, alpha)
Parameters:
src (float)
length (int)
beta (int)
alpha (int)
Pine脚本库
秉承TradingView的精神,作者已将此Pine代码作为开源库发布,以便我们社区的其他Pine程序员可以重用它。向作者致敬!您可以私下或在其他开源出版物中使用此库,但在出版物中重用此代码须遵守网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
Pine脚本库
秉承TradingView的精神,作者已将此Pine代码作为开源库发布,以便我们社区的其他Pine程序员可以重用它。向作者致敬!您可以私下或在其他开源出版物中使用此库,但在出版物中重用此代码须遵守网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。