I've been able to make an operative dll. It's not a strategy per se, just a simple function. The class required an 'abstract' reference to WealthScript so as to 'see' the Bars object (just to get the .Symbol). And in turn this
CODE:
Please log in to see this code.
reference required including the
CODE:
Please log in to see this code.
method, otherwise VC#2010 would not follow through with the build.
If I guess correctly this should mean that every time the code runs then
two 'Execute()' methods would try to run (in the dll & in the WLD 'strategy' code).
In the dll Execute() method I made a statement:
CODE:
Please log in to see this code.
which does not seem to execute. Not that its necessary. The whole Execute() method in the dll is redundant.
Is it normal to have this 'seemingly' redundant Execute() method in the dll ?
Are there any adverse consequences I could incur?
Thanks
Jon
Size:
Color:
Jon,
You are moving in a wrong direction, confusing yourself. Class libraries do not (or better: must not) need to implement WealthScript to offer the desired reusability to compiled and/or Editor-based strategies.
I understand well how you may be confused by all these new concepts but once again let me suggest you take a closer look in the Community Components source code. Try to find there a single case where we had to implement WealthScript. Not only the "whole Execute() method in the dll is redundant", you won't find it because it does not belong there. (Passing a WealthScript instance, although found on multiple occasions, is a very different thing.)
Size:
Color:
Eugene
If its the wiki source code for Community Components your suggesting then I have not found it useful to see the 'whole' dll code... but can see many 'little' parameters in those snippets.
OK, so I'll pass any WealthScript objects to the dll for processing?
Glad I asked this one before I set about coding up the balance.
btw Will Robert be looking at the metastock data problem of mine? I'm very much hoping he might have some ideas on a fix.
Thanks
Jon
Size:
Color:
I'll look when I get back to my dev computer next week.
Size:
Color:
Thanks Robert
Size:
Color:
QUOTE:
OK, so I'll pass any WealthScript objects to the dll for processing?
Sure, if it's driven by your programming needs and convenience.
Size:
Color: