Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 435
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
Alert(""); such a script?
No thanks, I've already found it. Maybe someone could use it.
Looks like it. Do you have the option of attaching here?
Please see my post. Please tell me what the problem is.
https://www.mql5.com/ru/forum/160683/page433#comment_6385422
Please advise on the answer to a specific question. I'm redoing the Bollinger.
Changed a couple of lines, doesn't draw bars. What is it, logarithms?
Volatility formula from https://research-journal.org/economical/analiz-razlichnyx-metodov-ocenki-istoricheskoj-volatilnosti-dlya-opcionnoj-torgovli/
2018.01.26 16:40:03.920 BS_Bands_TRO USDJPY,H1: zero divide in 'BS_Bands_TRO.mq4' (206,32)
Good evening! Once again I'm looking for help. My EA has main function in OnInit, which reads file, and then according to different conditions builds different graphical objects. Also on the chart is a button which, when clicked, operates the function to remove these objects, for example, text labels. How to make, that after the press of the button has removed text labels, at release of the button it is possible to start not all Function entirely, which will completely construct all objects, but to construct only text labels. The only thing that comes to mind is to create an analogue of the main function for each type of object with all the actions associated with opening and reading the file, but I want to use some clever solution, but I do not know what and how, in the main function or in the functions of the buttons?
Good evening! Once again I'm looking for help. My EA has only one Function in OnInit, which reads the file and then builds different graphical objects according to different conditions. I also have buttons on the chart which, when clicked, have the function to delete these objects, e.g. text labels. How to make, that after the press of the button has removed text marks, at release of the button it is possible to start not all Function entirely, which will construct all objects, but to construct only text marks. The only thing that with my "level" of programming and lack of fundamental knowledge comes to mind is to prescribe separately for each type of object a function with all actions related to opening and reading the file, but I want to use some clever solution, but do not know what and how; and where in the function itself or in the functions of the buttons?
One "kulibin" tried to make a universal tool, a topror, a hoe, a scythe and a rake... All in one.... The result is predictable.
One "craftsman" tried to make a universal tool, a topror, a hoe, a scythe and a rake... All in one.... The result is predictable.
Thank you!) From your reply I conclude that a separate function should be made for each type of object. I was thinking that somehow we could make it possible to separately run the functions to build objects nested in the While loop of the main function to read the file. How about Switch?
Do you know about the flags? First, all flags are raised. The function sees - all flags are up - and builds everything. Press the button, something is removed and the corresponding flag is lowered. Press the button - the program sees - if(flag is omitted) - and builds a part. You can have a lot of flags. That's all. Have you already guessed what the flag is? Well, now you are a software engineer. And those who have not heard much about flags and arrays - those coders = technicians.
Flags are variables. Or bool: false=empty, true=raised or int - then there are many flags in one number at once: 0 - all omitted, 1=lower first, 2=lower second, 3=lower first and second, 4=lower third, 5=lower third and first, 6=lower third and second, 7=lower first, second, third, 8=lower fourth.... Well that's in binary code. How do you find out?