boitoki

ma_function

boitoki Zaktualizowano   
Library "ma_function"
TODO: This library is a package of various MAs.

ma_function(name, source, length) This function provides the MA specified in the argument.
  Parameters:
    name: MA's name
    source: Source value
    length: Look back periods
  Returns: Ma value
Informacje o Wersji:
v2. Added some MAs.
Informacje o Wersji:
v3

Fixed a typo.
Added calc() : a syntax sugar of ma_function
Informacje o Wersji:
v4

Updated:
ma_function(name, source, length)
  This function provides the MA specified in the argument.
  Parameters:
    name: MA's name
    source: Source value
    length: Look back periods
  Returns: MA value

calc()
Informacje o Wersji:
v5

Added:
sma(x, y)
  Parameters:
    x (float)
    y (int)

ema(src, length)
  Parameters:
    src (float)
    length (int)

kama(xPrice, Length)
  Parameters:
    xPrice (float)
    Length (int)

zlema(src, length)
  Parameters:
    src (float)
    length (int)

mav(source, length)
  Parameters:
    source (float)
    length (int)

dema(src, len)
  Parameters:
    src (float)
    len (int)

tema(src, len)
  Parameters:
    src (float)
    len (int)

hma(src, len)
  Parameters:
    src (float)
    len (int)

tma(source, length)
  Parameters:
    source (float)
    length (int)

ama(source, length, fast, slow)
  Parameters:
    source (float)
    length (int)
    fast (int)
    slow (int)

rma(src, length)
  Parameters:
    src (float)
    length (int)

bwma(src, length, beta, alpha)
  Parameters:
    src (float)
    length (int)
    beta (int)
    alpha (int)

Biblioteka Pine

Działając zgodnie z prawdziwym duchem TradingView, autor opublikował ten kod Pine jako bibliotekę o otwartym kodzie źródłowym, aby inni programiści Pine z naszej społeczności mogli go ponownie wykorzystać. Brawa dla niego! Możesz korzystać z tej biblioteki prywatnie lub w innych publikacjach typu open source, ale ponowne wykorzystanie tego kodu w publikacji podlega Regulaminowi.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz skorzystać z tej biblioteki?

Skopiuj poniższy wiersz i wklej go w swoim skrypcie.