Just for the record, when you import via data sources, there is also a delimiter button
I saw it, changed it, but until I changed it in the regional settings, there was no response, that's why I asked for help. I didn't even think that the regional settings could have an effect on it.
the return operator will stop the execution of what function, void ?
The reference is a little unclear.
void, int, double, etc. - is not a function, but the type of value returned by the function. First learn how functions are defined from the same help, and then go on. Otherwise, the help will be incomprehensible a lot.
This variant is not intended for real life, but only for the tester.
----------
In total, you need Time[], OrderSelect(), OrderType(), OrderCloseTime().
Thank you very much for your hint, I will definitely try this variant.
But the phrase "this is not for real trading, only for tester" strangled me. I don't understand it. The program that is working in the tester should logically place orders for real trading too. How should the program for a real account differ from a tester?
{ everything is ok, wait for the pending order to be executed, if it is executed then everything is ok}
else
{wait for the next bar to CLOSE and if the order does not open, forcefully close it with OrderDelite();}
help with code
"wait for pending order to execute"
"wait for the next bar to CLOSE and if the order has not opened, close it forcibly with OrderDelite();"
Note - in your code, "If(Ticket>0)" means "the OrderSend command worked without errors" and "else" is "an error occurred while executing OrderSend and the order was not placed". Is this the logic you mean?
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.
Just for the record, when you import via data sources, there is also a delimiter button
I saw it, changed it, but until I changed it in the regional settings, there was no response, that's why I asked for help. I didn't even think that the regional settings could have an effect on it.
Does anyone know how to put a terminal on a MacBook?
Can you tell me, please, here.
the return operator will stop the execution of what function, void ?
The reference is a little unclear.
I realise there's something missing here, but I don't understand what...
Where should I put N?
Goal: Decompose, for example, N=258 into y=200, i=50, j=8. Or N=49 decompose into y=0, i=40, j=9.
It can be simpler if you use the remainder of the division.
It may be simpler if we use the remainder of the division.
It might be easier. But how?
It's not the method I need, but the result, i.e. I need to assign hundreds, tens and ones to Param1, Param2, Param3 respectively.
It might be easier. But how?
It's not the method I need, but the result, i.e. assign Param1, Param2, Param3 parameters to hundreds, tens, ones, respectively.
Approximately like this
In the array we get the number of units, tens, hundreds and so on
It looks like this
In the array we get numbers, ones, tens, hundreds and so on
It looks nice, but it's not so easy for me to read the code. I will try to get to the bottom of what is written.
Thank you.
sergeev:
This variant is not intended for real life, but only for the tester.
----------
In total, you need Time[], OrderSelect(), OrderType(), OrderCloseTime().
Thank you very much for your hint, I will definitely try this variant.
But the phrase "this is not for real trading, only for tester" strangled me. I don't understand it. The program that is working in the tester should logically place orders for real trading too. How should the program for a real account differ from a tester?
Answer please, thanks in advance.
Question???
I opened a pending order -
Ticket = OrderSend(...,OP_SELLSTOP,...,TP,SL);
If(Ticket>0)
{ everything is ok, wait for the pending order to be executed, if it is executed then everything is ok}
else
{wait for the next bar to CLOSE and if the order does not open, forcefully close it with OrderDelite();}
help with code
"wait for pending order to execute"
"wait for the next bar to CLOSE and if the order has not opened, close it forcibly with OrderDelite();"