If the periodicity is not specified, then it is not a problem - at the end of a bar at a multiple of the periodicity we reset the variable to zero. One more problematic moment is initialization and closing of Expert Advisor/Terminal, here we should also think how to save data: in a file or in global variables, though I suspect it will be easier for the topicstarter to refer to the section https://www.mql5.com/ru/job
IgorM: If the periodicity is not specified, then it is not a problem - at the end of a bar at a multiple of the periodicity we reset the variable to zero. One more problematic moment is initialization and closing of Expert Advisor/Terminal, here we should also think how to save data: in a file or in global variables, though I suspect it will be easier for the topicstarter to refer to the section https://www.mql5.com/ru/job
Where did I say about counting orders? Please read it carefully!!!
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.
No, it does not need to count orders in the terminal field all orders are closed.
You need to count orders from the history for a certain period of time, don't you?
you need to count orders from the history over a certain period of time, don't you?
Why do you need to count orders? When the STOP line is reached by the BID or ASK lines, all orders will close by themselves.
What's not to understand? Entry conditions are defined by time interval.....
Why count orders? When the STOP line is reached by the BID or ASK lines, all orders are closed by themselves.
Yeah.
Tell me, did you make an Expert Advisor yourself?
You've gotten away with it. Again: Should there be no more than the required number - or no less than the required number?
I didn't get away with it, and I think I've made it clear which function (option) I want. Please read the above.
I didn't get away with it and I think I explained clearly which function (option) I want. Please read the above.
How can I help you?
Only "teach" the councillor.
okay. you can teach.
what do you need to teach?
If the periodicity is not specified, then it is not a problem - at the end of a bar at a multiple of the periodicity we reset the variable to zero. One more problematic moment is initialization and closing of Expert Advisor/Terminal, here we should also think how to save data: in a file or in global variables, though I suspect it will be easier for the topicstarter to refer to the section https://www.mql5.com/ru/job
Where did I say about counting orders? Please read it carefully!!!