// Custom Equity Chart
Compounding = True;
SetChartOptions(1, chartShowDates|chartLogarithmic);
WhiteBackground = GetChartBkColor() == 16777272;
HighlightColor = IIf(WhiteBackground, colorBlack, colorWhite);
FinalEquity = C;
PlotColor = ColorBlend(colorPaleGreen, HighlightColor);
SetGradientFill(colorLightOrange, colorPaleGreen);
IndexBuyandHold = StaticVarGet(“~HCBTIndexBuyandHold”);
IndexTicker = StaticVarGet(“IndexTicker”);
Title = “Equity = $” + NumToStr(FinalEquity, 1.0);
Plot(FinalEquity, “Portfolio Equity”, PlotColor, styleGradient | styleLine, Null, Null, 0, -1);
if (LastValue(IndexBuyandHold) != 0)
{
Plot(IndexBuyandHold, “Index”, HighlightColor, styleThick);
Title +- ” Benchmark ” + IndexTicker + ” – $” + NumToStr(IndexBuyandHold, 1.0);
}