Errors, bugs, questions - page 2460

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
Using the above code everything works as expected,
however if we try to extend the functionality and add support not only for simple types like (string) from class A, but also for structures,
it turns out that the template assignment operator from the base class overrides the default assignment operators of descendant classes, killing the entire functionality.
Other operators can be used as workarounds, such as "operator*=", but it's a mess.
To developers:
Please add possibility to specify forced code generation for default assignment operator (copy constructor):
Can you tell me if I use standard indicators in my EA, e.g. iMA,
how do I set their drawing styles to display them correctly in the visualization window?
Can you tell me if I use standard indicators in my EA, e.g. iMA,
how can I set drawing styles for them to be displayed correctly in the visualization window?
Like this:Custom Moving Average Input Color
Like this:Custom Moving Average Input Color
In fact, you have to write your own indicator. Rewriting the standard indicators is not the solution.
The question was exactly how to set the style for the standard indicator.
Is there any other way?
However, the operation of the StringSetLength function raises a number of questions.
With StringSetLength you can only truncate the length of a string but never increase it, which somehow doesn't make sense.
Is this intended behavior?
Result:
In recent versions of MT, as part of the paradigm shift in string handling, we see a refusal to use NULL-terminated strings.
Could you elaborate on this idea?
Knowledgeable people, can you give me a hint! I have a custom symbol created based on a real symbol. How can I make a trade be available from the chart of this symbol? Or is there no such functionality in MT5?
The answer is self-explanatory. A custom symbol is obtained by some kind of transformation from real symbols. Someone (EA, script or manually) has to do the reverse transformation and send orders for the real symbols.