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
Added sample code for multiple averaged heikinashi.
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
Performance Improvement
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
Added the source types "ohlc4 smoothed".
Removed:
calcFor_v1(_o, _h, _l, _c, _close_type, _times)
This function calculates "Heikinashi".
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
Added:
f_heikinashi_close(_type, _o, _h, _l, _c)
Parameters:
_type (string)
_o (float)
_h (float)
_l (float)
_c (float)
calcfor algo improved.
Biblioteca Pine
Siguiendo fielmente el espíritu de TradingView, el autor ha publicado este código Pine como una biblioteca de código, permitiendo que otros programadores de Pine en nuestra comunidad puedan volver a utilizarlo. ¡Un brindis por el autor! Puede utilizar esta biblioteca de forma privada o en otras publicaciones de código abierto, pero tenga en cuenta que la reutilización de este código en publicaciones se rige por las Normas internas.
Exención de responsabilidad
Biblioteca Pine
Siguiendo fielmente el espíritu de TradingView, el autor ha publicado este código Pine como una biblioteca de código, permitiendo que otros programadores de Pine en nuestra comunidad puedan volver a utilizarlo. ¡Un brindis por el autor! Puede utilizar esta biblioteca de forma privada o en otras publicaciones de código abierto, pero tenga en cuenta que la reutilización de este código en publicaciones se rige por las Normas internas.