I'm trying to get a percentage change in the monthly equity of a portfolio. I've placed the below signal code in the money management signal but it however erroneously double prints each time. Is there a workaround for this? Thanks in advance:
Code: Select all
var : vPortfolioEquity(0);
If Month(Date) <> Month(Date)[1]
then begin
vPortfolioEquity = Portfolio_Equity;
Print
(
Portfolio_Equity," ",
vPortfolioEquity[1]," ",
" "
);
End;