AVOHR: How do I write it correctly in an EA to determine an entry point based on two timeframes? More precisely: describe the parameters of a candle of a larger timeframe and a smaller one
I apologise in advance for the amateurish question, but if anyone has no difficulty, please write the code for opening an order at a specific time to within a second. I understand that the algorithm itself is simple, but I can't figure out the time handling.
for (int i=1; i<=OrdersTotal(); i++) //Цикл по всем ордерам,..
{ //отражённым в терминалеif(OrderSelect(i-1,SELECT_BY_POS)==true)//Если есть следующий
{
// Здесь должен выполняться ..// ..анализ характеристик ордеров
}
} //Конец тела цикла
And filter by symbol if necessary, fully working example
I apologise in advance for the amateurish question, but if anyone has no difficulty, please write the code for opening an order at a specific time to within a second. I understand that the algorithm itself is simple, but I can't figure out the time handling.
I apologise in advance for the amateurish question, but if anyone has no difficulty, please write the code for opening an order at a specific time to within a second. I understand that the algorithm itself is simple, but I can't figure out the time handling.
Loop start. TimeCurrent() to compare with the desired time.
int start()
{
while (true)
if (TimeCurrent()='19.07.2011 12:30:27') OrderSend();
}
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.
How do I write it correctly in an EA to determine an entry point based on two timeframes? More precisely: describe the parameters of a candle of a larger timeframe and a smaller one
Indicate clearly the timeframe.
For example:
Specify explicitly the TF.
For example:
It goes something like this:
What to write instead of "ticket" in the "OrderDelet" function? If "ticket", it only deletes the last order that was opened.
I need to close one of the 2 pending orders. I can't figure out how to do it. Please write the full path, including the OrderDelete function.
I would appreciate your help!!!!!!
Good afternoon everyone!
I apologise in advance for the amateurish question, but if anyone has no difficulty, please write the code for opening an order at a specific time to within a second. I understand that the algorithm itself is simple, but I can't figure out the time handling.
I need to close one of the 2 pending orders. I can't figure out how to do it. Please write the full path including the OrderDelete function.
I would be grateful for help!!!!!!
And how to determine which of the two?
https://book.mql4.com/ru/trading/orderclose
And filter by symbol if necessary, fully working example
https://book.mql4.com/ru/trading/ordermodify
Good afternoon everyone!
I apologise in advance for the amateurish question, but if anyone has no difficulty, please write the code for opening an order at a specific time to within a second. I understand that the algorithm itself is simple, but I can't figure out the time handling.
To help, this, this and this.
Good afternoon everyone!
I apologise in advance for the amateurish question, but if anyone has no difficulty, please write the code for opening an order at a specific time to within a second. I understand that the algorithm itself is simple, but I can't figure out the time handling.
Loop start. TimeCurrent() to compare with the desired time.
To help, this, this and this.
Thank you.
Loop start. TimeCurrent() to compare with the desired time.
thanks