- ago
I consider WL's Building Blocks as a great way to generate (otherwise complicated) code. I tend to build more and more building blocks that do more and more complicated things.

With such complex code generation tools in place I miss two things from the current incarnation of building blocks:

1. Error reporting.
When something goes wrong during the code generation I can just throw an (ugly) exception.
If the generated code is bad WL simply says "could not compile"
Both are not very helpful. Would be nice if I could create some nice Error message which is shown in red close to the respective building block

2. Action Button
Some Parameters for my building blocks (may) contain complicated expressions. It is hard to enter such an expression without assistance. I'd like to have some (optional) "Action Button" close to the string parameter which opens a specialized GUI/Dialog - provided by my building block - and allows the selection of various elements for the string parameter. This could look and work similar to the "Make Optimizable..." button for int/double parameters.
5
438
2 Replies

Reply

Bookmark

Sort
- ago
#1
And one more:

3. Description / Comments
In a complex building block strategy it could be helpful to have the possibility to add some comment or description for an individual block. This helps maintainability (if you consider to modify such a strategy after a couple of weeks).
Such a comment should be transported to a C# comment if the "Open as C# Coded Strategy" button is clicked.

With the latter case it would help people who start with a building block strategy, convert to C# and refine/enhance without getting lost in the C# code.

Then there is a new extension on the way which produces building blocks form a high level description of a trading strategy. Such an extension would use the new comments to store the original description of the moving parts . This makes the resulting building block strategy more understandable. And if converted to C# code: See above.
0
Cone8
 ( 6.07% )
- ago
#2
1. "could not compile" is an error in the block coding for the developer.
0

Reply

Bookmark

Sort