When I run the following code, it takes more than 30 minutes to execute.
My external data are in ASCII format. I see not difference if I put in cache the external symbols.
Is something that I do not correctly ?
CODE:
Please log in to see this code.
Size:
Color:
How big are your ASCII files? What's their bars count? Which data loading range and bar scale?
How fast is your CPU, how much RAM is installed?
If you replace the external symbol names with unique ones from a different provider e.g. Yahoo, what happens?
Size:
Color:
I have the same problem if I replace my dataset with another from MSN datasource.
My computer has 4GB with Windows 7 (version 32). I have a flash hard disk.
The CPU is a Duo Core 2 Extreme 3GHz.
External series has around 2500 bars but I run the strategy only for the last 50 bars.
The scale bar is a daily based.
For information, if I change true to false, I have the same result... An execution time extremely long (more than 30 minutes)
Size:
Color:
Size:
Color:
I have removed On demand data update and I have the same problem.
My primary data provider is Metastock file format.
When I add the last line in my script in a comment session (Eur_Value = GetExternalSymbol("EURERR", true);), I have no performance problem.
After a deeper investigation, I see that the symbol EUERR didn't exist.
It looks like the problem
Size:
Color:
EURERR, it's the first time I see a Forex symbol like that... should've noticed that.
That's a clue. So are you saying this happens with any combination of primary/external data provider e.g. Metastock/MSN, Yahoo/ASCII, or only with Metastock being the primary provider?
Size:
Color:
I test it again and I confirm that it's not link to the source of the data. In all cases, because of the error in the symbol of default, the program spends a lot of time to execute the script.
Size:
Color:
An inexistent ticker will produce an instant runtime error, provided that on demand update is disabled. Enabling it will take a little more CPU cycles to loop through the installed data providers.
If you're a 64-bit WL user (for example), try the following:
1. Install WL 32-bit side by side. [Or vice versa, assuming your OS is x64.]
2. Do NOT install any data provider extensions into this installation. These should be kept to the absolute minimum. Ideally, the built-in 5 providers is the best (MSN, Yahoo, ASCII, WL4Files and MetaStock).
3. Disable ALL visualizers but the Performance tab and the Equity Curve tab.
4. Uncheck "Benchmark Buy&Hold" in Preferences.
5. Run the simple script in 32-bit WL6 without anything else that you haven't shown to us:
CODE:
Please log in to see this code.
Double check that everything is set up as designed. Any difference?
Size:
Color:
After some tests as requested, I confirm you that the execution time is correct when Wealth-Labs is installed without extra library.
Do you want from me additional tests ?
Size:
Color:
What is the extra library, which one?
Size:
Color: