RicardoSantos

FunctionCompoundInterest

RicardoSantos Wizard Uppdaterad   
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.
Versionsinformation:
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.
Pinebibliotek

I sann TradingView-anda har författaren publicerat denna Pine-kod som ett bibliotek med öppen källkod så att andra Pine-programmerare från vår community kan återanvända den. Hatten av för författaren! Du kan använda det här biblioteket privat eller i andra publikationer med öppen källkod, men återanvändning av den här koden i en publikation regleras av våra ordningsregler.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här biblioteket?

Kopiera följande rad och klistra in det i ditt skript.