Libraries: Calendar - page 14

 
mbjen #:

Hello. Is there any possibility to move the calendar to a certain time?

Forum on trading, automated trading systems and testing trading strategies.

Libraries: Calendar

fxsaber, 2023.04.13 11:46 am.

This is solved with one line.

Calendar += 3600.


I don't remember all the functionality. ALT+M helps.

 
fxsaber # :


I don't remember all the functionality. ALT+M helps.

I have a nice suggestion:
On Save():
Subtract Calendar -= Server_GMT_Offset;
This will store calendar times in UTC time.

On Load():
Add Calendar += Server_GMT_Offset;
This allows using re-use saved file from one terminal in another terminal with a different broker's gmt_offset (EA testing on different terminals).

I suggest to add this functionality to the Save() and Load() methods of the class. Also, adding a user option (class property) to allow correcting calendar times on save/load would be also useful.


 
amrali #:
I suggest to add this functionality to the Save() and Load() methods of the class. Also, adding a user option (class property) to allow correcting calendar times on save/load would be also useful.

This is reasonable. Unfortunately, I am not ready to do it yet.