giovi61
giovi61
Freunde

Fügen Sie Freunde über ihre Profile oder über die Suche hinzu, und Sie können mit ihnen kommunizieren und ihre Aktivität auf der Webseite verfolgen.

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
Hat sich auf MQL5.community registriert