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
發行說明
v2
Added sample code for multiple averaged heikinashi.
發行說明
v3

Added:
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
發行說明
v5
Bug 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
發行說明
v6
Added the source types "ohlc4 smoothed".
發行說明
v7

Removed:
calcFor_v1(_o, _h, _l, _c, _close_type, _times)
  This function calculates "Heikinashi".
發行說明
v8
revert 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
發行說明
v9

Added:
f_heikinashi_close(_type, _o, _h, _l, _c)
  Parameters:
    _type (string)
    _o (float)
    _h (float)
    _l (float)
    _c (float)
發行說明
v10

calcfor algo improved.
bar_typesheikin-ashi

Pine腳本庫

在真正的TradingView精神中,作者將這段Pine程式碼發佈為開源程式庫,以便我們社群的其他Pine程式設計師可以重複使用它。請向作者致敬!您可以私下使用這個函式庫,或在其他開源出版品中使用,但在出版物中再次使用這段程式碼將受到網站規則的約束。


更多:

免責聲明