Analysis of test results and optimisation in the MetaTrader 5 strategy tester - page 14
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
The task was to make the tester take into account, when checking the execution of orders on a given bar, high and low-ask in the testing mode Only bar opening (for example, H1).
You can play with MqlRates.spread to achieve High/Low-ask. I don't know how this field affects the generation of asks now.
The task is really to find the golden mean between accuracy and speed. It might make sense to thin the ticks a lot and use the corresponding custom symbol in the real ticks mode.
The challenge is actually to find the golden mean between accuracy and speed. Perhaps it makes sense to thin the ticks a lot and use the corresponding custom symbol in the real ticks mode.
You can try it that way.
You could try it that way.
The problem is that if we use wildcard ticks instead of just the opening prices, making the Real ticks mode, the orders will be executed not at the price of their placing (as in the Just opening prices mode), but at the prices of the first ticks after their crossing, which will be absolutely inadequate execution if there are only a few ticks per hour. On this basis:
Yes.
The problem is that if we use wildcard ticks instead of just the opening prices, making the Real ticks mode, the orders will be executed not at the price of their placing (as in the Just opening prices mode), but at the prices of the first ticks after their crossing, which will be absolutely inadequate execution if there are only a few ticks per hour. Proceeding from this:
Executing with slippage is the norm.
they rarely slip in practice at all.
The task was to make the tester take into account, when checking the execution of orders on a given bar, high and low-asks in the mode of testing Only opening bars (for example, H1).
The tester does exactly that: all 4 control points of the bar (OHLC/OLHC) are additionally analysed in the mode by opening prices.
...the call of the OnTick handler will occur only at the opening of hour bars. On the other ("hidden" from the Expert Advisor) ticks the checks necessary for correct testing take place:
The tester does exactly that: in the mode by opening prices all 4 bar control points (OHLC/OLHC) are additionally analysed.
Not everything is so simple. Imagine a sequence of real ticks inside some bar
Tick 90 Bid / 90 Ask (bar opening)
Tick 98 Bid / 102 Ask
Tick 95 Bid / 110 Ask
Tick 62 Bid / 75 Ask
Tic 71 Bid / 72 Ask
Tick 90 Bid / 90 Ask (bar closing)
Let's assume that orders were placed at the opening
Buy Stop at 108
Buy Limit at 72
Sell Stop at 65
Sell Limit at 96
Show 4 control ticks that must be selected in this bar for all these orders on this bar to be triggered, as they will be in the "Real Ticks" mode.
I have the opposite experience.