Hi Partha,
Firstly, your post was moved here from an announcement topic started by Yuri to market his courses and services. Please agree with me on that asking utterly specific questions such as this would be suboptimal in a thread like that (btw, where Yuri left a URL to reach him directly). Now on to your question.
Unlike Visual Studio, Wealth-Lab does not have any possibility to add a reference to a COM object. Which means that you cannot select the "COM tab" in it (there ain't any). I see two potential workarounds here, and both require Visual Studio:
1) create a .NET
wrapper library
2) create a compiled
Strategy libraryThe
first workaround implies that you use VS to add that COM reference (legacy not supported in WL) to a blank Class Library project and then come up with some methods that call ML and return results to WL. So the idea is that your "recipient" WL Strategy would call that "proxy" method from your wrapper DLL, outsourcing the COM interop job to the "donor" (wrapper library). I'm not familiar with ML but if all you need is to call
matlab.Feval like in your example (or something), that should suffice.
Disclaimer: I haven't tested it and cannot guarantee that it would work.
The
other workaround appears to be a quite simple and surefire way. Write your Strategy not in the built-in Editor but directly in Visual Studio, leveraging its capabilities including the powerful debugger and ability to add COM references. No wrapper required. The Community edition is free to use. Here's what you need to know to get the ball rolling:
1. Creating a WealthScript Strategy in VS:
How can I debug my trading strategies in Wealth-Lab?2. Sample code of a fully functional Strategy library:
Download source code of Strategies.ActiveTrader librarySo as not to repeat myself, there's no shortage of advices and troubleshooting suggestions on our forum. Good luck with your venture!