// Downloaded From https://www.WiseStockTrader.com
//------------------------------------------------------------------------------
//  Author         : KH Tang 
//  Company        : Wealth Resonance Pte Ltd
//
//  This indicator illustrates how the inflation would hurt individual
//  capital. Like a frog in the pot cook with slow fire, unless
//  people can visualize it, they would not take it seriously.
//  More Detail Description in blog:-
//  http://blessedfool.blogspot.com/2012/01/personal-finance-8-where-have-all-money.html
//------------------------------------------------------------------------------

Timeline=Cum(1);

if (Interval()==inDaily)
{
TKH_03 = 1*(1 - 0.03/253)^TimeLine;
TKH_05 = 1*(1 - 0.05/253)^Timeline ;
TKH_10 = 1*(1 - 0.10/253)^Timeline ;
}
if (Interval()==inWeekly)
{
TKH_03 = 1*(1 - 0.03/52)^TimeLine;
TKH_05 = 1*(1 - 0.05/52)^Timeline ;
TKH_10 = 1*(1 - 0.10/52)^Timeline ;
}
if (Interval()==inMonthly)
{
TKH_03 = 1*(1 - 0.03/12)^TimeLine;
TKH_05 = 1*(1 - 0.05/12)^Timeline ;
TKH_10 = 1*(1 - 0.10/12)^Timeline ;
}

Plot(C,"",colorBlack,styleThick|styleDots);
PlotText("0%/year",BarCount+1,LastValue(C),colorBlack);

Plot(C*TKH_03,"",colorBlue,styleThick|styleDots);
PlotText("-3%/year",BarCount+1,LastValue(C*TKH_03),colorBlue);

Plot(C*TKH_05,"",colorGreen,styleThick|styleDots);
PlotText("-5%/year",BarCount+1,LastValue(C*TKH_05),colorGreen);

Plot(C*TKH_10,"",colorRed,styleThick|styleDots);
PlotText("-10%/year",BarCount+1,LastValue(C*TKH_10),colorRed);