PINE LIBRARY
已更新 Pivots library

Library "Pivots"
TODO: add library description here
pivots(_type, _open, _high, _low, _clsoe) Calculates the pivot point and returns its value.
Parameters:
_type: Specifies the type of pivot point.
_open: The open price
_high: The high price
_low: The low price
_clsoe: The close price
Returns: Returns the value of the calculated pivot point as a tuple.
cpr(_high, _low, _clsoe) Calculate the Central Pivot Range
Parameters:
_high: The high price
_low: The low price
_clsoe: The close price
Returns: Returns the values as a tuple.
htf_ohlc(_htf) Calculate the HTF values
Parameters:
_htf: Resolution
Returns: Returns the values as a tuple.
TODO: add library description here
pivots(_type, _open, _high, _low, _clsoe) Calculates the pivot point and returns its value.
Parameters:
_type: Specifies the type of pivot point.
_open: The open price
_high: The high price
_low: The low price
_clsoe: The close price
Returns: Returns the value of the calculated pivot point as a tuple.
cpr(_high, _low, _clsoe) Calculate the Central Pivot Range
Parameters:
_high: The high price
_low: The low price
_clsoe: The close price
Returns: Returns the values as a tuple.
htf_ohlc(_htf) Calculate the HTF values
Parameters:
_htf: Resolution
Returns: Returns the values as a tuple.
版本注释
Added sample codes.版本注释
v3: Added HTF sample.版本注释
v4: Added pivot types ('Classic', 'DM', 'Camarilla', 'Expected Pivot Points').版本注释
v5- Added a pivot types "Floor" and "Tom DeMark's Pivot"
版本注释
v6Added "PP only" options.
版本注释
v7added a type 'HL2'
版本注释
v8added a type "Zone Analysis"
版本注释
v9版本注释
v10版本注释
v11added an option "OC2"
Pine脚本库
本着真正的TradingView精神,作者将此Pine代码发布为开源库,以便我们社区的其他Pine程序员可以重复使用它。向作者致敬!您可以私密或在其他开源出版物中使用此库,但在出版物中重复使用此代码受网站规则约束。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
Pine脚本库
本着真正的TradingView精神,作者将此Pine代码发布为开源库,以便我们社区的其他Pine程序员可以重复使用它。向作者致敬!您可以私密或在其他开源出版物中使用此库,但在出版物中重复使用此代码受网站规则约束。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。