Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 16:21:29 +0000



Post From: How to get Broker's time?

[2025-02-25 11:40:47]
LTSys - Posts: 68
For example with MetaTrader, they have a TimeTradeServer function which returns the Broker's time, and they also have a TimeGMT function which returns GMT (UTC) time. Order times are usually displayed in the Broker's time. So on startup, without any open order, I can calculate the Broker's offset from GMT using those two functions.

Getting the GMT time using a sc function is available but not sure how to get the Broker's time on startup? I can't inspect an order entry time because there may not be any orders open when the study starts.
Date Time Of Last Edit: 2025-02-25 11:45:48