
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Tell me, is there a function that can send a position for further work (modification) using , ulong deal; // Ticket deal, if it is made by the ticket of the deal, remembered earlier? Probably, this choice will require some complex algorithm, like the left hand brushing the right ear?
Good evening everyone! I see people are interested in this branch. About the championship...
Still not checked my data sent from the closed information for the championship, although the expert - checked!
When will they be checked?
Good evening everyone! I see people are interested in this branch. About the championship...
Still not checked my data sent from the closed information for the championship, although the expert - checked!
When will they be checked?
Good evening everyone! I see people are interested in this branch. About the championship...
Still not checked my data sent from the closed information for the championship, although the expert - checked!
When will they be checked?
I have a question.
There is a piece of code from the article that defines the start of a new bar.
Everything works fine. But I want to include calculation of different heavy statistics into the last if. I want to have minimum calculations at the moment of a new bar.
Here is my question. How this code will behave if the statistics are calculated for a relatively long time (say, 2 seconds) and the gap between the ticks of the old and the new bar is minimal.
As far as I understand, whileOnTick() function is calculating ticks will be skipped but will the next tick be new for the EA, although it is not the first in the bar.
The manual check has not worked out yet
If the OnTick() function is executed for 2 seconds, then all quotes that come during this time interval will be ignored by the EA. Is this the point you wanted to clarify?
Here, these 2 seconds are ignored (and the ticks during this time), but on the third tick, for example, another tick will come and the code will perceive it as new in the bar?
This is indirectly confirmed by the fact that when I run the EA, the next tick is always the first.
If the statistics is calculated for 90 seconds, the condition for a new tick on M1 will be executed at least once?
Each trade has a position identifier. Use this identifier to search for the position itself.
Well, I've already finished it above. Let me repeat: the "new" quote for the Expert Advisor is a quote that arrives right after the next execution of the OnTick() function, even if this quote is not the "first tick on the bar". The condition of a new bar coming is checked only after the Expert Advisor finishes the processing of that "previous" bar.
will be checked only after the Expert Advisor finishes the processing of the quote that came on the "previous" bar. ...If the OnTick() function is executed for 90 seconds and is started at 00.00.00, the "condition for a new tick on M1 will be executed at some point", namely after 00.01.30.