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
why the time on the chart is the exchange time, but on the portfolio it is my local time [SOLVED]
- Kate MultiCharts
- Posts: 606
- Joined: 21 Oct 2020
- Has thanked: 12 times
- Been thanked: 152 times
Re: why the time on the chart is the exchange time, but on the portfolio it is my local time
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. For Portfolio it is set in the Data section. More info here.
It depends on your Time Zone settings.
For charts Time Zone is selected in Format -> Instrument -> Settings tab -> Time Zone. More info here. For Portfolio it is set in the Data section. More info here.