This is amazing. I'm placing orders with the sethinker in exactly the same way. With the same everything - lot, opening price, profit. And the first order is not defined by OrderType - it is 0, although the first one is in fact a buy limit. But the next open orders are determined by OrderType ( ) correctly, in this code, I have them 4 or 5 and they behave normally.
I also can't delete the first order using OrderDelete(OrderTicket( )) The next ones get deleted exactly the same way, without any problems
This is amazing. I'm placing orders with the sethinker in exactly the same way. With the same everything - lot, opening price, profit. And the first order is not defined by OrderType - it is 0, although the first one is in fact a buy limit. But the next open orders are determined by OrderType ( ) correctly, in this code, I have them 4 or 5 and they behave normally.
I also can't delete the first order using OrderDelete(OrderTicket( )) The subsequent ones just like that, the order is deleted correctly.
Looks like the psychics are on holiday. We should show you the whole code.
Although, considering what has been posted before, there are errors a lot
bool ObjectCreate( string name, int type, int window, datetime time1, double price1, datetime time2=0, double price2=0, datetime time3=0, double price3=0)
I did so: ObjectCreate(Up,OBJ_TREND,0,iTime( NULL, PERIOD_D1, 0),UpPrice,(iTime( NULL, PERIOD_D1, 0)+86399),UpPrice); //resign lines ObjectSet(Up,OBJPROP_COLOR,DeepPink);
I want to draw a line till end of current day, but it is infinite for some reason ?
I did so: ObjectCreate(Up,OBJ_TREND,0,iTime( NULL, PERIOD_D1, 0),UpPrice,(iTime( NULL, PERIOD_D1, 0)+86399),UpPrice); //resign lines ObjectSet(Up,OBJPROP_COLOR,DeepPink);
I want the line to be drawn until the end of the current day, but it is infinite for some reason ?
What a mess. One of the orders should be deleted right away. What you put in, you get.
Yes, it's just a check to see how it works, all that's not clear. The first thing I do is to place a pending bylimit order, 20 pips above the price. Then I immediately check it with OrderType,
and it turns out it's not zero. It's zero!!!!. How can it be zero, it's a bylimit!!! Besides, it's not deleted either, it says some kind of error. In addition, all subsequent orders are corrected as 4 or 5, are deleted normally, behave normally.
Moreover, even the orders opened above the first one behave normally, with the same lot, location, in short, all in one! All except the first.
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.
This is amazing. I'm placing orders with the sethinker in exactly the same way. With the same everything - lot, opening price, profit. And the first order is not defined by OrderType - it is 0, although the first one is in fact a buy limit. But the next open orders are determined by OrderType ( ) correctly, in this code, I have them 4 or 5 and they behave normally.
I also can't delete the first order using OrderDelete(OrderTicket( )) The next ones get deleted exactly the same way, without any problems
This is amazing. I'm placing orders with the sethinker in exactly the same way. With the same everything - lot, opening price, profit. And the first order is not defined by OrderType - it is 0, although the first one is in fact a buy limit. But the next open orders are determined by OrderType ( ) correctly, in this code, I have them 4 or 5 and they behave normally.
I also can't delete the first order using OrderDelete(OrderTicket( )) The subsequent ones just like that, the order is deleted correctly.
Looks like the psychics are on holiday. We should show you the whole code.
Although, considering what has been posted before, there are errors a lot
Yeah, yeah, here.
In the so-called showroom, orders are simply placed and immediately deleted.
It started when the avalanche advisor started to place three orders instead of two
What a mess. The EA was not able to get the order to be deleted. What you put in, you get.
https://docs.mql4.com/ru/basis/types/datetime
bool ObjectCreate( string name, int type, int window, datetime time1, double price1, datetime time2=0, double price2=0, datetime time3=0, double price3=0)
I did so:
ObjectCreate(Up,OBJ_TREND,0,iTime( NULL, PERIOD_D1, 0),UpPrice,(iTime( NULL, PERIOD_D1, 0)+86399),UpPrice); //resign lines
ObjectSet(Up,OBJPROP_COLOR,DeepPink);
I want to draw a line till end of current day, but it is infinite for some reason ?
I did so:
ObjectCreate(Up,OBJ_TREND,0,iTime( NULL, PERIOD_D1, 0),UpPrice,(iTime( NULL, PERIOD_D1, 0)+86399),UpPrice); //resign lines
ObjectSet(Up,OBJPROP_COLOR,DeepPink);
I want the line to be drawn until the end of the current day, but it is infinite for some reason ?
What a mess. One of the orders should be deleted right away. What you put in, you get.
Yes, it's just a check to see how it works, all that's not clear. The first thing I do is to place a pending bylimit order, 20 pips above the price. Then I immediately check it with OrderType,
and it turns out it's not zero. It's zero!!!!. How can it be zero, it's a bylimit!!! Besides, it's not deleted either, it says some kind of error. In addition, all subsequent orders are corrected as 4 or 5, are deleted normally, behave normally.
Moreover, even the orders opened above the first one behave normally, with the same lot, location, in short, all in one! All except the first.