Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1361
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
It's understandable. It's done that way.
The question is how to place it in the Marketplace. When publishing the Expert, is it possible to specify the resource file as well...
To paraphrase:
- if in the Expert Advisor's code there is a link to a resource that contains a custom indicator, will the system offer to download it, too?
The resource is inserted by command #resource "<resource file path>".
Names of all files and directories included in resources must be in English.
The compiler searches the resource by the specified path in the following sequence:
here is the connection of the indicator as a resource at the bottom
https://www.mql5.com/ru/docs/runtime/resources
In idea, when you connect the indicator to the Expert Advisor through a resource, the compilation results in a single file that you can place in the Market.
Alas. An indicator is an indicator and when connected through a resource, the Expert Advisor only refers to it. They work differently, don't they? You get one file even when the sounds and pictures are in the resource...
here is the connection of the indicator as a resource at the bottom
https://www.mql5.com/ru/docs/runtime/resources
Guys, I don't have many posts here, but I know the "plain truth".
And the question is not how to connect it as a resource, but how to upload one product consisting of two files to Market...
Does anyone have such experience?
into one file and pack everything
No. The Indicator can process events that the Expert cannot and vice versa. Therefore there is no way to have one file. They are different programs.
For example, Indicator handles OnCalculate() and cannot handle OnTrade(). How can I combine all these features in one eche? Please teach me!
No. The Indicator can process events that the Expert cannot and vice versa. Therefore there is no way to have one file. They are different programs.
You can continue to think so)
you may continue to think so)
Here's the indicator:
Here's the expert:
Here's everything in one file:
Four is true, but so is five.