Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 895

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
Not really, although it will come in handy for the test. I want the indicator to be attached to the online chart after the EA is attached to it. Is it possible?
I haven't tried it. Theoretically, it's unlikely to work. Maybe that's the reason why I haven't tried it yet. It will look like this: each time the EA is loaded, the template will be applied, on which the EA is launched again. And everything repeats, the template is applied, a new copy of the EA is launched and so on.
It might be better, if you want it so badly that your teeth ache, to make a script that applies the template with the EA and indicators.
Hi,
How can I create bars using 30 ticks of each PERIOD_M1?
I want to create a new character for my analysis.
Hello! Please help me solve a problem, I can't do it. In the code of the Expert Advisor, which works on the active chart of the symbol 1, I need to prescribe the drawing of horizontal lines in another, NOT active chart of the symbol 2. It means that the chart of symbol 2 is open on the screen. For example, for the second SUI30 symbol, I did this: but the meta-editor gives a message implicit conversion from 'string' to 'number'. What am I doing wrong, and how do I solve it? Thank you.
We need to use another function overload
And this chart identifier should be found by trying to enumerate charts from ChartFirst();
Example from documentation
We need to use a different function overload
Thanks, I'm trying to figure it out.
We need to use another function overload
And this chart identifier should be found by trying to enumerate charts from ChartFirst();
An example from the documentation
Unfortunately, my attempts to make it out did not lead to anything. I simply added errors related toChartNext() to the existing messages. I don't understand the point.
Unfortunately for me, trying to figure it out didn't lead to anything. Just added errors related to ChartNext() application to the existing messages. I don't understand the point.
Well, you can use a constant chart ID to make it easier. Write a script
Run it on the chart on which you want to draw these lines. Then write this value into the function as the chart ID.
And on the good side, the example from the documentation, it is not a ready-made function, like take it and use it. It is necessary to check the symbol and period in the loop. If the right one is found, then exit the loop and use the obtained identifier.
there is a constant in the OPENCL cl_ inline and it is equal to #define CL_DBL_MAX 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0 by double-checking the degree of two in 1024 got. 2^1024 = 179769313486231590772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137216 And then below that is the number of pi
after
#define CL_M_PI 3.141592653589893115998
3.141592653589793238462643383279502884197169
explain why ????
Well, you can use a constant graph ID to make the task easier. Write a script
Run it on the chart on which you want to draw these lines. Then write this value into the function as the graph ID.
And on the good side, the example from the documentation is not a ready-made function, just take it and use it. It is necessary in the loop to check the symbol and period. If the right one is found, then exit the loop and use the obtained identifier.
Thank you. Everything worked with the script, it draws the lines.