Discussion of article "Use of Resources in MQL5" - page 2

 
Marco Hoerning:
Since the "resource" technology is only available in mt5, how do I post a MT4 product consisting of an EA and a Custom Indicator (the EA calls the CustomIndicator) ?
In the same way as with mql5.
 
Hello guys,

I am trying to update my free EA but I am having a problem with the automatic validation. It works on my computer on different timeframed and symbols but it doesn't on the validation.

Here is the error message:

2016.04.01 18:00  cannot load 'MQL4\Experts\Kraken.ex4::Indicators\hilo_channel.ex4'

there are no trading operations

However I'm using the #resource as described on the documention and it has been working for other EA's:


#resource "\\Indicators\\hilo_channel.ex4";


double buffer = iCustom(symbol,TradingTimeframe,"::Indicators\\hilo_channel.ex4",IndicatorPeriod,0,1);

The Custom indicator takes one input.

What could it be?

 
Agnello Hupp:

What could it be?

You have to talk to Market's moderator (on your product page).
 
Hello,

I did and the answer was:
"

Unfortunately, here we don't give any programming advice.

Maybe you can find answer here: https://www.mql5.com/en/articles/261

As a variant, try to ask your colleagues at Forum. "

Use of Resources in MQL5
Use of Resources in MQL5
  • 2011.03.16
  • MetaQuotes Software Corp.
  • www.mql5.com
MQL5 programs not only automate routine calculations, but also can create a full-featured graphical environment. The functions for creating truly interactive controls are now virtually the same rich, as those in classical programming languages. If you want to write a full-fledged stand-alone program in MQL5, use resources in them. Programs with resources are easier to maintain and distribute.
 
Agnello Hupp:
Hello,

I did and the answer was:
"

Unfortunately, here we don't give any programming advice.

Maybe you can find answer here: https://www.mql5.com/en/articles/261

As a variant, try to ask your colleagues at Forum. "

Ok, they are really funny.

Your resource and iCustom call seem correct.

Is there any other resource used in "hilo_channel.ex4" indicator ? Please also do some research on the forum about resource and market.

 
Agnello Hupp:
Hello,

I did and the answer was:
"

Unfortunately, here we don't give any programming advice.

Maybe you can find answer here: https://www.mql5.com/en/articles/261

As a variant, try to ask your colleagues at Forum. "


Having the same problem: https://www.mql5.com/en/forum/189988
Bounded resource on validation of the EA for market will not be found
Bounded resource on validation of the EA for market will not be found
  • www.mql5.com
Hello, I am trying to validate my EA for market, but each time I became an error, but in my system in on other systems it works fine...
 

Hello,

in the article it is mentioned "...an Expert Advisor can use the resources that are located in an indicator or EX5 library".

Is it possible to use functions from a library file when having embedded it as a resource?

 
Jan Flodin:

Hello,

in the article it is mentioned "...an Expert Advisor can use the resources that are located in an indicator or EX5 library".

Is it possible to use functions from a library file when having embedded it as a resource?

Not possible. Unfortunately.