PyMtApi5: implemented function ChartOpen

This commit is contained in:
Vyacheslav Demidyuk
2025-02-19 16:14:41 +02:00
parent a3ded61946
commit 6a9739ff1e
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -495,6 +495,12 @@ class Mt5ApiClient:
return (res["Result"]["SubWindow"], res["Result"]["Time"], res["Result"]["Price"])
return None
# ChartOpen
def chart_open(self, symbol: str, period: ENUM_TIMEFRAMES):
cmd_params = {"Symbol": symbol, "Timeframe": period};
res = self.__send_command(self.__get_default_expert(), Mt5CommandType.ChartOpen, cmd_params)
return res
# Private methods
def __event_thread_func(self):