mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-05 23:17:52 +00:00
PyMtApi5: implemented function ChartGetDouble
This commit is contained in:
@@ -357,6 +357,8 @@ class Mt5ApiClient:
|
||||
"Count": count,
|
||||
}
|
||||
res = self.__send_command(self.__get_default_expert(), Mt5CommandType.CopyTicks, cmd_params)
|
||||
if res is None:
|
||||
return None
|
||||
ticks = [MqlTick(obj) for obj in res]
|
||||
return ticks
|
||||
|
||||
@@ -539,6 +541,11 @@ class Mt5ApiClient:
|
||||
cmd_params = {"ChartId": chart_id, "PropId": prop_id, "Value": value}
|
||||
return self.__send_command(self.__get_default_expert(), Mt5CommandType.ChartSetString, cmd_params)
|
||||
|
||||
# ChartGetDouble
|
||||
def chart_get_double(self, chart_id, prop_id: ENUM_CHART_PROPERTY_DOUBLE, sub_window=0):
|
||||
cmd_params = {"ChartId": chart_id, "PropId": prop_id, "SubWindow": sub_window}
|
||||
return self.__send_command(self.__get_default_expert(), Mt5CommandType.ChartGetDouble, cmd_params)
|
||||
|
||||
# Private methods
|
||||
|
||||
def __event_thread_func(self):
|
||||
|
||||
Reference in New Issue
Block a user