Questions from Beginners MQL5 MT5 MetaTrader 5 - page 948
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
Please advise how the following design would look roughly:
1) A new tick is generated - condition is fulfilled, for example, on this tick a pattern indication will be drawn and an alert will be generated
2) After the condition above is fulfilled, it is necessary to stop performing multiple repetitions of the same action of the above action until the time period is equal:
3) As soon as the bar changes to the next bar, resume the condition again until the next time period described above
Is such a design realistic?
Please advise how the following design would look roughly:
1) A new tick is generated - the condition is fulfilled, for example, on this tick a pattern indication will be drawn and an alert will be given
2) After the condition above is fulfilled, it is necessary to stop multiple repetitions of the same action described above until the time period is equal:
3) As soon as the bar changes to the next bar, resume the condition again until the next time period described above
Is such a design realistic?
You've already written most of the logic yourself...
You've already written most of the logic yourself...
The logic may be correct, but finding the right functionality is the problem. Could you please advise which functions or example constructs to apply to try to solve the problem, as I'm pretty much stumped here.
The logic may be correct, but finding the right functionality is the problem. Could you please advise which functions or example designs to use to try and solve the problem, as I'm pretty much stumped here.
Please help.
I have a list of enum.
I need the values to become a string, i.e. become a text, this approach does not work
(string)Target
I receive simply the number of a variable value from the list, and I need the text - the real name from the list, for example, "arr_100".
How to do it?
Please help.
I have a list of enum.
I need the values to become a string, i.e. become a text, this approach does not work
I receive simply the number of a variable value from the list, and I need the text - the real name from the list, for example, "arr_100".
How to do it?
EnumToString()
EnumToString()
Thank you!
Can you give me a link to the documentation of what these <> symbols mean?
This is a template method. The type of the parameter in it will be matched according to the type passed in these brackets. The type is determined statically at the stage of compiling the program. You can read more about it in "function and class templates":https://www.mql5.com/ru/docs/basis/oop/templates.
Good afternoon! I have made .mqh for data processing and storage in the resource. Everything works, but there is a nuance, if I compile the indicator, the .mqh is reset and re-does the weight process for storage. Target - as long as there is data in the resource it is not reset. Where is the error, how to fix it?
Resources are designed to hold static (permanent) unchangeable data. Your task is to download a file with data and change the data in the indicator memory and save the new data in the file, so after the restart and recompilation of the indicator you will download new data. Resources will not help to do this.
Resources are designed to hold static (constant) unchangeable data. For your task you need to load a file with data, change this data in the indicator memory and save the new data weight in the file, so that after reloading and recompiling the indicator you can load new data. Resources will not help to do this.
I see, thank you!