boitoki

Heikinashi

boitoki Aktualisiert   
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
Versionshinweise:
v2
Added sample code for multiple averaged heikinashi.
Versionshinweise:
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: 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: Sets the calculation method to be used for the closing price.
  Returns: TODO: add what function returns
Versionshinweise:
v4
Performance Improvement
Versionshinweise:
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: 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
Versionshinweise:
v6
Added the source types "ohlc4 smoothed".
Versionshinweise:
v7

Removed:
calcFor_v1(_o, _h, _l, _c, _close_type, _times)
  This function calculates "Heikinashi".
Versionshinweise:
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): 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
Versionshinweise:
v9

Added:
f_heikinashi_close(_type, _o, _h, _l, _c)
  Parameters:
    _type (string)
    _o (float)
    _h (float)
    _l (float)
    _c (float)
Versionshinweise:
v10

calcfor algo improved.

Pine Bibliothek

In echter TradingView-Manier hat der Autor diesen Pine-Code als Open-Source-Bibliothek veröffentlicht, so dass andere Pine-Programmierer aus unserer Community ihn weiterverwenden können. Ein Hoch auf den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Publikationen verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie diese Bibliothek nutzen?

Kopieren Sie die folgende Zeile und fügen Sie sie in Ihr Skript ein.