Can i make faster indicator if i wrote my code into a dll?

 

Hi All,

I wrote and indicator and it makes slower my EA.

If i wrote my code into an DLL is it be faster?

thanks

 
humor:

Hi All,

I wrote and indicator and it makes slower my EA.

If i wrote my code into an DLL is it be faster?

thanks


depends whats inside your indicator and why is slow?

Maybe is more slow after ... your ea call the indicator -- the indi call the dll ... dll answer to indi ... indi answer to ea ?!

If something wrong inside the indi for shure not become more fast with an dll,

 
EADeveloper:


depends whats inside your indicator and why is slow?

Maybe is more slow after ... your ea call the indicator -- the indi call the dll ... dll answer to indi ... indi answer to ea ?!

If something wrong inside the indi for shure not become more fast with an dll,


If everything is ideal is it possible to increase up the speed?

In mq4 i change the code many times.

Same code in dll result higher speed than i wrote into the EA?

 

a) Using iCustom will slow down an EA. if excessive, copy code into EA

b) An EA that starts ok & slows down over time is often caused by arrays etc being recalced from oldest bar each time, rather than just calcing last 2 bars. So when it starts, it calcs 1 bar each tick, then after 10 periods it's calcing 10 bars each tick, .. then 100, then 1000, then ... etc

c) a DLL is not a silver bullet. if you have heavy duty calcs it might help, but it won't help an inefficient EA become magically superfast.

Reason: