
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
Hello, could you give me a hint?
The difference is that in the original version the object is described as:
i.e. the object is dynamic. And in yours:
In this case, the method should look like this:
I've forgotten something. Who can tell me how to use #import correctly for the library which is located in the subdirectory of the main folder?
https://www.mql5.com/ru/forum/23/page15
MetaTester: Changed operation of the testing method "by open prices". As before, the Expert Advisor's OnTick is triggered only at bar opening, but instead of M1 OHLC ticks, it plays states high, low and close of the bar being tested. Because of this, stops and pending orders may trigger at a price different from the specified one. This has allowed us to achieve a multiple acceleration of testing.
For quality, would the 'all ticks' mode not suit you?
In certain cases, no. I really don't like the mode in which trades may not be executed at the stated price (and this phenomenon will be considered the norm).
Therefore, I will personally support Konstantin's request.
What do you mean by "not at the advertised price"? Clarify.
Read the text more carefully.
Since I am addicted to working with pending orders, this point is very important to me, and I do not want the pending orders to trigger"not at the stated price".
With this approach, this type of testing is of absolutely no interest to me.
That is why I suppose the variant providing for two types of testing "by opening prices" (on minute bars and on the bar being tested) will be quite a reasonable solution.
Yeah, I don't like that point either. On the next bar you can just check if the pending order is in the high - low range of the previous bar. If it did, then it worked at the set prices.
There's an example of MovingAverages that works the same way (on the current 607 build) in both M1 OHLC mode and Open Prices mode. Why? Because it works strictly at the beginning of a bar - there is a special check.
Set the same condition in your EA and use M1 OHLC. And you will be lucky.
There's an example of MovingAverages that works the same way (on the current 607 build) in both M1 OHLC mode and Open Prices mode. Why? Because it works strictly at the beginning of a bar - there is a special check.
If you set the same condition in your EA and use M1 OHLC. And you will be happy.
1. Well, yes, he may be trading as it should be. But it is built into his strategy. I don't have it as part of my strategy, I use pending orders.
And it is not clear with respect to stops - since when should (may) they work at prices that are not displayed?
So I won't be happy, at least not unless I switch to "All ticks".
And if I check for a new bar and trade only on its opening, it will be a different strategy.
Do I need that?
Well, yes, he might be trading properly. But he has it in his strategy. And I don't have it in my strategy, I trade on pending orders.
And I do not understand stops - since when should (may) they work at prices which are not set?
So I won't be happy, at least not unless I switch to "All ticks".
And if I check for a new bar and trade only on its opening, then it will be a completely different strategy.
Do I need it?