RicardoSantos

FunctionCompoundInterest

RicardoSantos Wizard Zaktualizowano   
Library "FunctionCompoundInterest"
Method for compound interest.

simple_compound(principal, rate, duration) Computes compound interest for given duration.
  Parameters:
    principal: float, the principal or starting value.
    rate: float, the rate of interest.
    duration: float, the period of growth.
  Returns: float.

variable_compound(principal, rates, duration) Computes variable compound interest for given duration.
  Parameters:
    principal: float, the principal or starting value.
    rates: float array, the rates of interest.
    duration: int, the period of growth.
  Returns: float array.

simple_compound_array(principal, rates, duration) Computes variable compound interest for given duration.
  Parameters:
    principal: float, the principal or starting value.
    rates: float array, the rates of interest.
    duration: int, the period of growth.
  Returns: float array.

variable_compound_array(principal, rates, duration) Computes variable compound interest for given duration.
  Parameters:
    principal: float, the principal or starting value.
    rates: float array, the rates of interest.
    duration: int, the period of growth.
  Returns: float array.
Informacje o Wersji:
v2

Added:
compound_interest_periods(principal, final, rate) compound interest periods
  Parameters:
    principal: float, value of investment.
    final: float, target final value.
    rate: float, interest rate.

compound_interest_principal(final, rate, period) compound interest principal
  Parameters:
    final: float, target final value.
    rate: float, interest rate.
    period: float, period of investment.
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.