giovi61
giovi61
好友

通过他们的个人资料或用户搜索添加好友,您将能够看到他们是否在线

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
已在MQL5.community注册