Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1433
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
Hello,
Try searching the market for ready-made solutions - https://www.mql5.com/fr/search#!keyword=money%20management&module=mql5_module_market
You can also order a customised solution from Freelance - https://www.mql5.com/fr/job
Hello everyone and happy new year! Can you tell me: how can I realise that my script would use an indicator from the market?
More specifically:
there is an indicator "Automatic Trendline" in the market. I want to make a robot based on it, which would open or close a position at the moment when the price crosses these lines on the indicator (well, and under specified additional conditions).
Hello everyone and happy new year! Can you tell me: how can I realise that my script would use an indicator from the market?
More specifically:
there is an indicator "Automatic Trendline" in the market. I want to make a robot based on it, which would open or close a position at the moment when the price crosses these lines on the indicator (well, and under specified additional conditions).
No problem for myself. For the market or CodeBase you can not use someone else's crafts from the market ...
For yourself, no problem. You can't use someone else's crafts from the marketplace or CodeBase...
For yourself. I don't know how to do it. I can't find the code in open source. Or how to screw into my code that it would catch the position of lines.
Hello, @Rad89
You need iCustom() and CopyBuffer() functions.
Here is an example of adding an indicator downloaded from the Market to an Expert Advisor
enum ENUM_NAME { ENUM_1, ENUM_jsdf .... ENUM_FEF; };
How to allocate memory for the E_NAME[] array so that there is enough memory for all possible ENUM_NAME values (without repetitions) ?And initialise E_NAME[] with all possible values ?
Hello, @pivomoe
If you are not going to force assigning numeric values to the enumeration items (judging by the example, you won't), you can do it like this:
In this case, you will need to change also the constant storing the number of elements when adding elements to the enumeration.
Also, it is better to use the ENUM_ prefix only for the name of the enumeration itself, and use some other prefix for its elements. This convention is used in all standard MQL enumerations.
Hello, @pivomoe
If you won't force assigning numeric values to the enumeration items (judging by the example - you won't), you can do it like this:
In this case, you will need to change the constant storing the number of items when adding items to the enumeration as well.
Also, it is better to use the ENUM_ prefix only for the name of the enumeration itself, and use some other prefix for its elements. This convention is used in all standard MQL enumerations.
Thanks for your help. I've been using ENUM for so many years that it didn't even occur to me to read the help.
Hello and thank you for your reply. I've been able to make a script that meets my expectations, but unfortunately there are still two errors that I can't understand or correct. Would you know who to contact for a little help? It's just two lines of code that register as errors after compilation...
You can create a freelance job and choose from the developers who apply for your job
https://www.mql5.com/fr/job