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
Can you tell me why an error occurs when getting an indicator handle, if the name of the indicator to be called is contained in a variable?
I mean, there is no error like this:
This is how we get error 4802 (Indicator cannot be created):
Read aboutthe tester_indicator here.
I've read and reread the whole thing over and over again. )) But I can't get what I need. And I need to set indicator's name to a variable.
So, did you add property test_indicator? I don't think I could have done it without it.
I tried it. Something does not work like this. Could you show me an example (maybe I'm doing it wrong)?
P.S. It worked. It couldn't be easier. Off to rest. ))
P.S2. But I get the dependence on the fact that I have to register all indicators through the property test_indicator. That is, if the indicator name is specified by external parameter and a user has a new indicator, we have to open the code again. This is not exactly what we want.
P.S2. But we still get the dependency of having to write all indicators via property test_indicator. That is, if the indicator name is specified by external parameter and a user has a new indicator, we have to open the code again. This is not exactly what we want.
This is how it is done in five. I used it myself to build indices from several other randomly selected indices. Maybe the developers will tell us what they think about it.
The thing is that EAs in the MT5 tester are launched outside the terminal and do not have all the library environment that was in MT4.
For example, the Expert Advisor is sent to the cloud at all and in order to pass additional links, we have to:
If dynamic indicator calls are used then you need to manually prescribe the list of indicators used. When running a third-party test, all dependent files are sent together with the Expert Advisor. These can be both local (they are outside the terminal anyway), and remote or cloud agents.
This is the price to pay for "press start and don't think about anything else, everything works automatically".
The whole point is that EAs in the MT5 tester run outside the terminal and do not have all the library environment that MT4 had.
This is the price to pay for "press start and don't think about anything else, everything works automatically".
This question may have already been raised, but I couldn't find it in the forum.
In the following code (in the test() method), when taking a constant descriptor (reference) to an object and assigning it to a non-constant one, the compiler (MetaEditor 5.00, Build 687) does not generate an error:
This question may have already been raised, but I haven't found it in the forum.
In the following code (in the test() method), when getting a constant descriptor (reference) to an object and assigning it to a non-constant one, the compiler (MetaEditor 5.00, Build 687) does not generate an error:
this would be the case without the error.
question for developers on the speed of object pointers
Why does the first code
works twice as fast as the second?
2012.08.21 09:56:40 info (EURUSD,D1) 2=1654
2012.08.21 09:56:38 info (EURUSD,D1) 1=795
can you optimize it to increase the speed?