mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-16 12:18:09 +00:00
Implemented function ChartPeriod (MT5)
This commit is contained in:
Binary file not shown.
@@ -753,6 +753,9 @@ int executeCommand()
|
|||||||
case 245: //ChartFirst
|
case 245: //ChartFirst
|
||||||
Execute_ChartSymbol();
|
Execute_ChartSymbol();
|
||||||
break;
|
break;
|
||||||
|
case 246: //ChartPeriod
|
||||||
|
Execute_ChartPeriod();
|
||||||
|
break;
|
||||||
case 252: //ChartGetString
|
case 252: //ChartGetString
|
||||||
Execute_ChartGetString();
|
Execute_ChartGetString();
|
||||||
break;
|
break;
|
||||||
@@ -5692,6 +5695,24 @@ void Execute_ChartSymbol()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Execute_ChartPeriod()
|
||||||
|
{
|
||||||
|
long chart_id;
|
||||||
|
GET_LONG_VALUE(0, chart_id, "chart_id");
|
||||||
|
|
||||||
|
#ifdef __DEBUG_LOG__
|
||||||
|
PrintFormat("%s: chart_id = %d", __FUNCTION__, chart_id);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
ENUM_TIMEFRAMES period = ChartPeriod(chart_id);
|
||||||
|
|
||||||
|
#ifdef __DEBUG_LOG__
|
||||||
|
PrintFormat("%s: period = %s", __FUNCTION__, EnumToString(period));
|
||||||
|
#endif
|
||||||
|
|
||||||
|
SEND_INT_RESPONSE((int)period)
|
||||||
|
}
|
||||||
|
|
||||||
void Execute_ChartApplyTemplate()
|
void Execute_ChartApplyTemplate()
|
||||||
{
|
{
|
||||||
long ChartId;
|
long ChartId;
|
||||||
|
|||||||
Reference in New Issue
Block a user