MQL5 Get Charts (managed c++)

 
Hi,

I am trying to use MetaQuotes.MT5ManagerAPI64.dll (managed c++) version 5.0.0.2085 to get charts.

The only method that seems that could fit is this one.

MTChartBar[] ChartRequest(string symbol, long from, long to, out MTRetCode res);

For some reason it is returning the code MT_RET_AUTH_SERVER_OLD.
Why it is returning this code? Does it have any pre-condition to call this method?

By the way, I have noticed that this method does not have the  period filter like MQL4 had:

PERIOD_M1=1, PERIOD_M5=5, PERIOD_M15=15, PERIOD_M30=30, PERIOD_H1=60, PERIOD_H4=240, PERIOD_D1=1440, PERIOD_W1=10080, PERIOD_MN1=43200

How can I do the period filter?

Can anyone help me with this questions please?
Thank you.

Best regards,

Emanuel Ramos
Reason: