Technical Indicators vs. Standard Indicators

 
Hello folks -

Just wanted to know if there's a way to make a custom metatrader indicator into a "native" MT4 technical indicator. Instead of iCustom, i would like to make calls to iMyIndicator (like iRSI or iADX) instead.


The reason is -making iCustom calls in an EA makes backtesting verrrrry slow.

Is there any other way to speed up backtesting when using non-standard indicators?

Best - Susmit
 

I made a test... An EA that calls iMA(), or is recompiled and calls the equivalent Custom Indicator.

There is almost no discernable difference in execution times using "every tick".

Optimize the indicators that you are using if they are causing you trouble.

---

test, calling iMA()

2008.06.29 19:33:50 2008.06.30 01:33 DummyEA EURUSD,M5:
Time = 2157ms Ticks = 674718
---

Test, calling Custom Indicator

2008.06.29 19:34:11 2008.06.30 01:34 DummyEA EURUSD,M5:
Time = 2328ms Ticks = 674729

 

Phy

> ".. almost no discernable difference in execution times.."

Yes, I'll second that - went through this in detail with Rosh about 6 months ago, when I made an incorrect assertion on MT's recompilation policy!!!

If iCustom is slow its cos the indicator is highly complex or possibly... inefficient.

No advantage to performance to have it as an iWhatever, even if that were possible

FWIW

-BB-

Reason: