RicardoSantos

FunctionCompoundInterest

RicardoSantos Wizard Aktualisiert   
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.
Versionshinweise:
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.
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.