Questions from Beginners MQL5 MT5 MetaTrader 5 - page 511

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
I can set the mode, but the Expert Advisor needs to know in which mode (at prices) it is running when testing.
I can think of only 1 option,
if it was only 1 tick within a bar, then - by prices,
if it was 4 ticks at 0, 20,40,59 seconds - ohlc
otherwise - all ticks.
But I'm afraid there may be variants that will coincide with someone else's condition to determine the type
Maybe there is a simpler variant?
Creating a grail?
There is a specific technical question that needs to be solved as reliably as possible.
I can set the mode, but the Expert Advisor needs to know in which mode (at prices) it is running when testing.
I can think of only 1 option,
if there was only 1 tick during a bar, then it would be opened at prices,
if there were 4 ticks at 0, 20,40,59 seconds - ohlc
otherwise - all ticks.
But I'm afraid there may be variants that will coincide with someone else's condition to determine the type
Maybe there is an easier option?
Let's not get bogged down in speculation about grails. A lot has already been said about them.
There is a specific technical issue that needs to be resolved as reliably as possible.
On the M5 and above, you can still tell somehow. And not all of them. Sometimes there are no ticks for half an hour. It will not be possible to do it on the minutes.
On the minutes, you need to accumulate statistics. In the tester time flies fast, let the first few hours determine the mode.
Bars and ticks are simulated in the tester, if there are no ticks for a few minutes, bars will not be generated in the tester. And if a bar is generated, it will be according to the algorithm.
I wonder, for a bar with 1 tick, in ohlc mode the algorithm will create 4 ticks Open, High, Low, Close all with the same price? And for "all ticks" - how many ticks will be generated?
Bars and ticks are modelled in the tester, if there are no ticks for a few minutes, no bars will be generated in the tester. And if a bar is generated, it will be by the algorithm.
I wonder, for a bar with 1 tick, in ohlc mode the algorithm will create 4 ticks Open, High, Low, Close all with the same price? And for all ticks - how many ticks will be generated?
Bars and ticks are modelled in the tester, if there are no ticks for a few minutes, no bars will be generated in the tester. And if a bar is generated, it will be by the algorithm.
I wonder, for a bar with 1 tick, in ohlc mode the algorithm will create 4 ticks Open, High, Low, Close all with the same price? And for "all ticks" - how many ticks will be generated?
No one wants to write an EA for me. They don't want to help newcomers.
They do not want to help newcomers, so they do not want to bother with MQL.
On the forum, people seldom bother with it. If you do not know how to use it, you will get busy.
https://www.mql5.com/ru/job