A custom indicator as a resource - page 2

 
Fabio Cavalloni:

Didn't try... but from my (little) experience it can be same or worse :-D

No idea what you mean
 

Do we have any update on this? 

On MT4, using the indicator as a resource slows down the EA significantly and it become worse if there is a need to fetch the multiple buffer values. 

 

any solution?

build 1324... using resources slowing calculation too much.

 

i need to use 10 indicators inside my indicator... if resources are slowing down the calculation i've decided to place everything to subfolder  MQL4/indicators/subfolder/... my indicator and 10 used here.

result: mt4 slows in any case iCustom calling indicator not from MQL4/indicators/.... call from subfolder is 10 times slower..

 
Новая версия платформы MetaTrader 4 build 1320
Новая версия платформы MetaTrader 4 build 1320
  • 2021.03.11
  • www.mql5.com
В четверг 10 декабря 2020 года будет выпущено обновление MetaTrader 4. В нем исправлен ряд ошибок и повышена стабильность работы платформы...
 
Have any solutions been found for this bug?
I am still experiencing this phenomenon and when I run the sample provided, it is 200 times slower with resource usage.
I don't think the sample EA is wrong in the way it specifies the indicator and I don't think it has been resolved.
 
yu ss #: Have any solutions been found for this bug? I am still experiencing this phenomenon and when I run the sample provided, it is 200 times slower with resource usage. I don't think the sample EA is wrong in the way it specifies the indicator and I don't think it has been resolved.

MT4 is no longer actively being developed, so I doubt the issue will be addressed.

Also, it can't be quite classified as a bug, but an inherent issue of how the resource has to be unpacked and applied on every pass. Resolving it would require a complete redesign.

As a work-around, have a condition to use direct call when back-testing, instead of the resource.

Another work-around is to use conditional compilation to have two versions of the executable, one for testing and another for production.

 
Fernando Carreiro #:

MT4 is no longer actively being developed, so I doubt the issue will be addressed.

Also, it can't be quite classified as a bug, but an inherent issue of how the resource has to be unpacked and applied on every pass. Resolving it would require a complete redesign.

As a work-around, have a condition to use direct call when back-testing, instead of the resource.

Another work-around is to use conditional compilation to have two versions of the executable, one for testing and another for production.

Thanks for your comment, I wonder if it is because MQL4 differs from MQL5 in that the resource reading in iCustom is done each time in the main loop.

It seems that we almost have to give up on this issue.

Thanks for the workaround suggestion. I will give up resource usage when I need to backtest or calculate many candles.