Double Print on Money Management Signal

Questions about MultiCharts and user contributed studies.
Ming80
Posts: 24
Joined: 18 Jun 2012
Has thanked: 20 times
Been thanked: 1 time

Double Print on Money Management Signal

Postby Ming80 » 10 Jan 2020

Hi guys,

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;

User avatar
Anna MultiCharts
Posts: 560
Joined: 14 Jul 2017
Has thanked: 42 times
Been thanked: 140 times

Re: Double Print on Money Management Signal

Postby Anna MultiCharts » 24 Jan 2020

Hello, Ming80!

This can happen because of the different session settings used for your symbols in Portfolio. If there is at least one symbol which sessions that don't match the sessions of other symbols, the bars’ timestamps across the data series do not coincide and this leads to the money management signal being recalculated several times => you have duplicated prints.
Try setting identical session templates for your symbols and see if it helps.


Return to “MultiCharts”