Integrating standalone application into WL
Author: ichechet
Creation Date: 4/24/2015 2:53 PM
profile picture

ichechet

#1
Greetings!

I have my program for testing any trading technics. It calculates it stability and objective performance. It works as stand-alone application, but I'd like to integrate it with Wealth-Lab. So I have some global questions:

1. Is it possible to write my own WLD tool like Neuro-Lab?
2. Is it possible to use WLD optimization from my code?
profile picture

Eugene

#2
profile picture

ichechet

#3
Thank you!

Let see deper. I'd like to use some source information from WL in my standalone application. Source bars and SymbolInfo. It's easy with WealthScript, but here I use inheritance from MenuItemHook. And It not supported WealthScript. What I have to do?
profile picture

Eugene

#4
It should be possible but why do you think you need WealthScript for that? Bars is a pretty self-contained class.
profile picture

ichechet

#5
I need not a Bars class, I need the Bars from the current selected Symbol in my standalone app.
profile picture

Eugene

#6
To load an arbitrary symbol's data, you will have to use Reflection and some unsupported classes. Check out Community Indicators > Helper > MainModuleInstance.cs and ExternalSymbolPlotter.cs.
profile picture

ichechet

#7
QUOTE:
Inserting custom items under Wealth-Lab's Tools menu (6.0)


Something wrong with it. Here is an example:

CODE:
Please log in to see this code.


WLD accessed AddMenuItems, but I can't see the new menu item in WLD. I posted 16x16 png Image (Properties.Resources.gear). Is there something wrong?
profile picture

Eugene

#8
You have to provide the name of an already existing item below which your "TSGenerator" will be inserted:

CODE:
Please log in to see this code.
profile picture

ichechet

#9
Thank you! It works now.

The next thing I can't stand, is the binding of my form. In my custom method I can exec the form like this:
CODE:
Please log in to see this code.

But this form is not binding to the main form of WLD. I can max it, but it fills the full screen, not the WLD main form. Is it possible to bind it inside WLD?
profile picture

Eugene

#10
I think your Form does not set the MdiParent property correctly. I've just updated the Wiki page with a fully functional example:

Inserting custom items under Wealth-Lab's Tools menu (6.0)
profile picture

ichechet

#11
Thank you!

So far, I made my code WL integrated. It's good to use datasets and BarDataRange right from WL.

My question is about output. My code generates some optimal strategies for symbol. I'd like to programatically create a new Folder for my generated strategies and then save them all. I'd like to make the stuff like Save Strategy As dialog box, but from the code. Please tell me the clue, is there a methos for saving strategies and making a new folder?

As a post-production I'd like to load all generated strategies in Strategy Ranking. Is there a method to load the strategies into SR from the code?
profile picture

Eugene

#12
Glad to have helped.

QUOTE:
Please tell me the clue, is there a methos for saving strategies and making a new folder?


Sorry Igor, I seem to have already answered this kind of questions in post #2. Whatever is undocumented, is explored by the motivated developers on their own. Good luck hacking your way through Object Browser.

QUOTE:
Is there a method to load the strategies into SR from the code?


Same as above. The tool is not intended for this purpose.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).