giovi61
giovi61
Amigos

Adicione amigos através do seu perfil ou da pesquisa de usuário e você poderá ver se eles estão online

giovi61
giovi61
Goodmorning everyone!
I have a problem which I can not solve, and I have not found solutions around. I created a OBJ_REGRESSION object, which is existing and plotted on the graph, but if I try to read the values through ObjectGetValueByTime always get the value 0.

The very simplified code is this:

ObjectCreate ("reg", OBJ_REGRESSION, 0, Time [500], 0, Time [0], 0);
ObjectGetValueByTime (0, "reg", Time [0], 0) // always returns 0
ObjectGetValueByTime (0, "reg", Time [0], 1) // always returns 0
ObjectGetValueByTime (0, "reg", Time [0], 2) // always returns 0

Someone can give me an explanation and perhaps a remedy? thank you
giovi61
Registrado no site MQL5.community