There is a simple script (MT4) that outputs the closing time of an order before and after it is closed.
Result at customer(711 build):
I have the result (711-719 build):
UPD: this only happens when I give the compiled product. If I pass the source, no such problems, everything works like clockwork.
Thanks for the message, fixed, please wait for new build (planned for tomorrow). Use the following construction for OrderCloseTime,OrderOpenTime and OrderExpiration functions to work in the current build:
int time=(int)OrderCloseTime();
TimeToString(time);
mql5: Thanks for the message, fixed, please wait for the new build (planned for tomorrow). Use the following construction for OrderCloseTime,OrderOpenTime and OrderExpiration functions to work in the current build:
if(ObjectFind("UP_Line")==0)
{
Print(3);
//Pos_Buy=ObjectGetValueByShift("UP_Line",0);
}
вот это возвращает -1 при наличии объекта на графике
Print(ObjectFind("UP_Line"));
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
There is a simple script (MT4) that outputs the closing time of an order before and after it is closed.
Result at customer(711 build):I have the result (711-719 build):
UPD: this only happens when I give the compiled product. If I pass the source, no such problems, everything works like clockwork.Use the following construction for OrderCloseTime,OrderOpenTime and OrderExpiration functions to work in the current build:
Thanks for the message, fixed, please wait for the new build (planned for tomorrow).
Use the following construction for OrderCloseTime,OrderOpenTime and OrderExpiration functions to work in the current build:
it doesn't work like this, there are objects on the graph:
Yeah, that shit doesn't pass true:
OH HORROR, and so returns -1:
HOW TO LIVE?
the objects on the tester's graph are there.
someone check the code on the 719 build.
Does it work?
someone check the code on the 719 build.
Does it work?
I'll have a look now...
P.S. Checked in 719 build with script. It works.
here's the deal:
1. I open a new chart
2. create an object
3. Copy the object name (already created by the Expert Advisor) from another chart
4. change the object name by copying it to the new chart
5. launch the script
6. obtain the result: