giovi61
giovi61
Friends

Add friends via their profile or user search and you will be able to see if they are online

giovi61
Added topic Casting between structures is no longer admitted?
Hello to everyone, I have encountered problems with the code written before the build versione 1599 of Mediaeditor. The code for casting between structures is no longer accepted. What I'm saying is verifed. I still have a version of Metaeditor build
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
Registered at MQL5.community
giovi61
Added topic Problem closing positions
Hi, I am creating an EA but I have a problem . I created two functions to close all opened positions Buy and Sell , but I do not understand why sometimes not all positions are closed by running this code