Indicator pulling values from a *.csv file

 
I am trying to create an indicator that pulls values from a *.csv file
and displays them in an indicator window as histogram and lines. However
it loads very slowly (it pulls the data then needs to match it with the

corresponding bars). I understand creating a DLL the pushes the valuesin MT4 will speed up the process but what about the type of database from where the values are taken?

In you opinion and experience which is the database (csv,xls,txt or other) that MT4 can access the fastest?

 
soniabvc:
However
it loads very slowly (it pulls the data then needs to match it with the

corresponding bars). I understand creating a DLL the pushes the valuesin MT4 will speed up the process

Unlikely!


MQL4 code is slower than optimised C code indeed (that in turn might have an overhead by C++ compiler). 


However it's worth beginning with the existing code optimisation. It's proven many times that low level optimisation can't compete with high level optimisation. In other words if you use the same algorithm implemented in DLL the performance price will not be as dramatic as if you improve the algorithm itself no matter which language you use for the implementation.


May be there are nested loops in the algorithm that are avoidable?