why the time on the chart is the exchange time, but on the portfolio it is my local time  [SOLVED]

Questions about MultiCharts and user contributed studies.
samwjwj
Posts: 14
Joined: 16 May 2010
Has thanked: 2 times

why the time on the chart is the exchange time, but on the portfolio it is my local time

Postby samwjwj » 17 May 2022

why is the time of the same symbol different on a chart or in a portfolio?

symbol: CLM2
1、on the chart:
code: if LastBarOnChart then print("p",symbol,date,time);
the results:
p CLM2 1220517.00 2208.00

It works with the exchange time zone.

2、in the portfolio:
code: if LastBarOnChart then print("M",symbol,date,time);
the results:
M CLM2 1220517.00 1008.00
It works with the local time zone.

Is this a problem and how to fix it? thanks

User avatar
Kate MultiCharts
Posts: 575
Joined: 21 Oct 2020
Has thanked: 7 times
Been thanked: 144 times

Re: why the time on the chart is the exchange time, but on the portfolio it is my local time

Postby Kate MultiCharts » 18 May 2022

Hello samwjwj,

It depends on your Time Zone settings.
For charts Time Zone is selected in Format -> Instrument -> Settings tab -> Time Zone. More info here.
Charts.png
(20.45 KiB) Not downloaded yet
For Portfolio it is set in the Data section. More info here.
Portfolio.png
(38.15 KiB) Not downloaded yet



Return to “MultiCharts”