Is there an EA that does not trade but just multiplies lots? (I mean martingale without trading) and I'll use another one to trade... Please give me a hint if there is one.
Hi all, could you please tell me if it would be reliable to determine the order setting time by its order number in the list? (older ones have a lower number) or would it be better to use the order's setting time for this?
Pyro: Hi all, could you please tell me if it would be reliable to determine the deadline for an order by its order number in the list? (older ones have a lower number) or would it be better to use the time the order was set for?
I want to compare the opening price of current time with the opening price of the day.
int Cur_Hour = Hour(); // Server time in hours double Cur_Min = Minute(); // Server time in minutes double Cur_time = Cur_Hour + Cur_Min/100; // Current time
But I don't know how to pull the opening price of the day and the opening price of the current bar into the program. Please advise how to do it?
I want to compare the opening price of the current time with the opening price of the day.
int Cur_Hour = Hour(); // Server time in hours double Cur_Min = Minute(); // Server time in minutes double Cur_time = Cur_Hour + Cur_Min/100; // Current time
I do not know how to compare the opening price of the day with the opening price of the current bar. Please advise how to do it?
I would be very grateful to
current bar open price -- iOpen(Symbol(),Period(),0)
The open price of current day -- iOpen(Symbol(),PERIOD_D1,0)
is the distinction between pending and open orders fundamental?
if not, you can do it by order number (you can do a lot of things through "ass").
If yes, then no.
The difference does not matter, since the operation will be conducted only between pending orders. I.e., if there is an open position somewhere, it is not principal. It's just a question of reliability.
Help solve the problem, how to build a query so that the value is taken from the last closed instead of the last one in the history with the same values, the problem is opening a wrong order it is highlighted in red, then after it all is opened correctly
boolObjectCreate(
string name, int type, int window, datetime time1, double price1, datetime time2=0, double price2=0, datetime time3=0, double price3=0)
int window value, works only with the current chart on which the expert works, but if I want to create an object for GBPUSD, what should I set the window parameter?
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.
Good time all!
Please advise! I wrote a zigzag type indicator, it has three buffers which draw three lines. How can I get information from the desired buffer?
In principle, I understand the problem when it comes to
BuyTakeLotA
all the other queries are also checked,
and it turns out that
BuystopLotA
is the last one in the history and it matches the query,
NOW HOW TO MAKE IT CHECK THE LAST CLOSED BY TIME INSTEAD OF THE LAST ONE FROM THE HISTORY, WHICH FITS THE CONDITION.
Hi all, could you please tell me if it would be reliable to determine the deadline for an order by its order number in the list? (older ones have a lower number) or would it be better to use the time the order was set for?
is the difference between pending and open orders principal?
if not, you can do it by order number (you can do a lot of things through "ass").
If yes, then no.Good afternoon!
Dear Professionals, please help me.
I want to compare the opening price of current time with the opening price of the day.
int Cur_Hour = Hour(); // Server time in hours
double Cur_Min = Minute(); // Server time in minutes
double Cur_time = Cur_Hour + Cur_Min/100; // Current time
But I don't know how to pull the opening price of the day and the opening price of the current bar into the program. Please advise how to do it?
I would be very grateful.
Good afternoon!
Dear Professionals, please help me.
I want to compare the opening price of the current time with the opening price of the day.
int Cur_Hour = Hour(); // Server time in hours
double Cur_Min = Minute(); // Server time in minutes
double Cur_time = Cur_Hour + Cur_Min/100; // Current time
I do not know how to compare the opening price of the day with the opening price of the current bar. Please advise how to do it?
I would be very grateful to
current bar open price -- iOpen(Symbol(),Period(),0)
The open price of current day -- iOpen(Symbol(),PERIOD_D1,0)
Link to documentation https://docs.mql4.com/ru/series/iOpen
is the distinction between pending and open orders fundamental?
if not, you can do it by order number (you can do a lot of things through "ass").
If yes, then no.The difference does not matter, since the operation will be conducted only between pending orders. I.e., if there is an open position somewhere, it is not principal. It's just a question of reliability.
Help solve the problem, how to build a query so that the value is taken from the last closed instead of the last one in the history with the same values, the problem is opening a wrong order it is highlighted in red, then after it all is opened correctly
here is the advisor
Invest777 31.03.2011 15:16
Can you advise whether the :
int window value, works only with the current chart on which the expert works, but if I want to create an object for GBPUSD, what should I set the window parameter?
sergeev 31.03.2011 16:3