PINE LIBRARY
已更新 Heikinashi

Library "Heikinashi"
This library calculates "Heikinashi".
calc(_o, _h, _l, _c, _my_close)
This function calculates "Heikinashi".
Parameters:
_o: open
_h: high
_l: low
_c: close
_my_close: Specify if you want to force only the closing price to a real value.
Returns: TODO: add what function returns
This library calculates "Heikinashi".
calc(_o, _h, _l, _c, _my_close)
This function calculates "Heikinashi".
Parameters:
_o: open
_h: high
_l: low
_c: close
_my_close: Specify if you want to force only the closing price to a real value.
Returns: TODO: add what function returns
發行說明
v2 Added sample code for multiple averaged heikinashi.
發行說明
v3Added:
calcFor(_o, _h, _l, _c, _close_type, _times)
This function calculates "Heikinashi".
Parameters:
_o: open
_h: high
_l: low
_c: close
_close_type: ['ohlc4', 'hlc3', 'oc2', 'hl2', 'close'] Sets the calculation method to be used for the closing price.
_times: Sets how many times to average.(min:1, max:10)
Returns: TODO: add what function returns
Updated:
calc(_o, _h, _l, _c, _close_type)
This function calculates "Heikinashi".
Parameters:
_o: open
_h: high
_l: low
_c: close
_close_type: ['ohlc4', 'hlc3', 'oc2', 'hl2', 'close'] Sets the calculation method to be used for the closing price.
Returns: TODO: add what function returns
發行說明
v4 Performance Improvement
發行說明
v5Bug fixed.
Added:
calcFor_v1(_o, _h, _l, _c, _close_type, _times)
This function calculates "Heikinashi".
Parameters:
_o: open
_h: high
_l: low
_c: close
_close_type: ['ohlc4', 'hlc3', 'oc2', 'hl2', 'close'] Sets the calculation method to be used for the closing price.
_times: Sets how many times to average.(min:1, max:10)
Returns: TODO: add what function returns
發行說明
v6Added the source types "ohlc4 smoothed".
發行說明
v7Removed:
calcFor_v1(_o, _h, _l, _c, _close_type, _times)
This function calculates "Heikinashi".
發行說明
v8revert v1
Added:
calcFor_v1(_o, _h, _l, _c, _close_type, _times)
This function calculates "Heikinashi".
Parameters:
_o (float): open
_h (float): high
_l (float): low
_c (float): close
_close_type (string): ['ohlc4', 'hlc3', 'oc2', 'hl2', 'close'] Sets the calculation method to be used for the closing price.
_times (int): Sets how many times to average.(min:1, max:10)
Returns: TODO: add what function returns
發行說明
v9Added:
f_heikinashi_close(_type, _o, _h, _l, _c)
Parameters:
_type (string)
_o (float)
_h (float)
_l (float)
_c (float)
發行說明
v10calcfor algo improved.
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
Pine腳本庫
秉持 TradingView 一貫的共享精神,作者將此 Pine 程式碼發佈為開源庫,讓社群中的其他 Pine 程式設計師能夠重複使用。向作者致敬!您可以在私人專案或其他開源發佈中使用此庫,但在公開發佈中重複使用該程式碼需遵守社群規範。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。